
<!--
function Form_Validator(theForm)
{
  //Name:
    if (theForm.YourName.value == "")
    {
      alert("Please enter a value for the \"Name\" field.");
      theForm.YourName.focus();
      return (false);
    }

  //Address:
    if (theForm.YourAddress1.value == "")
    {
      alert("Please enter an address.");
      theForm.YourAddress1.focus();
      return (false);
    }

  //City:
    if (theForm.YourCity.value == "")
    {
      alert("Please enter a City.");
      theForm.YourCity.focus();
      return (false);
    }
  
  //State:
    if (theForm.YourState.value == "")
    {
      alert("Please enter a State.");
      theForm.YourState.focus();
      return (false);
    }
  
  //Zip:
    if (theForm.YourZip.value == "")
    {
      alert("Please enter a Zip Code.");
      theForm.YourZip.focus();
      return (false);
    }

  //Phone:
    if (theForm.YourDayPhone.value == "")
    {
      alert("Please enter a \"Phone\" number.");
      theForm.YourDayPhone.focus();
      return (false);
    }

  //Email:
    var str=theForm.YourEmail.value
    var filter=/^(\w+(?:\.\w+)*)@((?:\w+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i
      if (filter.test(str))
      testresults=true
      else{
      alert("Please input a valid email address!");
      return (false);
      }

  //Event Type:
    if (theForm.EventType.value == "")
    {
      alert("Please enter an \"Event Type\".");
      theForm.EventType.focus();
      return (false);
    }

  //Event Date:
    if (theForm.EventDate.value == "")
    {
      alert("Please enter an \"Event Date\".");
      theForm.EventDate.focus();
      return (false);
    }

  //Event Time:
    if (theForm.EventTime.value == "")
    {
      alert("Please enter an \"Event Date\".");
      theForm.EventTime.focus();
      return (false);
    }

  //Additional Information:
    if (theForm.AdditInfo.value.length > 2000)
    {
      alert("Please enter at most 2000 characters in the \"Additional Information\" field.");
      theForm.AdditInfo.focus();
      return (false);
    }

//Script end
  return (true);
}
//-->

