<!--
function ContactForm_Validator(theForm)
{

//NAME:
  if (theForm.MailFromName.value == "")
  {
    alert("Please enter a value for the Name.");
    theForm.MailFromName.focus();
    return (false);
  }
  if (theForm.MailFromName.value.length > 50)
  {
    alert("Email Name too long!");
    theForm.MailFromName.focus();
    return (false);
  }

//MailFromAddress:
  var str=theForm.MailFromAddr.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.MailFromAddr.value.length > 50)
  {
    alert("Email address too long!");
    theForm.MailFromAddr.focus();
    return (false);
  }

//MESSAGE BOX VALIDATE:
  //TEST FOR MAXIMUM CHARACTERS:
  if (theForm.Message.value.length > 1024)
  {
    alert("Please enter no more than 1024 characters in the Message.");
    theForm.Message.focus();
    return (false);
  }
}
//-->
