<!--
function FrontPage_Form1_Validator(theForm)
{

  if (theForm.name.value == "")
  {
    alert("Bitte geben Sie \"Kontakt\" in \"Betreff\" Feld ein.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length < 15)
  {
    alert("Bitte geben Sie \"Kontakt\" in \"Betreff\" Feld ein.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length > 55)
  {
    alert("Bitte geben Sie \"Kontakt\" in \"Betreff\" Feld ein.");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value == "")
  {
    alert("Bitte geben Sie Ihre Name in das Feld \"Name\" ein!");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length < 1)
  {
    alert("Bitte prüfen Sie Ihre Name!");
    theForm.name.focus();
    return (false);
  }

  if (theForm.name.value.length > 55)
  {
    alert("Bitte prüfen Sie Ihre Name!");
    theForm.name.focus();
    return (false);
  }

  var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzƒŠŒŽšœžŸÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõöøùúûüýþÿ-,() \t\r\n\f";
  var checkStr = theForm.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("Bitte prüfen Sie Ihre Name! (keine zahlen und sonderzeichen bitte!");
    theForm.name.focus();
    return (false);
  }

  if (theForm.telefon.value == "")
  {
    alert("Bitte geben Sie Ihre Telefon in das Feld \"Telefon\" ein!");
    theForm.telefon.focus();
    return (false);
  }

  if (theForm.telefon.value.length < 1)
  {
    alert("Bitte prüfen Sie Ihre Telefonnummer!");
    theForm.telefon.focus();
    return (false);
  }

  if (theForm.telefon.value.length > 55)
  {
    alert("Bitte prüfen Sie Ihre Telefonnummer! (es ist nur ein tel. Nummer zugelassen!)");
    theForm.telefon.focus();
    return (false);
  }

  var checkOK = "0123456789- \t\r\n\f";
  var checkStr = theForm.telefon.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("Bitte prüfen Sie Ihre Telefonnummer! ( nur zahlen und leerzeichen - keine sonderzeichen bitte!");
    theForm.telefon.focus();
    return (false);
  }

  if (theForm.from.value == "")
  {
    alert("Bitte geben Sie Ihre E-Mail Adresse in das Feld \"E-Mail\" ein.");
    theForm.from.focus();
    return (false);
  }

  if (theForm.from.value.length < 7)
  {
    alert("Bitte geben Sie Ihre E-Mail Adresse in das Feld \"E-Mail\" ein.");
    theForm.from.focus();
    return (false);
  }

  if (theForm.from.value.length > 55)
  {
    alert("Bitte prüfen Sie Ihre E-Mail Adresse");
    theForm.from.focus();
    return (false);
  }

  if (theForm.r_text.value == "")
  {
    alert("Bitte geben Sie Ihre Nachricht an uns!");
    theForm.r_text.focus();
    return (false);
  }
  return (true);
}
//-->