function FrontPage_Form1_Validator(theForm)
{

   if (theForm.ContactFirstName.value == "")
  {
    alert("Please enter a value for the \"ContactFirstName\" field.");
    theForm.ContactFirstName.focus();
    return (false);
  }
  
   if (theForm.ContactLastName.value == "")
  {
    alert("Please enter a value for the \"ContactLastName\" field.");
    theForm.ContactLastName.focus();
    return (false);
  }
  
     if (theForm.ContactPhone1.value == "")
  {
    alert("Please enter a number for the \"Contact Phone Number\" field.");
    theForm.ContactLastName.focus();
    return (false);
  }


  if (theForm.ContactBirthMonth.value == "")
  {
    alert("Please enter a value for the \"ContactBirthMonth\" field.");
    theForm.ContactBirthMonth.focus();
    return (false);
  }

  if (theForm.ContactBirthMonth.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"ContactBirthMonth\" field.");
    theForm.ContactBirthMonth.focus();
    return (false);
  }

  if (theForm.ContactBirthMonth.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"ContactBirthMonth\" field.");
    theForm.ContactBirthMonth.focus();
    return (false);
  }

  if (theForm.ContactBirthDate.value == "")
  {
    alert("Please enter a value for the \"ContactBirthDate\" field.");
    theForm.ContactBirthDate.focus();
    return (false);
  }

  if (theForm.ContactBirthDate.value.length < 2)
  {
    alert("Please enter at least 2 characters in the \"ContactBirthDate\" field.");
    theForm.ContactBirthDate.focus();
    return (false);
  }

  if (theForm.ContactBirthDate.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"ContactBirthDate\" field.");
    theForm.ContactBirthDate.focus();
    return (false);
  }

  if (theForm.ContactBirthYear.value == "")
  {
    alert("Please enter a value for the \"ContactBirthYear\" field.");
    theForm.ContactBirthYear.focus();
    return (false);
  }

  if (theForm.ContactBirthYear.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"ContactBirthYear\" field.");
    theForm.ContactBirthYear.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.ContactSocial1.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"ContactSocial1\" field.");
    theForm.ContactSocial1.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.ContactSocial2.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"ContactSocial2\" field.");
    theForm.ContactSocial2.focus();
    return (false);
  }

  var checkOK = "0123456789-";
  var checkStr = theForm.ContactSocial3.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"ContactSocial3\" field.");
    theForm.ContactSocial3.focus();
    return (false);
  }

  if (theForm.ContactEmail.value == "")
  {
    alert("Please enter a value for the \"ContactEmail\" field.");
    theForm.ContactEmail.focus();
    return (false);
  }

  if (theForm.ContactAddress.value == "")
  {
    alert("Please enter a value for the \"ContactAddress\" field.");
    theForm.ContactAddress.focus();
    return (false);
  }

  if (theForm.ContactCity.value == "")
  {
    alert("Please enter a value for the \"ContactCity\" field.");
    theForm.ContactCity.focus();
    return (false);
  }

  if (theForm.ContactState.value == "")
  {
    alert("Please enter a value for the \"ContactState\" field.");
    theForm.ContactState.focus();
    return (false);
  }

  if (theForm.ContactZipcode.value == "")
  {
    alert("Please enter a value for the \"ContactZipcode\" field.");
    theForm.ContactZipcode.focus();
    return (false);
  }

  if (theForm.ContactZipcode.value.length < 5)
  {
    alert("Please enter at least 5 characters in the \"ContactZipcode\" field.");
    theForm.ContactZipcode.focus();
    return (false);
  }

  if (theForm.ContactZipcode.value.length > 5)
  {
    alert("Please enter at most 5 characters in the \"ContactZipcode\" field.");
    theForm.ContactZipcode.focus();
    return (false);
  }

  if (theForm.ContactResidentYears.value == "")
  {
    alert("Please enter a value for the \"ContactResidentYears\" field.");
    theForm.ContactResidentYears.focus();
    return (false);
  }

  if (theForm.ContactResidentMonths.value == "")
  {
    alert("Please enter a value for the \"ContactResidentMonths\" field.");
    theForm.ContactResidentMonths.focus();
    return (false);
  }

  if (theForm.ContactAreacode.value == "")
  {
    alert("Please enter a value for the \"ContactAreacode\" field.");
    theForm.ContactAreacode.focus();
    return (false);
  }

  if (theForm.ContactPhone1.value == "")
  {
    alert("Please enter a value for the \"ContactPhone1\" field.");
    theForm.ContactPhone1.focus();
    return (false);
  }

  if (theForm.ContactPhone2.value == "")
  {
    alert("Please enter a value for the \"ContactPhone2\" field.");
    theForm.ContactPhone2.focus();
    return (false);
  }

  if (theForm.ContactJobYears.value == "")
  {
    alert("Please enter a value for the \"ContactJobYears\" field.");
    theForm.ContactJobYears.focus();
    return (false);
  }

  if (theForm.ContactJobMonths.value == "")
  {
    alert("Please enter a value for the \"ContactJobMonths\" field.");
    theForm.ContactJobMonths.focus();
    return (false);
  }

  if (theForm.ContactWorkAreaCode.value == "")
  {
    alert("Please enter a value for the \"ContactWorkAreaCode\" field.");
    theForm.ContactWorkAreaCode.focus();
    return (false);
  }

  if (theForm.ContactWorkAreaCode.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"ContactWorkAreaCode\" field.");
    theForm.ContactWorkAreaCode.focus();
    return (false);
  }

  if (theForm.ContactWorkAreaCode.value.length > 3)
  {
    alert("Please enter at most 3 characters in the \"ContactWorkAreaCode\" field.");
    theForm.ContactWorkAreaCode.focus();
    return (false);
  }

  if (theForm.ContactWorkPhone1.value == "")
  {
    alert("Please enter a value for the \"ContactWorkPhone1\" field.");
    theForm.ContactWorkPhone1.focus();
    return (false);
  }

  if (theForm.ContactWorkPhone1.value.length < 3)
  {
    alert("Please enter at least 3 characters in the \"ContactWorkPhone1\" field.");
    theForm.ContactWorkPhone1.focus();
    return (false);
  }

  if (theForm.ContactWorkPhone1.value.length > 3)
  {
    alert("Please enter at most 3 characters in the \"ContactWorkPhone1\" field.");
    theForm.ContactWorkPhone1.focus();
    return (false);
  }

  var checkOK = "0123456789-.,";
  var checkStr = theForm.ContactWorkPhone1.value;
  var allValid = true;
  var validGroups = true;
  var decPoints = 0;
  var allNum = "";
  for (i = 0;  i < checkStr.length;  i++)
  {
    ch = checkStr.charAt(i);
    for (j = 0;  j < checkOK.length;  j++)
      if (ch == checkOK.charAt(j))
        break;
    if (j == checkOK.length)
    {
      allValid = false;
      break;
    }
    if (ch == ".")
    {
      allNum += ".";
      decPoints++;
    }
    else if (ch == "," && decPoints != 0)
    {
      validGroups = false;
      break;
    }
    else if (ch != ",")
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"ContactWorkPhone1\" field.");
    theForm.ContactWorkPhone1.focus();
    return (false);
  }

  if (decPoints > 1 || !validGroups)
  {
    alert("Please enter a valid number in the \"ContactWorkPhone1\" field.");
    theForm.ContactWorkPhone1.focus();
    return (false);
  }

  if (theForm.ContactWorkPhone2.value == "")
  {
    alert("Please enter a value for the \"ContactWorkPhone2\" field.");
    theForm.ContactWorkPhone2.focus();
    return (false);
  }

  if (theForm.ContactWorkPhone2.value.length < 4)
  {
    alert("Please enter at least 4 characters in the \"ContactWorkPhone2\" field.");
    theForm.ContactWorkPhone2.focus();
    return (false);
  }

  if (theForm.ContactWorkPhone2.value.length > 4)
  {
    alert("Please enter at most 4 characters in the \"ContactWorkPhone2\" field.");
    theForm.ContactWorkPhone2.focus();
    return (false);
  }
  return (true);
}