<!--
function ConsultForm_Validator(theForm)
{
  if (theForm.DayofWeek.value == "")	    
  {
    alert("Please enter a value for the \"Day Of Week\" field.");
    theForm.DayofWeek.focus();
    return (false);
  }
   
  if (theForm.ApptTime.value  == "")    
  {
    alert("Please enter a value for the \"Appointment Time\" field.");
    theForm.DayofWeek.focus();
    return (false);
  }

  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.Address.focus();
    return (false);
  }
  
  if (theForm.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.City.focus();
    return (false);
  }
  
  if (theForm.Zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.Zip.focus();
    return (false);
  }
 
  if (theForm.Zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.Zip.focus();
    return (false);
  }
   
  if (theForm.Name.value == "")
  {
    alert("Please enter a value for the \"Name\" field.");
    theForm.Name.focus();
    return (false);
  }

  if (theForm.Address.value == "")
  {
    alert("Please enter a value for the \"Address\" field.");
    theForm.Address.focus();
    return (false);
  }
  
  if (theForm.City.value == "")
  {
    alert("Please enter a value for the \"City\" field.");
    theForm.City.focus();
    return (false);
  }
  
  if (theForm.Zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.Zip.focus();
    return (false);
  }
 
  if (theForm.Zip.value == "")
  {
    alert("Please enter a value for the \"Zip\" field.");
    theForm.Zip.focus();
    return (false);
  }
  
  if ((theForm.HomePhone.value == "")||
      (theForm.WorkPhone.value == ""))
  {   
    alert("Please enter a value for the \"HomePhone\" field.");
    theForm.HomePhone.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);
  }
  	  
  if (theForm.comments.value == "")
  {
    alert("Please enter a value for the \"Comments\" field.");
    theForm.comments.focus();
    return (false);
  }

  if (theForm.comments.value.length > 1000)
  {
    alert("Please enter at most 1000 characters in the \"Comments\" field.");
    theForm.comments.focus();
    return (false);
  }

  //Script end
  return (true);
}

//-->
