// Initialize Images for Rollover			
if (document.images) {
button_home_off = new Image(); button_home_off.src = "/imgs/buttons/but_home.jpg";
button_home_on = new Image(); button_home_on.src = "/imgs/buttons/but_home_sel.jpg";
button_products_off = new Image(); button_products_off.src = "/imgs/buttons/but_products.jpg";
button_products_on = new Image(); button_products_on.src = "/imgs/buttons/but_products_sel.jpg";
button_features_off = new Image(); button_features_off.src = "/imgs/buttons/but_features.jpg";
button_features_on = new Image(); button_features_on.src = "/imgs/buttons/but_features_sel.jpg";
button_support_off = new Image(); button_support_off.src = "/imgs/buttons/but_support.jpg";
button_support_on = new Image(); button_support_on.src = "/imgs/buttons/but_support_sel.jpg";
button_about_off = new Image(); button_about_off.src = "/imgs/buttons/but_about_us.jpg";
button_about_on = new Image(); button_about_on.src = "/imgs/buttons/but_about_us_sel.jpg";
button_contact_off = new Image(); button_contact_off.src = "/imgs/buttons/but_contact_us.jpg";
button_contact_on = new Image(); button_contact_on.src = "/imgs/buttons/but_contact_us_sel.jpg";
ql_downloads_off = new Image(); ql_downloads_off.src = "/imgs/quicklinks/ql_downloads.gif";
ql_downloads_on = new Image(); ql_downloads_on.src = "/imgs/quicklinks/ql_downloads_sel.gif";
ql_dataconversion_off = new Image(); ql_dataconversion_off.src = "/imgs/quicklinks/ql_dataconversion.gif";
ql_dataconversion_on = new Image(); ql_dataconversion_on.src = "/imgs/quicklinks/ql_dataconversion_sel.gif";
ql_techsupport_off = new Image(); ql_techsupport_off.src = "/imgs/quicklinks/ql_techsupport.gif";
ql_techsupport_on = new Image(); ql_techsupport_on.src = "/imgs/quicklinks/ql_techsupport_sel.gif";
ql_contactus_off = new Image(); ql_contactus_off.src = "/imgs/quicklinks/ql_contactus.gif";
ql_contactus_on = new Image(); ql_contactus_on.src = "/imgs/quicklinks/ql_contactus_sel.gif";
ql_aboutus_off = new Image(); ql_aboutus_off.src = "/imgs/quicklinks/ql_aboutus.gif";
ql_aboutus_on = new Image(); ql_aboutus_on.src = "/imgs/quicklinks/ql_aboutus_sel.gif";
ql_websupport_off = new Image(); ql_websupport_off.src = "/imgs/quicklinks/ql_websupport.gif";
ql_websupport_on = new Image(); ql_websupport_on.src = "/imgs/quicklinks/ql_websupport_sel.gif";
ql_bugreport_off = new Image(); ql_bugreport_off.src = "/imgs/quicklinks/ql_bugreport.gif";
ql_bugreport_on = new Image(); ql_bugreport_on.src = "/imgs/quicklinks/ql_bugreport_sel.gif";
ql_featurerequest_off = new Image(); ql_featurerequest_off.src = "/imgs/quicklinks/ql_featurerequest.gif";
ql_featurerequest_on = new Image(); ql_featurerequest_on.src = "/imgs/quicklinks/ql_featurerequest_sel.gif";
ql_systemrequirements_off = new Image(); ql_systemrequirements_off.src = "/imgs/quicklinks/ql_systemrequirements.gif";
ql_systemrequirements_on = new Image(); ql_systemrequirements_on.src = "/imgs/quicklinks/ql_systemrequirements_sel.gif";
ql_callmanagement_off = new Image(); ql_callmanagement_off.src = "/imgs/quicklinks/ql_callmanagement.gif";
ql_callmanagement_on = new Image(); ql_callmanagement_on.src = "/imgs/quicklinks/ql_callmanagement_sel.gif";
ql_systemsetup_off = new Image(); ql_systemsetup_off.src = "/imgs/quicklinks/ql_systemsetup.gif";
ql_systemsetup_on = new Image(); ql_systemsetup_on.src = "/imgs/quicklinks/ql_systemsetup_sel.gif";
ql_dispatching_off = new Image(); ql_dispatching_off.src = "/imgs/quicklinks/ql_dispatching.gif";
ql_dispatching_on = new Image(); ql_dispatching_on.src = "/imgs/quicklinks/ql_dispatching_sel.gif";
ql_reporting_off = new Image(); ql_reporting_off.src = "/imgs/quicklinks/ql_reporting.gif";
ql_reporting_on = new Image(); ql_reporting_on.src = "/imgs/quicklinks/ql_reporting_sel.gif";
ql_searchengine_off = new Image(); ql_searchengine_off.src = "/imgs/quicklinks/ql_searchengine.gif";
ql_searchengine_on = new Image(); ql_searchengine_on.src = "/imgs/quicklinks/ql_searchengine_sel.gif";
ql_security_off = new Image(); ql_security_off.src = "/imgs/quicklinks/ql_security.gif";
ql_security_on = new Image(); ql_security_on.src = "/imgs/quicklinks/ql_security_sel.gif";
ql_customize_off = new Image(); ql_customize_off.src = "/imgs/quicklinks/ql_customize.gif";
ql_customize_on = new Image(); ql_customize_on.src = "/imgs/quicklinks/ql_customize_sel.gif";
ql_screens_off = new Image(); ql_screens_off.src = "/imgs/quicklinks/ql_screens.gif";
ql_screens_on = new Image(); ql_screens_on.src = "/imgs/quicklinks/ql_screens_sel.gif";
ql_overview_off = new Image(); ql_overview_off.src = "/imgs/quicklinks/ql_overview.gif";
ql_overview_on = new Image(); ql_overview_on.src = "/imgs/quicklinks/ql_overview_sel.gif";
ql_manager_off = new Image(); ql_manager_off.src = "/imgs/quicklinks/ql_manager.gif";
ql_manager_on = new Image(); ql_manager_on.src = "/imgs/quicklinks/ql_manager_sel.gif";
ql_messenger_off = new Image(); ql_messenger_off.src = "/imgs/quicklinks/ql_messenger.gif";
ql_messenger_on = new Image(); ql_messenger_on.src = "/imgs/quicklinks/ql_messenger_sel.gif";
ql_mapping_off = new Image(); ql_mapping_off.src = "/imgs/quicklinks/ql_mapping.gif";
ql_mapping_on = new Image(); ql_mapping_on.src = "/imgs/quicklinks/ql_mapping_sel.gif";
ql_gps_off = new Image(); ql_gps_off.src = "/imgs/quicklinks/ql_gps.gif";
ql_gps_on = new Image(); ql_gps_on.src = "/imgs/quicklinks/ql_gps_sel.gif";
ql_financials_off = new Image(); ql_financials_off.src = "/imgs/quicklinks/ql_financials.gif";
ql_financials_on = new Image(); ql_financials_on.src = "/imgs/quicklinks/ql_financials_sel.gif";
ql_connect_off = new Image(); ql_connect_off.src = "/imgs/quicklinks/ql_connect.gif";
ql_connect_on = new Image(); ql_connect_on.src = "/imgs/quicklinks/ql_connect_sel.gif";
ql_quote_off = new Image(); ql_quote_off.src = "/imgs/quicklinks/ql_quote.gif";
ql_quote_on = new Image(); ql_quote_on.src = "/imgs/quicklinks/ql_quote_sel.gif";
nav_download_off = new Image(); nav_download_off.src = "/imgs/buttons/button_download_demo.jpg";
nav_download_on = new Image(); nav_download_on.src = "/imgs/buttons/button_download_demo_sel.jpg";
nav_support_off = new Image(); nav_support_off.src = "/imgs/buttons/button_tech_support.jpg";
nav_support_on = new Image(); nav_support_on.src = "/imgs/buttons/button_tech_support_sel.jpg";
}

