<!--
function Contact_Form_Validator(theForm)
{

  if (theForm.first_name.value == "")
  {
    alert("Please enter a value for the \"First Name\" field.");
    theForm.first_name.focus();
    return (false);
  }

  if (theForm.first_name.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"First Name\" field.");
    theForm.first_name.focus();
    return (false);
  }

  if (theForm.first_name.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"First Name\" field.");
    theForm.first_name.focus();
    return (false);
  }

  if (theForm.last_name.value == "")
  {
    alert("Please enter a value for the \"Last Name\" field.");
    theForm.last_name.focus();
    return (false);
  }

  if (theForm.last_name.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Last Name\" field.");
    theForm.last_name.focus();
    return (false);
  }

  if (theForm.last_name.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Last Name\" field.");
    theForm.last_name.focus();
    return (false);
  }

  if (theForm.email_address.value == "")
  {
    alert("Please enter a value for the \"Email Address\" field.");
    theForm.email_address.focus();
    return (false);
  }

  if (theForm.email_address.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"Email Address\" field.");
    theForm.email_address.focus();
    return (false);
  }

  if (theForm.email_address.value.length > 40)
  {
    alert("Please enter at most 40 characters in the \"Email Address\" field.");
    theForm.email_address.focus();
    return (false);
  }

  var str=theForm.email_address.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);
    }

  if (theForm.Message.value == "")
  {
    alert("Please enter a value for the \"Message\" field.");
    theForm.Message.focus();
    return (false);
  }

  if (theForm.Message.value.length > 1024)
  {
    alert("Please enter at most 1024 characters in the \"Message\" field.");
    theForm.Message.focus();
    return (false);
  }
  return (true);





}
//-->