function FrontPage_Form1_Validator(theForm)
{

  if (theForm.First_Name.value == "")
  {
    alert("Please enter your First Name.");
    theForm.First_Name.focus();
    return (false);
  }

  if (theForm.First_Name.value.length < 1)
  {
    alert("Please enter your First Name.");
    theForm.First_Name.focus();
    return (false);
  }

  if (theForm.First_Name.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"First Name\" field.");
    theForm.First_Name.focus();
    return (false);
  }

  if (theForm.Last_Name.value == "")
  {
    alert("Please enter your Last Name.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.Last_Name.value.length < 2)
  {
    alert("Please enter your Last Name.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.Last_Name.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Last Name\" field.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.Address1.value == "")
  {
    alert("Please enter your Address.");
    theForm.Address1.focus();
    return (false);
  }

  if (theForm.Address1.value.length < 1)
  {
    alert("Please enter your Address.");
    theForm.Address1.focus();
    return (false);
  }

  if (theForm.Address1.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"Address 1\" field.");
    theForm.Address1.focus();
    return (false);
  }

  if (theForm.City.value == "")
  {
    alert("Please enter your City.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.City.value.length < 1)
  {
    alert("Please enter your City.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.City.value.length > 20)
  {
    alert("Please enter at most 20 characters in the \"City\" field.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.State.selectedIndex < 0)
  {
    alert("Please select your State.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.State.selectedIndex == 0)
  {
    alert("Please select your State.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.Zipcode.value == "")
  {
    alert("Please enter your Zip Code.");
    theForm.Zipcode.focus();
    return (false);
  }

  if (theForm.Zipcode.value.length < 5)
  {
    alert("Please enter your Zip Code.");
    theForm.Zipcode.focus();
    return (false);
  }

  if (theForm.Zipcode.value.length > 5)
  {
    alert("Please enter at most 5 numbers in the \"Zip Code\" field.");
    theForm.Zipcode.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = theForm.Zipcode.value;
  var allValid = true;
  var validGroups = true;
  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 (!allValid)
  {
    alert("Please enter only numbers in the \"Zip Code\" field. Sorry, U.S. residents only.");
    theForm.Zipcode.focus();
    return (false);
  }

  if (theForm.email.value == "")
  {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length < 7)
  {
    alert("Please enter your email address.");
    theForm.email.focus();
    return (false);
  }

  if (theForm.email.value.length > 50)
  {
    alert("Please enter at most 50 characters in the \"email\" field.");
    theForm.email.focus();
    return (false);
  }

if (theForm.email.value.indexOf("@", 0) < 0)
 {
    alert("Please enter a valid email address.");
    theForm.email.focus();
    return (false);
 }

if (theForm.email.value.indexOf(".", 0) < 0)
 {
    alert("Please enter a valid email address.");
    theForm.email.focus();
    return false;
 }

  if (theForm.Age.value == "")
  {
    alert("Please enter a value for the \"Age\" field.");
    theForm.Age.focus();
    return (false);
  }

  if (theForm.Age.value.length < 1)
  {
    alert("Please enter at least 1 characters in the \"Age\" field.");
    theForm.Age.focus();
    return (false);
  }

  if (theForm.Age.value.length > 2)
  {
    alert("Please enter at most 2 characters in the \"Age\" field.");
    theForm.Age.focus();
    return (false);
  }

  var checkOK = "0123456789";
  var checkStr = theForm.Age.value;
  var allValid = true;
  var validGroups = true;
  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 (!allValid)
  {
    alert("Please enter only numbers in the \"Age\" field.");
    theForm.Age.focus();
    return (false);
  }

 if (theForm.Age.value < 13)
  {
    window.location = "http://www.magscentral.com/underaged.htm";
return (false);
  }


  return (true);
}