function turn_off(ImageName) {
	//alert(document.getElementById(ImageName).id);
				
	if (document.images != null) {
		document.getElementById(ImageName).src = eval(ImageName + "_off.src");
		//document[ImageName].src = eval(ImageName + "_off.src");
	}
}

function turn_on(ImageName) {
	//alert(document.getElementById(ImageName).src);
				
	if (document.images != null) {
		document.getElementById(ImageName).src = eval(ImageName + "_on.src");
	}
}

function selectCountry()
{
	var country;

country = document.getElementById('cboCountry').value;

//alert(country);

switch (country){
	case 'United States':
		document.getElementById('divState').style.display = 'block';
		document.getElementById('divProvince').style.display = 'none';
		document.getElementById('divAustralia').style.display = 'none';
		document.getElementById('divOther').style.display = 'none';
		document.getElementById('cboState').value = 'Select One';
		break;

	case 'Canada':
		document.getElementById('divState').style.display = 'none';
		document.getElementById('divProvince').style.display = 'block';
		document.getElementById('divAustralia').style.display = 'none';
		document.getElementById('divOther').style.display = 'none';
		document.getElementById('cboProvince').value = 'Select One';
		break;	

	case 'Australia':
		document.getElementById('divState').style.display = 'none';
		document.getElementById('divProvince').style.display = 'none';
		document.getElementById('divAustralia').style.display = 'block';
		document.getElementById('divOther').style.display = 'none';
		document.getElementById('cboProvince').value = 'Select One';
		break;	

	default:
		document.getElementById('divState').style.display = 'none';	
		document.getElementById('divProvince').style.display = 'none';
		document.getElementById('divAustralia').style.display = 'none';
		document.getElementById('divOther').style.display = 'block';
		document.getElementById('txtState').value = '';
}

}
function selectAnchor(anchor) 
{
	document.getElementById(anchor).style.textDecorationUnderline = true;
}
function deselectAnchor(anchor) 
{
	document.getElementById(anchor).style.textDecorationUnderline = false;
}
function IsNumeric(sText)
{
   var ValidChars = "0123456789";
   var IsNumber=true;
   var Char;
 
   for (i = 0; i < sText.length && IsNumber == true; i++) 
      { 
      Char = sText.charAt(i); 
      if (ValidChars.indexOf(Char) == -1) 
         {
         IsNumber = false;
         }
      }
   return IsNumber;
   
   }
function SelectedOption(ctrOption) {
	iSelected = -1
	for (i=0; i<ctrOption.length; i++) {
		if (ctrOption[i].checked) {
			iSelected = i
		}
	}

	return iSelected;
}
function initFocus() 
{
if (document.forms.length > 0) 
	{
	var field = document.forms[0];
	
	for (i = 0; i < field.length; i++) 
	{
	if ((field.elements[i].type == "text") || (field.elements[i].type == "textarea") || (field.elements[i].type.toString().charAt(0) == "s")) 
		{
		document.forms[0].elements[i].focus();
		break;
        }
    }
	}
}
