function FrontPage_Form1_Validator(theForm)
{

  if (theForm.Last_Name.value == "")
  {
    alert("Please enter a value for the \"Last_Name\" field.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.Last_Name.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"Last_Name\" field.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.First_Name.value == "")
  {
    alert("Please enter a value for the \"First_Name\" field.");
    theForm.First_Name.focus();
    return (false);
  }

  if (theForm.First_Name.value.length > 30)
  {
    alert("Please enter at most 30 characters in the \"First_Name\" field.");
    theForm.First_Name.focus();
    return (false);
  }

  if (theForm.CustomerNo.value == "")
  {
    alert("Please enter a value for the \"CustomerNo\" field.");
    theForm.CustomerNo.focus();
    return (false);
  }

  if (theForm.CustomerNo.value.length > 6)
  {
    alert("Please enter at most 6 characters in the \"CustomerNo\" field.");
    theForm.CustomerNo.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.CustomerNo.value;
  var allValid = 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
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"CustomerNo\" field.");
    theForm.CustomerNo.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"CustomerNo\" field.");
    theForm.CustomerNo.focus();
    return (false);
  }

  if (theForm.EMail_Address.value == "")
  {
    alert("Please enter a value for the \"EMail_Address\" field.");
    theForm.EMail_Address.focus();
    return (false);
  }

  if (theForm.EMail_Address.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"EMail_Address\" field.");
    theForm.EMail_Address.focus();
    return (false);
  }

  if (theForm.Home_Phone_Area.value.length > 3)
  {
    alert("Please enter at most 3 characters in the \"Home_Phone_Area\" field.");
    theForm.Home_Phone_Area.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.Home_Phone_Area.value;
  var allValid = 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
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Home_Phone_Area\" field.");
    theForm.Home_Phone_Area.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"Home_Phone_Area\" field.");
    theForm.Home_Phone_Area.focus();
    return (false);
  }

  if (theForm.Home_Phone_No.value == "")
  {
    alert("Please enter a value for the \"Home_Phone_No\" field.");
    theForm.Home_Phone_No.focus();
    return (false);
  }

  if (theForm.Home_Phone_No.value.length > 8)
  {
    alert("Please enter at most 8 characters in the \"Home_Phone_No\" field.");
    theForm.Home_Phone_No.focus();
    return (false);
  }

  if (theForm.Day_Time_Area.value.length > 3)
  {
    alert("Please enter at most 3 characters in the \"Day_Time_Area\" field.");
    theForm.Day_Time_Area.focus();
    return (false);
  }

  var checkOK = "0123456789-.";
  var checkStr = theForm.Day_Time_Area.value;
  var allValid = 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
      allNum += ch;
  }
  if (!allValid)
  {
    alert("Please enter only digit characters in the \"Day_Time_Area\" field.");
    theForm.Day_Time_Area.focus();
    return (false);
  }

  if (decPoints > 1)
  {
    alert("Please enter a valid number in the \"Day_Time_Area\" field.");
    theForm.Day_Time_Area.focus();
    return (false);
  }
  return (true);
}