// JavaScript Order Form validation
function Form_Validator(theForm)
{
	if (theForm.HowHeard.selectedIndex == 0)
	{
		alert("Please select How your heard about us");
		theForm.HowHeard.focus();
		return (false);
	}	
 	if (theForm.Name.value == "")
  {
    alert("Please enter your Name");
    theForm.Name.focus();
    return (false);
  }
	if (theForm.Address.value == "")
  {
    alert("Please enter Address");
    theForm.Address.focus();
    return (false);
  }
	if (theForm.City.value == "")
  {
    alert("Please enter a City");
    theForm.City.focus();
    return (false);
  }
	
	if (theForm.Zip_Code.value == "")
  {
    alert("Please enter a Zip Code");
    theForm.Zip_Code.focus();
    return (false);
  }
	if (theForm.Phone_Number.value == "")
  {
    alert("Please enter a Phone Number ");
    theForm.Phone_Number.focus();
    return (false);
  }
  if (theForm.Email.value.length == 0) {
    alert("Please fill in the E-mail address");
    theForm.Email.focus();
    return false;
  }
  re = /^[a-zA-Z0-9_.\-]+@[a-zA-Z0-9.\-]+[a-zA-Z0-9\-]\.[a-zA-Z][a-zA-Z]+$/;
  if (!re.test(theForm.Email.value)) {
    alert("Please fill in a correct E-mail address");
    theForm.Email.focus();
    return false;
  }	

   return (true);
}