function Validator(theForm)
{

  var radioSelected = false;
  for (i = 0;  i < theForm.Title.length;  i++)
  {
    if (theForm.Title[i].checked)
        radioSelected = true;
  }
  if (!radioSelected)
  {
    alert("Please select Title / Salutation.");
    return (false);
  }

  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 verify if you entered your first name correctly.");
    theForm.First_Name.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789- \t\r\n\f";
  var checkStr = theForm.First_Name.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 verify if you entered your first name correctly. Enter only letters, digits and whitespaces.");
    theForm.First_Name.focus();
    return (false);
  }

  if (theForm.MI.value.length > 1)
  {
    alert("Only one letter is requited for your middle name initial.");
    theForm.MI.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz";
  var checkStr = theForm.MI.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 verify if you entered your middle name initial correctly. Enter only one letter. Characters other than letters are not allowed.");
    theForm.MI.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 < 1)
  {
    alert("Please verify if you entered your last name correctly.");
    theForm.Last_Name.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-- \t\r\n\f";
  var checkStr = theForm.Last_Name.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 verify if you entered your last name correctly. Enter only letters, digits and whitespaces.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.School_or_Organization.value == "")
  {
    alert("Please enter the name of school or organization you are affiliated with.");
    theForm.School_or_Organization.focus();
    return (false);
  }

  if (theForm.School_or_Organization.value.length < 1)
  {
    alert("Please verify if you entered the name of the school or organization correctly.");
    theForm.School_or_Organization.focus();
    return (false);
  }

  if (theForm.City.value == "")
  {
    alert("Please enter the city where your school or organization is located.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.City.value.length < 1)
  {
    alert("Please verify if you entered the name of the city correctly.");
    theForm.City.focus();
    return (false);
  }

  if (theForm.State.selectedIndex < 0)
  {
    alert("Please select the state where your school or organization is located.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.State.selectedIndex == 0)
  {
    alert("Please verify if you selected the state where your school or organization is located.");
    theForm.State.focus();
    return (false);
  }

  if (theForm.E_Mail.value == "")
  {
    alert("Please enter your e-mail address.");
    theForm.E_Mail.focus();
    return (false);
  }

  if (theForm.E_Mail.value.length < 1)
  {
    alert("Please verify if you entered your e-mail address correctly.");
    theForm.E_Mail.focus();
    return (false);
  }
  return (true);
}
