function Validator(theForm) {
  if (theForm.Name.value == "") {
    alert("Bitte geben Sie ihren Namen ein!");
    theForm.Name.focus();
    return (false);
  }
  if (theForm.EMail.value == "") {
    alert("Bitte geben Sie ihre E-Mail Adresse ein!");
    theForm.EMail.focus();
    return (false);
  }
  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-._@";
  var checkStr = theForm.EMail.value;
  var allValid = 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) || (theForm.EMail.value.indexOf('@') == -1) || (theForm.EMail.value.length < 5)) {
    alert("Ungültige E-Mail Adresse, bitte prüfen Sie auf Tippfehler!");
    theForm.EMail.focus();
    return (false);
  }
  return (true);
}

