// JavaScript Document

function FrontPage_Form1_Validator(theForm)
{

  if (theForm.phone.value == "")
  {
    alert("Please enter a value for the \"phone\" field.");
    theForm.phone.focus();
    return (false);
  }
  
  if (theForm.name.value == "")
  {
    alert("Please enter a value for the \"name\" field.");
    theForm.name.focus();
    return (false);
  }
  
  if (theForm.city.value == "")
  {
    alert("Please enter a value for the \"city\" field.");
    theForm.city.focus();
    return (false);
  }

  if (theForm.phone.value.length < 10)
  {
    alert("Please enter at least 10 characters in the \"phone\" field.");
    theForm.phone.focus();
    return (false);
  }

  if (theForm.phone.value.length > 10)
  {
    alert("Please enter at most 10 characters in the \"phone\" field.");
    theForm.phone.focus();
    return (false);
  }
  return (true);
}

