<!--
function validateForm(theForm)
{
  // check to see if firstname was entered
  if (theForm.firstname.value == "")
  {
    alert("Please enter Your First Name");
    theForm.firstname.focus();
    return (false);
  }
  
  // check to see if lastname was entered
  if (theForm.lastname.value == "")
  {
     alert("Please enter Your Zip Code");
     theForm.lastname.focus();
     return (false);
  }
  
  //check text validation question was entered
    if (theForm.TextVal.value == "")
  {
    alert("To protect against false submissions, please answer What does 2+3=? in the following field");
    theForm.firstname.focus();
    return (false);
  }

  // check to see if email was entered
  if (theForm.Email.value == "")
  {
    alert("Please enter a valid e-mail address.\n " +
      "");
    theForm.Email.focus();
    return (false);
  }
  

  // check for valid e-mail address
  if (theForm.Email.value.indexOf("@")<1 ||
    theForm.Email.value.indexOf(".")==-1 ||
    theForm.Email.value.indexOf(",")!=-1 ||
    theForm.Email.value.indexOf(" ")!=-1 ||
    theForm.Email.value.length<6)
  {
    alert("Please enter a valid E-mail address.\n" +
    "Example: myname@domainname.com");
    theForm.Email.focus();
    return false
  }

  //check for valid answer to text validation question 
  if (theForm.TextVal.value == "5")
  {
    return (true);
  }
  else
  {
    alert("Please enter correct answer 5");
    theForm.TextVal.focus();
    return (false);
  }  
 

  return (true);
}
//-->