function ablakUrl( url, width, height){
    map = window.open(url,'galeria','toolbar=no,location=no,directories=no,menubar=no,resizable=no,status=yes,top=10,left=10,width='+width+',height='+height+'');
    map.focus();
}

function ablakCMSUrl( url, width, height){
    map = window.open(url,'cms','toolbar=no,location=no,directories=no,menubar=no,resizable=no,status=yes,top=10,left=10,width='+width+',height='+height+'');
    map.focus();
}

function ablakUrl2( url, width, height){
    map = window.open(url,'galeria2','toolbar=no,location=no,directories=no,menubar=no,resizable=no,status=no,top=10,left=10,width='+width+',height='+height+'');
    map.focus();
}

function ablakPrint( url, width, height ){
    printAblak = window.open(url,'galeria','toolbar=no,scrollbars=yes,resizable=no,top=10,left=10,width='+width+',height='+height+'');
    printAblak.focus();
}

function ablakWap( url, width, height ){
    printAblak = window.open(url,'wap','toolbar=no,scrollbars=yes,resizable=no,top=10,left=10,width='+width+',height='+height+'');
    printAblak.focus();
}

function debug2(obj){
    var ablak = window.open("","","");
    Kijelzo = obj.document.parentWindow.parent.document.links;
    for (i in Kijelzo) { 
        if ( ( i!="innerHTML" )&&( i!="outerHTML" ) ) { 
            ablak.document.writeln(i,":"); 
            eval( 'ablak.document.writeln( Kijelzo.' + i + ',"<br>");' ); 
        }
    }
}

function myConfirm(obj){
    if(confirm('Biztosan törli?')){
        obj.submit();
    }
}

function nyitZar(obj, url, width, height){
    ablakUrl2( url, width, height);
    obj.top.close();
}

function nyitZar2(obj, url, width, height){
    ablakUrl( url, width, height);
    obj.top.close();
}

function szuloUrl(url){
    window.parent.opener.location=url;
    top.close();
}

function hatterSet(id, clr, clr2, url, overOut){
    var o=eval("document.all.csik"+id);
    if (o && o.style){
        o.style.background=clr;
        o.style.color=clr2;
    }
    var image1=eval("document.keresesF"+id);
    var image2=eval("document.keresesA"+id);
    if(overOut == 0){
        image1.src=url+"kereses_eredmeny_aktiv_f.gif";
        image2.src=url+"kereses_eredmeny_aktiv_a.gif";
    }
    if(overOut == 1){
        image1.src=url+"kereses_eredmeny_f.gif";
        image2.src=url+"kereses_eredmeny_a.gif";
    }
}

function imageChange (name, url){
    var myImage=eval("document."+name);
    myImage.src=url;
}

function ment(){
    opt = window.frames['katalogus'].window.document.forms.katalogusLista.kid;
    var selectedTomb = "";
    for (var intLoop = 0; intLoop < opt.length; intLoop++) {
        if (opt[intLoop].checked) {
            selectedTomb += opt[intLoop].value + ";";
        }
    }
    document.katalogusFullForm.katalogusIds.value = selectedTomb;

    if(document.katalogusFullForm.nev.value == ""){
    } else {
        document.katalogusFullForm.submit();
    }
}


function printArticle() {
    if (window.print) {
        setTimeout('window.print();',200);
    } else if (agt.indexOf("mac") != -1) {
        alert("Nyomja meg a 'Cmd+p' gombokat a cikk nyomtatásához!");
    } else {
        alert("Nyomja meg a 'Ctrl+p' gombokat a cikk nyomtatásához!")
    }
}


