function Form_Validator(theForm)
{

  //EMAIL NAME
  if (theForm.MailFromName.value == "")
  {
    alert("Please enter a value for \"Your Name\".");
    theForm.MailFromName.focus();
    return (false);
  }
  if (theForm.MailFromName.value.length > 40)
  {
    alert("Your name too long! - please shorten");
    theForm.MailFromName.focus();
    return (false);
  }

  //EMAILADDRESS:
  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 > 40)
  {
    alert("Email address too long!");
    theForm.MailFromAddr.focus();
    return (false);
  }

    //COMPANY NAME
  if (theForm.CompanyName.value == "")
  {
    alert("Please enter a value for the \"Company Name\".");
    theForm.CompanyName.focus();
    return (false);
  }
  if (theForm.CompanyName.value.length > 40)
  {
    alert("Company name too long! - please shorten");
    theForm.CompanyName.focus();
    return (false);
  }
 

  //COMPANY PHONE
  if (theForm.AddrPhone.value == "")
  {
    alert("Please enter a value for the \"Phone number\".");
    theForm.AddrPhone.focus();
    return (false);
  }




  return (true);
}
//-->

