<!-- //<%
/* code begins */


function validate_email(field,alerttxt)
{with (field){
apos=value.indexOf("@");
dotpos=value.lastIndexOf(".");
if (apos<1||dotpos-apos<2)   {alert(alerttxt);return false} else {return true};
}
};

function validate_form(thisform)
{
with (thisform)
{
  

if (strCustomerName.value=='')
	{window.alert('Please check that you have entered a Customer Name.'); strCustomerName.focus();return false };
	
if (strCompanyName.value=='')
	{window.alert('Please check that you have entered your Company Name.'); strCompanyName.focus();return false };
	
if (strAddress1.value=='')
	{window.alert('Please enter the first line of your address.'); strAddress1.focus();return false };

if (strAddress2.value=='')
	{window.alert('Please enter the second line of your address.'); strAddress2.focus();return false };
	
if (strTown.value=='')
	{window.alert('Please check that you have entered a Town.'); strTown.focus();return false };
	
if (strCountry.value=='')
	{window.alert('Please check that you have entered a Country.'); strCountry.focus();return false };
	
if (strTelephone.value=='')
	{window.alert('Please check that you have entered your Phone Number.'); strTelephone.focus();return false };

if (strMobile.value=='')
	{window.alert('Please check that you have entered your Mobile Number.'); strMobile.focus();return false };

if (validate_email(strEmail,"Please check that you have entered a valid email address.")==false)
  {strEmail.focus();  return false };

if (strBusinesssector.value==''||strBusinesssector.value==',')
	{window.alert('Please check that you have completed the Business Sector information.'); strBusinesssector.focus();return false };
	

}
};


/* Code ends */
//%> -->




