<!--
document.onmousedown = NoRightClick;
function NoRightClick(){return false; }

function SetValues(s){
	if (s){
		if (document.form1.x_State.selectedIndex > 1 && document.form1.x_State.selectedIndex < 53)
			document.form1.x_Country.selectedIndex = 0;
		if (document.form1.x_State.selectedIndex > 52)
			document.form1.x_Country.selectedIndex = 35;
	}
	else{
		if (document.form1.x_Country.selectedIndex != 0 && document.form1.x_Country.selectedIndex != 35 )
			document.form1.x_State.selectedIndex = 1;
		if (document.form1.x_Country.selectedIndex == 0 && (document.form1.x_State.selectedIndex > 52 || document.form1.x_State.selectedIndex < 2))
			document.form1.x_State.selectedIndex = 0;
		if (document.form1.x_Country.selectedIndex == 35 && document.form1.x_State.selectedIndex < 53 )
			document.form1.x_State.selectedIndex = 53;
	}
}
function DoSubmit(){

   if (document.form1.x_First_Name.value == ""){
    alert("Please enter your first name.");
	document.form1.x_First_Name.focus();
	document.form1.x_First_Name.select();
    return (false);
   }
   if (document.form1.x_Last_Name.value == ""){
    alert("Please enter your last name.");
	document.form1.x_Last_Name.focus();
	document.form1.x_Last_Name.select();
    return (false);
   }
   if (document.form1.x_Company.value == ""){
    alert("Please enter your company name.");
	document.form1.x_Company.focus();
	document.form1.x_Company.select();
    return (false);
   }
   if (document.form1.x_Product.value == ""){
      alert("Please enter the product name.");
	  document.form1.x_Product.focus();
	  document.form1.x_Product.select();
      return (false);
   }
   if (document.form1.x_Address.value == ""){
    alert("Please enter your street address.");
	document.form1.x_Address.focus();
	document.form1.x_Address.select();
    return (false);
   }
   if (document.form1.x_City.value == ""){
    alert("Please enter the name of your city.");
	document.form1.x_City.focus();
	document.form1.x_City.select();
    return (false);
   }
   if (document.form1.x_Country.selectedIndex == 0){
    if (document.form1.x_State.selectedIndex < 2 || document.form1.x_State.selectedIndex > 52){
      alert("Please choose the state you are ordering from.");
      return (false);
    }
	if (document.form1.x_Zip.value == ""){
     alert("Please enter your zip code.");
	 document.form1.x_Zip.focus();
	 document.form1.x_Zip.select();
     return (false);
	}
   }
   else{
	if (document.form1.x_Country.selectedIndex == 35){ //Canada
      if (document.form1.x_State.selectedIndex < 54){ //Province
      	alert("Please choose the Province you are ordering from.");
      	return (false);
	  }
	  if (document.form1.x_Zip.value == ""){
      	alert("Please enter your mail code.");
		document.form1.x_Zip.focus();
		document.form1.x_Zip.select();
      	return (false);
	  }
	}
    else{
	  document.form1.x_State.selectedIndex = 1;
    }
   }
   if (document.form1.x_Email.value.indexOf("@", 0) == -1){
    alert("Please enter your email address.");
	document.form1.x_Email.focus();
	document.form1.x_Email.select();
    return (false);
   }
   if (document.form1.x_Phone.value == ""){
      alert("Please enter your telephone number.");
	  document.form1.x_Phone.focus();
	  document.form1.x_Phone.select();
      return (false);
   }
   if (document.form1.x_Password1.value == ""){
      alert("Please enter the password you prefer.");
	  document.form1.x_Password1.focus();
	  document.form1.x_Password1.select();
      return (false);
   }
   if (document.form1.x_Password1.value != document.form1.x_Password2.value){
      alert("The password and confirm password must be the same.");
	  document.form1.x_Password1.focus();
	  document.form1.x_Password1.select();
      return (false);
   }
   return (true);
}
var wApp = null;
var myHeight = 480;
var myWidth  = 640;
function DoSubmit5(url){
   if (wApp == null){
		wApp = window.open("", "App","scrollbars,resizable,status");
		if (wApp != null){wApp.height=myHeight;wApp.width=myWidth;}
   }
   if (wApp != null){
		wApp.location.href = url;
		wApp.focus();
        document.form1.action = "session.asp";
        return true;
	}
	alert("Your security options are set too high to allow this program to run.");
	return false;
}
//-->
