<!--

  // İ 2004 Bitpalast GmbH. Alle Rechte vorbehalten.

  function setpage() {
//
  }

  function gotoenglish() {
    currentlocation = new String(document.location);
    currentlocation = currentlocation.replace(/www.g-h-s-partner.de/gi,"www.g-h-s-partner.com");
    top.location.href = currentlocation;   
  }

  function contact_validator(theForm)
  {
    if (theForm.message.value == "")
    {
      alert("Bitte geben Sie noch Ihren Mitteilungstext ein.");
      theForm.message.focus();
      return (false);
    }

    if (theForm.message.value.length < 20)
    {
      alert("Ihre Mitteilung muss mindestens 20 Zeichen lang sein.");
      theForm.message.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("Bitte geben Sie mindestens 8 Zeichen in das Feld \"Ihre e-Mail Adresse\" ein.");
      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("Für das Feld \"e-Mail\" sind nur Buchstaben, Ziffern und die Zeichen \"@-_.\" erlaubt.");
      theForm.email.focus();
      return (false);
    }

    return (true);
  }

//-->
