<!--

function clearsearch() {
	if (document.getElementById('mit').value.substring(0,5) == 'keres') document.getElementById('mit').value = '';
}

function zoom(pic) {
    window.open('zoom2.php?photo='+pic, 'ZOOM', 'scrollbars=no,status=no,location=no,toolbar=no,resizable=no,width=200,height=200');
}

function zoom2(mit,xx,yy) {
    ZOOM2 = window.open(mit, 'ZOOM2', 'scrollbars=no,status=no,location=no,toolbar=no,resizable=no,width='+xx+',height='+yy);
}

function zoom3(mit) {
    window.open(mit, 'ZOOM3', 'scrollbars=yes,status=yes,location=no,toolbar=yes,resizable=yes');
}

function zoom4(mit,xx,yy) {
    window.open(mit, 'ZOOM4', 'scrollbars=yes,status=yes,location=no,toolbar=yes,resizable=yes,width='+xx+',height='+yy);
}

function SetCookie(cookieName,cookieValue) {
 var today = new Date();
 var expire = new Date();
 var nDays = 3650;
 if (nDays==null || nDays==0) nDays=1;
 expire.setTime(today.getTime() + 3600000*24*nDays);
 document.cookie = cookieName+"="+escape(cookieValue)
                 + ";expires="+expire.toGMTString();
}



// start hide dropdown...
function hideElms(elmTag) {
	for (i=0; i<document.all.tags(elmTag).length; i++){
		obj = document.all.tags(elmTag)[i];
		if (!obj || !obj.offsetParent) continue;
		obj.style.visibility = "hidden";
	}
}
function showElms(elmTag) {
	for (i=0; i<document.all.tags(elmTag).length; i++){
		obj = document.all.tags(elmTag)[i];
		if (!obj || !obj.offsetParent) continue;
		obj.style.visibility = "visible";
	}
}

function showDiv(obj) {
	hideElms('SELECT');
	obj.style.visibility = "visible";
}
// end hide dropdown...

function setRowBg(sor, newclass) {
    if (newclass == '' || typeof(sor.style) == 'undefined') {
        return false;
    }
    
	if (typeof(document.getElementsByTagName) != 'undefined') {
        var cella = sor.getElementsByTagName('td');
    } else if (typeof(sor.cells) != 'undefined') {
        var cella = sor.cells;
    } else {
        return false;
    }

    var cellak  = cella.length;
    for (var c = 0; c < cellak; c++) {
        cella[c].className = newclass;
        cella[c].style.cursor = 'pointer';
    }

    return true;
}

-->