
    /*******************************************************************/

    // menu rollover
    function imgOver(kep) {

        kep.src = kep.src.replace('.gif', '-over.gif');

    }

    function imgOut(kep) {

        kep.src = kep.src.replace('-over.gif', '.gif');

    }


    /*******************************************************************/

    function on(mi)   { mi.style.backgroundColor='#dbecf1'; mi.style.cursor = 'pointer'; }
    function off(mi)  { mi.style.backgroundColor='#FFFFFF'; }

    /*******************************************************************/

    // popups

    function popupPrintableVersion(url) {

        printwin = window.open(url,'printwin','width=900,height=600,toolbar=no,status=no,scrollbars=yes,resizable=yes');
        var xc =(screen.width - 900) / 2;
        var yc =(screen.height - 640) / 2;
        printwin.moveTo(xc, yc);

    }

    function popupEmailVersion(id) {

        emailwin = window.open('index.php?action=cikkemail&id='+id,'emailwin','width=500,height=400,toolbar=no,status=no,scrollbars=no,resizable=no');
        var xc =(screen.width - 400) / 2;
        var yc =(screen.height - 300) / 2;
        emailwin.moveTo(xc, yc);

    }


    // kép popup
    function kep(mit) {

        window.open(url+'/kep.php?pic='+mit,'','width=100,height=100,toolbar=no,status=no,resizable=yes,scrollbars=auto');

    }

    // univerzális popup
    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 mainpageFokepLink() {

        $div('nagykeplink').style.height = $div('nagykep').height + 'px';

    }

    /*******************************************************************/

    // kép feltöltésénél ellenőrizni kell, hogy elfogadta-e a feltételeket
    function kepFeltoltesSubmit() {

        if ($div('elfogadom').checked == false) { alert("Feltöltés előtt el kell fogadnod a Felhasználási Feltételeket!"); return; }
        hideDiv('uploadform');
        showDiv('loader');
        document.uploadform.submit();

    }

    /*******************************************************************/

    // regisztrációnál
    // 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';
    }

    /*******************************************************************/

    // getElementById egyszerűsítve
    function $div(id) { return document.getElementById(id); }

    // láthatóvá tesz egy divet
    function showDiv(_id) {
      document.getElementById(_id).style.display = 'block';
    }

    // elrejt egy divet
    function hideDiv(_id) {
      document.getElementById(_id).style.display = 'none';
    }

