<!--
function HeirAdvanceForm_Validator(theForm)
{


//HEIR NAME:
  if (theForm.HeirName.value == "")
  {
    alert("Please enter a value for the \"Your Name\" field.");
    theForm.HeirName.focus();
    return (false);
  }

//HEIR ADDRESS:
  if (theForm.HeirAddress.value == "")
  {
    alert("Please enter a value for the \"Your Addresse\" field.");
    theForm.HeirAddress.focus();
    return (false);
  }

//HEIR CITY:
  if (theForm.HeirCity.value == "")
  {
    alert("Please enter a value for the \"Your City\" field.");
    theForm.HeirCity.focus();
    return (false);
  }

//HEIR ZIP:
  if (theForm.HeirZip.value == "")
  {
    alert("Please enter a value for the \"Your Zip Code\" field.");
    theForm.HeirZip.focus();
    return (false);
  }

//HEIR PHONE:
  if (theForm.HeirPhone.value == "")
  {
    alert("Please enter a value for the \"Your Phone\" field.");
    theForm.HeirPhone.focus();
    return (false);
  }

//HEIR EMAIL:
  if (theForm.HeirEmail.value == "")
  {
    alert("Please enter a value for the \"Email address\" field.");
    theForm.HeirEmail.focus();
    return (false);
  }
  var str=theForm.HeirEmail.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);
    }

//DECEDENT NAME:
  if (theForm.DecedentName.value == "")
  {
    alert("Please enter a value for the \"Decedent's Name\" field.");
    theForm.DecedentName.focus();
    return (false);
  }

//DECEDENT RELATION:
//  if (theForm.DecedentRelation.value == "")
//  {
//    alert("Please enter a value for the \"Decedent's Name\" field.");
//    theForm.DecedentRelation.focus();
//    return (false);
//  }

//DATE OF DECEDENT DEATH:
//  if (theForm.DecedentDeathDate.value == "")
//  {
//    alert("Please enter a value for the \"Decedent's date of death\" field.");
//    theForm.DecedentDeathDate.focus();
//    return (false);
//  }


//SCRIPT END
  return (true);
}
//-->