<!--
function Form1_Validator(theForm)
{

if (theForm.realname.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.realname.focus();
    return (false);
  }
 
    if (theForm.contact_address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.contact_address.focus();
    return (false);
  }
  if (theForm.contact_city.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.contact_city.focus();
    return (false);
  }
  
  if (theForm.contact_zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.contact_zip.focus();
    return (false);
  }
  
    if (theForm.contact_zip.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Zip\" field.");
    theForm.contact_zip.focus();
    return (false);
  }
   if (theForm.email.value == "")
  {
    alert("Please enter a value for the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }
  if (theForm.contact_phone.value == "")
  {
    alert("Please enter a value for the \"Phone\" field.");
    theForm.contact_phone.focus();
    return (false);
  }

  if (theForm.contact_phone.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"phone\" field.");
    theForm.contact_phone.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.contact_phone.value;
  var allValid = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Phone\" field.");
    theForm.contact_phone.focus();
    return (false);
  }
  

   if (theForm.datesched.value.length == "")
  {
    alert("Please enter a  characters in the \"Date\" field.");
    theForm.datesched.focus();
    return (false);
  }

    if (theForm.time.value == "")
  {
    alert("Please enter a value for the \"Time\" field.");
    theForm.time.focus();
    return (false);
  }

    if (theForm.datesched2.value.length == "")
  {
    alert("Please enter a  characters in the \"2nd Date\" field.");
    theForm.datesched2.focus();
    return (false);
  }

    if (theForm.time2.value == "")
  {
    alert("Please enter a value for the \"2nd Time\" field.");
    theForm.time2.focus();
    return (false);
  }
 
    if (theForm.how_did_you_hear.value == "")
  {
    alert("Please enter a value for the \"How did you hear about us?\" field.");
    theForm.how_did_you_hear.focus();
    return (false);
  }
  
else{  
  return (true);
}
}

