function check(theForm)
 {
   if (theForm.Name.value == "")
     {
       alert("Please input your name!");
       theForm.Name.focus();
       return false;
     }

   if (theForm.Company.value == "")
     {
       alert("Please input your company name!");
       theForm.Company.focus();
       return false;
     }

   if (theForm.Address.value == "")
     {
       alert("Please input your address!");
       theForm.Address.focus();
       return false;
     }

   var index=theForm.Country.selectedIndex;
   theForm.Country.options[index].value=theForm.Country.options[index].text;
   if (theForm.Country.options[index].value == "")
     {
       alert("Please input your country!");
       theForm.Country.options.focus();
       return false;
     }

   if (theForm.Tel.value == "")
     {
       alert("Please input your phone number!");
       theForm.Tel.focus();
       return false;
     }

   if (theForm.Fax.value == "")
     {
       alert("Please input your fax number!");
       theForm.Fax.focus();
       return false;
     }

   if (theForm.Email.value == "")
     {
       alert("Please input your email!");
       theForm.Email.focus();
       return false;
     }
    if (theForm.authnumx2.value == "")
     {
       alert("please input Verification Code!");
       theForm.authnumx2.focus();
       return false;
     }    
  if ( theForm.Email.value != "" &&  ! /^[_\.\d\w\-]+@([\d\w][\d\w\-]+\.)+[\w]{2,3}$/.test(theForm.Email.value)) 
    { 
      alert("Email address error! Please check your email again."); 
      theForm.Email.focus();
      return false; 
    } 

 return (true);
}

