  // original code by mr.a -- http://www.mr-a.hu
  function startList(mit) {
      if (document.all&&document.getElementById) {
          navRoot = document.getElementById(mit);
          for (i=0; i<navRoot.childNodes.length; i++) {
              node = navRoot.childNodes[i];
              if (node.nodeName=="LI") {
                  node.onmouseover=function() { this.className+=" over"; }
                  node.onmouseout=function() { this.className=this.className.replace(" over", ""); }
              }
          }
      }
  }

  function startList2() {
    startList("menu");
    betolt(); // nevnap;
  }
  window.onload=startList2;

  function fix(a) { a.href=a.href.replace(/.NO_S_P_A_M./g, ""); return true; }
  function mailstatus(a, b)
  {
        var email = a.href.replace(/.NO_S_P_A_M./g, "");
	if (b) { window.status=email; return true; }
	else { window.status=""; return true; }
  }


  // innentől minden az enyém

  // ha belelép...
  function hirlevelValueDelete(mit) {
    mit.value = '';
  }

  // ha kilép belőle...
  function hirlevelValueRestore(mit, msg) {
    if (mit.value == '') mit.value = msg;
  }

  // csak azt ellenőrzi, hogy beírt-e valamit, konkrétabban nem mélyedtem bele
  function verifyEmail(f) {
    var mehet = false;
    var email = document.getElementById("email");
    if ((email.value == '')||(email.value == 'Írja be az e-mail címét!')) {
      alert('Nem adta meg az e-mail címét!');
      email.value = '';
      email.focus();
      return false;
    } else {
      document.newsletterform.submit();
    }
  }

  // ellenőrzi az e-mail cím felépítését
  function verifyEmailCharacters(e) {
    emailReg=/^[a-zA-Z0-9_\.-]+@[a-zA-Z0-9\-\.]+\.[a-zA-Z0-9\-]+$/;
    if(emailReg.exec(address)==null && address != ''){
      window.alert('Érvénytelen e-mail cím');
      return false;
    }
    return true;
  }

  // ha üres egy input, akkor kap egy "red" class-t is, ezzel jelezve, hogy ki kell tölteni
  function checkRegFormInput(w) {
    w.className = (w.value != '') ? 'input' : 'input red';
  }

  function popup(mit, w, h) {
    var xc =(screen.width - w) / 2;
    var yc =(screen.height - 25 - h) / 2;
    popupwin = window.open(mit,'popupwin','width='+w+',height='+h+',scrollbars=yes,resizable=no,menu=no,status=no');
    popupwin.moveTo(xc, yc);
  }

  function kep(mit) {
    window.open(url+'/kep.html?'+mit,'','width=100,height=100,toolbar=no,status=no,resizable=yes,scrollbars=no');
  }

