<!--
function form_Validator(theform)
{
if (theform.CompanyName.value == ""){
alert("CompanyName can not be empty!");
theform.CompanyName.focus();
return (false);
}

if (theform.PassportName.value == ""){
alert("Name as it appears in Passport can not be empty!");
theform.PassportName.focus();
return (false);
}

if (theform.PassportName.value.length < 3){
alert("Name as it appears in Passport must more than 3 words!");
theform.PassportName.focus();
return (false);
}

if (theform.PassportName.value.length > 80){
alert("Name as it appears in Passport must less than 80 words!");
theform.PassportName.focus();
return (false);
}

if (theform.TravelPurposes.value == ""){
alert("Your business travel purposes can not be empty!");
theform.TravelPurposes.focus();
return (false);
}

if (theform.Email.value == ""){
alert("Email can not be empty!");
theform.Email.focus();
return (false);
}

if ( theform.Email.value.indexOf("@")==-1 || theform.Email.value.indexOf(".")==-1) { 
alert("Email format is not !");
return false;
}

if (theform.Fax.value == ""){
alert("Fax can not be empty!");
theform.Fax.focus();
return (false);
}

if (theform.DateOfEntry.value == ""){
alert("Date of entry to China (YY/MM/DD) to China can not be empty!");
theform.DateOfEntry.focus();
return (false);
}

if (theform.StrAddress.value == ""){
alert("Your detailed Address can not be empty!");
theform.StrAddress.focus();
return (false);
}

//PaymentTerms
if (theform.PaymentTerms.value == ""){
alert("PaymentTerms can not be empty!");
theform.PaymentTerms.focus();
return (false);
}

return (true);
}
//--> 


 




 





 







 



 
 


  
 
 

