<!--

  // İ 2007 Bitpalast GmbH. Alle Rechte vorbehalten.


  function contact_validator(theForm)
  {

    if (theForm.firma.value.length < 7)
    {
      alert("Ihre Angabe zu Firma oder Einsatzbereich muss mindestens sieben Stellen haben.");
      theForm.firma.focus();
      return (false);
    }

    if (theForm.telefon.value == "")
    {
      alert("Bitte geben Sie Ihre Telefonnummer ein.");
      theForm.telefon.focus();
      return (false);
    }

    if (theForm.telefon.value.length < 7)
    {
      alert("Ihre Telefonnummer muss mindestens sieben Stellen haben.");
      theForm.telefon.focus();
      return (false);
    }

    if (theForm.email.value == "")
    {
      alert("Bitte geben Sie Ihre e-Mail Adresse ein.");
      theForm.email.focus();
      return (false);
    }

    if (theForm.email.value.length < 8)
    {
      alert("Ihre e-Mail Adresse muss mindestens acht Zeichen lang sein.");
      theForm.email.focus();
      return (false);
    }

    if ((theForm.email.value.indexOf("sdf") > -1) || (theForm.email.value.indexOf("jkl") > -1) || (theForm.email.value.indexOf(".") == -1) || (theForm.email.value.indexOf("@") == -1)) {
      alert("Ihre e-Mail Adresse ist ungültig.");
      theForm.email.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@-_.";
    var checkStr = theForm.email.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 geben Sie nur Buchstaben, Ziffern und \"@-_.\" Zeichen in die e-Mail Adresse ein.");
      theForm.email.focus();
      return (false);
    }

    if (theForm.nachricht.value.length < 20)
    {
      alert("Ihre Nachricht muss mindestens 20 Zeichen lang sein.");
      theForm.message.focus();
      return (false);
    }


    return (true);
  }

//-->