<!--
  function AccessCode(){window.open("add_AccessCode.asp","br","width=300,height=500,left=100,top= 100") 
  } 
  function Sources(){window.open("add_Sources.asp","br","width=300,height=500,left=100,top= 100")
  } 
  function Application(){window.open("add_Application.asp","br","width=300,height=500,left=100,top=100") 
  } 
  
  function Register() { 
          window.open("Register.asp","Register","width=575,height=600,left=30,top=30,resize=yes,scrollbars=yes") 
  } 
  function isEmail(elm){                             //validate email address
           var elmstr = elm.value + "" 
           if (elmstr.length < 7 )return false;
            else if (elmstr.indexOf(" ") != "-1")return false;//no space 
           else if (elm.value.indexOf("@") != "-1" &&//email should contains "@"
               elm.value.indexOf(".") != "-1" &&     //email should contains "."
               elm.value != "")return true;          
           else return false;
  }													 //validate password	
  function isPassword(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 6 || elmstr.length > 12)return false;//6-12 characters only
           else if (elmstr.indexOf(" ") != "-1" || elmstr.indexOf("'") != "-1" )return false;//no space and no "'"
           else return true;
  }
  function isLastName(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 || elmstr.length > 20)return false;//max of 20 characters only
           else if (elmstr.indexOf(" ") != "-1")return false;//no space and no "'"
           else return true;
  }
  function isFirstName(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 || elmstr.length > 20)return false;//max of 20 characters only
           else if (elmstr.indexOf(" ") != "-1")return false;//no space and no "'"
           else return true;
  }
  function isPhone(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isCompany(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isAddress(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isCity(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isState(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isZipcode(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isCompany(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isTitle(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isCountry(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isSources(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isApplication_Industry(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1 )return false;//zero length string
           else return true;
  }
  function isFactor(elm){
           var elmstr = elm.value + ""
           if (elmstr.length < 1)return false;//zero length string
           else return true;
  }
  function isPurchased(elm){
           var elmstr = elm.value + " "
           if (elmstr.length > 6 )return false;//zero length string
           else return true;
  }
  
  function isMI(elm){
           var elmstr = elm.value + ""
           if (elmstr.length > 2)return false;//max of 1 characters only
           else return true;         
  }
  function isReady(form){
                 
                              		   
           if (isFirstName(form.FirstName)==false){
           alert("The First Name should be only 1-20 characters with no space");
           return false;
           form.FirstName.select;
           Form.FirstName.focus();
           }
           
           if (isLastName(form.LastName)==false){
           alert("The Last Name should be only 1-20 characters with no space");
           return false;
           form.LastName.select;
           Form.LastName.focus();
           }
           if (isPhone(form.Phone)==false){
           alert("Please, enter your phone number!");
           return false;
           form.Phone.select;
           Form.Phone.focus();
           }
           if (isCompany(form.Company)==false){
           alert("Please, enter your company name!");
           return false;
           form.Company.select;
           Form.Company.focus();
           }         
           
           if (isEmail(form.Email)==false){
           alert("Please, enter a valid E-mail account");
           return false;
           Form.Email.select;
           Form.Email.focus();
           }
                
           if (isAddress(form.Address)==false){
           alert("Please, enter your address!");
           return false;
           form.Address.select;
           Form.Address.focus();
           }
		   
           
		   if (isCity(form.City)==false){
           alert("Please, enter your city!");
           return false;
           form.City.select;
           Form.City.focus();
           }
		   if (isState(form.State)==false){
           alert("Please, enter your state!");
           return false;
           form.State.select;
           Form.State.focus();
           }
           if (isZipcode(form.Zipcode)==false){
           alert("Please, enter your zip/postal code!");
           return false;
           form.Zipcode.select;
           Form.Zipcode.focus();
           }
           if (isCountry(form.Country)==false){
           alert("Please, enter your country!");
           return false;
           form.Country.select;
           Form.Country.focus();
           }
           
		   if (isSources(form.Sources)==false){
           alert("How did you hear about Ampro?");
           return false;
           form.Sources.select;
           Form.Sources.focus();
           }
		   
		   if (isApplication_Industry(form.Application_Industry)==false){
           alert("Please, select an application!");
           return false;
           form.Application_Industry.select;
           Form.Application_Industry.focus();
           }
		   
		   if (isFactor(form.Factor)==false){
           alert("Please, select a products of interest!");
           return false;
           form.Factor.select;
           Form.Factor.focus();
           }
		   
		  
		   
           return true;   
  }   
  
  //--> 
  