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 check if you entered your first name correctly.");
    theForm.First_Name.focus();
    return (false);
  }

  var checkOK = "AÄBCDEFGHIJKLMNOÖPQRSTUÜVWXYZaäbcdefghijklmnoöpqrsßtuüvwxyz0123456789- \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 check 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 = "AÄBCDEFGHIJKLMNOÖPQRSTUÜVWXYZaäbcdefghijklmnoöpqrsßtuüvwxyz";
  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 check 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 check if you entered your last name correctly.");
    theForm.Last_Name.focus();
    return (false);
  }

  var checkOK = "AÄBCDEFGHIJKLMNOÖPQRSTUÜVWXYZaäbcdefghijklmnoöpqrsßtuüvwxyz0123456789-- \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 check if you entered your last name correctly. Enter only letters, digits and whitespaces.");
    theForm.Last_Name.focus();
    return (false);
  }

  if (theForm.School.selectedIndex < 0)
  {
    alert("Please select the name of the GLSC school you attended.");
    theForm.School.focus();
    return (false);
  }

  if (theForm.School.selectedIndex == 0)
  {
    alert("Please check if you selected the name of the school correctly.");
    theForm.School.focus();
    return (false);
  }

  if (theForm.Year.selectedIndex < 0)
  {
    alert("Please select the last year you attended the GLSC school.");
    theForm.Year.focus();
    return (false);
  }

  if (theForm.Year.selectedIndex == 0)
  {
    alert("Please check if you selected last year you attended the GLSC school correctly.");
    theForm.Year.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 check if you entered your e-mail address correctly.");
    theForm.E_Mail.focus();
    return (false);
  }
  return (true);
}