<!--
function ContactForm_Validator(theForm)
{

  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Name.value.length > 45)
  {
    alert("Please enter at most 45 characters in the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

//Email:
  var str=theForm.Email.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.Email.value.length > 55)
  {
    alert("Please enter at most 55 characters in the \"Email Address\" field.");
    theForm.Email.focus();
    return (false);
  }
  
//Script end
  return (true);
}

//-->

