<!--

  // © 2004-2008 Bitpalast GmbH. All rights reserved.

  function changeimage(nr,imageobj) {
    window.document.images[nr].src = imageobj.src;
  }

  function setpage() {
//
  }

  function contact_validator(theForm)
  {
    if (theForm.message.value == "")
    {
      alert("Kérem, írja be az üzenet szövegét is.");
      theForm.message.focus();
      return (false);
    }

    if (theForm.message.value.length < 20)
    {
      alert("Az Ön üzenetének legalább 20 karakterból kell állnia.");
      theForm.message.focus();
      return (false);
    }

    if (theForm.email.value == "")
    {
      alert("Kérem, írja be az e-mail címét!");
      theForm.email.focus();
      return (false);
    }

    if (theForm.email.value.length < 8)
    {
      alert("Kérem, a \"Feladó e-mail címe\" mezobe legalább 8 karaktert írjon be!");
      theForm.email.focus();
      return (false);
    }

    var checkOK = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyzf0123456789@-_.";
    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("Az \"e-mail\" mezobe csak betuket, számjegyeket, valamint a \"@-_.\" jeleket szabad beírni.");
      theForm.email.focus();
      return (false);
    }

    return (true);
  }

//-->
