<!-- FORM CHECKER -->

<!-- 
function what()
  {

   if(document.form1.companyName.value == "")
    {
     alert("Please enter a your company name!");
     document.form1.companyName.focus();
     return false;
    }
   if(document.form1.contactPerson.value == "")
    {
     alert("Please enter a your contact person's name!");
     document.form1.contactPerson.focus();
     return false;
    }
   if(document.form1.email.value == "")
    {
     alert("Please enter a your email address!");
     document.form1.email.focus();
     return false;
    }
   if(document.form1.telNo.value == "")
    {
     alert("Please enter a your telephone no!");
     document.form1.telNo.focus();
     return false;
    }
   if(document.form1.telCode.value == "")
    {
     alert("Please enter a your telephone code!");
     document.form1.telCode.focus();
     return false;
    }
   return true;
  }

  function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
  
  
function checkEmail_onchange()
{
	var email = document.form1.email.value;
	if (email == "" || email == " " || email.indexOf('@', 0) == -1 || email.indexOf('.', 0) == -1)
		{ alert("Please enter a valid e-mail address!");
		document.form1.email.focus();
		document.form1.email.select();
	 return false;
		 }

}


function companyName_onchange()
{
 var company=document.form1.companyName.value;
 
 if (company == "" || company == " " || isNaN(company) != true)
 {
		alert("Please enter a valid company name.");
		 document.form1.companyName.focus();
		 document.form1.companyName.select();
	 return false;
		 }
}

function telNo_onchange()
{
 var telNo=document.form1.telNo.value;
 
 if (telNo == "" || telNo == " " || isNaN(telNo) == true)
 {
		alert("Please enter a valid telephone number.");
		 document.form1.telNo.focus();
		 document.form1.telNo.select();
	 return false;
		 }
}

function telCode_onchange()
{
 var telCode=document.form1.telCode.value;
 
 if (telCode == "" || telCode == " " || isNaN(telCode) == true)
 {
		alert("Please enter a valid telephone code.");
		 document.form1.telCode.focus();
		 document.form1.telCode.select();
		 return false;
		 }
}

function contactPerson_onchange()
{

	var contact=document.form1.contactPerson.value;
	
	if (contact == "" || contact==" " || isNaN(contact) != true)
	{
	alert("Please enter a valid contact person!");
	document.form1.contactPerson.focus();
	document.form1.contactPerson.select();
	 return false;
		 }
	window.status = "Hi " + document.form1.contactPerson.value; " from" +  document.form1.companyName.value;
}
 -->