function checkFrames() {
	pf = window.top.frames.TOP;
	selfpage = document.location.href;
	if ( !pf ) {
		document.location.href = "frameset.php?page=" + selfpage;
	}
}

function setLayerStatus( layerName, layerStatus ) {
	if ( document.layers && document.layers[layerName] ) {
		if ( layerStatus == "visible" )
			layerStatus = "show";
		else
			layerStatus = "hide";
		document.layers[layerName].visibility = layerStatus ;
	} else if ( document.all && document.all[layerName] ) {
		document.all[layerName].style.visibility = layerStatus;
	} else if ( document.getElementById && document.getElementById(layerName) ) {
		document.getElementById(layerName).style.visibility = layerStatus;
	}
}

function showpicSized(theURL,x,y) { //v2.0
  var sized = window.open(theURL,"popup","toolbar=no,status=no,scrollbars=no,resizable=no,top=20,left=20,width="+x+",height="+y);
  sized.focus();
}


function calcAbc() {
  document.abc.location="szuro.php";
  document.abc.target="";
  document.abc.submit();
}

function calcNev() {
  document.nev.location="szuro.php";
  document.nev.target="";
  document.nev.submit();
}

function calcKeresNev() {
  document.keresNev.location="szuro.php";
  document.keresNev.target="";
  document.keresNev.submit();
}

function calcKeresCim() {
  document.keresCim.location="szuro.php";
  document.keresCim.target="";
  document.keresCim.submit();
}

function calcFilm() {
  document.film.location="szuro.php";
  document.film.target="";
  document.film.submit();
}

function calcTop() {
  document.top.location="szuro.php";
  document.top.target="";
  document.top.submit();
}


<!-- Begin
function showCdFront(theURL,pagetitle) { //v2.0

        input = '<HTML>\n<HEAD>\n\n';
        input += '<TITLE>'+pagetitle+'</TITLE>\n\n';
        input += '<LINK Rel=\'Stylesheet\' href=\'rocks.css\' type=\'text/css\'>\n\n';
        input += '</HEAD>\n\n<BODY topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0 class=black>\n\n';
        input += '<table width=100% height=100% cellpadding=0 cellspacing=0 border=0>\n';
        input += '  <tr>\n';
        input += '    <td align=center valign=middle>\n';
        input += '      <a href=javascript:window.close()><img class=white border=1 src="'+theURL+'"></a>\n';
        input += '    </td>\n';
        input += '  </tr>\n';
        input += '</table>\n\n';
        input += '</BODY>\n</HTML>\n';


newwindow=window.open("","FRONT","toolbar=no,status=no,scrollbars=no,resizable=no,top=0,left=0,width=250,height=250");
        newdocument=newwindow.document;
        newdocument.write(input);
        newdocument.close();
        newdocument.focus();
}
//-->

<!-- Begin
function showCdBack(theURL,pagetitle) { //v2.0

        input = '<HTML><HEAD>\n';
        input += '<TITLE>'+pagetitle+'</TITLE>\n';
        input += '</HEAD><BODY topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n';
        input += '<a href=javascript:window.close()><img border=0 src="'+theURL+'"></a>\n';
        input += '</BODY></HTML>\n';


newwindow=window.open("","BACK","toolbar=no,status=no,scrollbars=no,resizable=no,top=0,left=0,width=762,height=600");
        newdocument=newwindow.document;
        newdocument.write(input);
        newdocument.close();
        newdocument.focus();
}
//-->


if(document.images){

  ujdonsagok0 = new Image(); ujdonsagok0.src = "image/m_ujdonsagok_out.gif";
  ujdonsagok1 = new Image(); ujdonsagok1.src = "image/m_ujdonsagok_over.gif";

  ritkasagok0 = new Image(); ritkasagok0.src = "image/m_ritkasagok_out.gif";
  ritkasagok1 = new Image(); ritkasagok1.src = "image/m_ritkasagok_over.gif";

  katalogus0 = new Image(); katalogus0.src = "image/m_katalogus_out.gif";
  katalogus1 = new Image(); katalogus1.src = "image/m_katalogus_over.gif";

  magunkrol0 = new Image(); magunkrol0.src = "image/m_magunkrol_out.gif";
  magunkrol1 = new Image(); magunkrol1.src = "image/m_magunkrol_over.gif";

  terkep0 = new Image(); terkep0.src = "image/m_terkep_out.gif";
  terkep1 = new Image(); terkep1.src = "image/m_terkep_over.gif";

  rendeles0 = new Image(); rendeles0.src = "image/m_rendeles_out.gif";
  rendeles1 = new Image(); rendeles1.src = "image/m_rendeles_over.gif";



  print0 = new Image(); print0.src = "image/print_out.gif";
  print1 = new Image(); print1.src = "image/print_over.gif";

  stat0 = new Image(); stat0.src = "image/stat_out.gif";
  stat1 = new Image(); stat1.src = "image/stat_over.gif";

  hanko0 = new Image(); hanko0.src = "image/hanko_out.gif";
  hanko1 = new Image(); hanko1.src = "image/hanko_over.gif";

 }


function mout(p){
	if(document.images)
		document.images[p].src = eval(p + "0.src")
}

function mover(p){
	if(document.images)
		document.images[p].src = eval(p + "1.src")
}



<!-- Begin
function popUp(theURL,pagetitle,x,y) { //v2.0

        input = '<HTML><HEAD>\n';
        input += '<TITLE>'+pagetitle+'</TITLE>\n';
        input += '</HEAD><BODY topmargin=0 bottommargin=0 leftmargin=0 rightmargin=0 marginwidth=0 marginheight=0>\n';
        input += '<a href=javascript:window.close()><img border=0 src="'+theURL+'"></a>\n';
        input += '</BODY></HTML>\n';


newwindow=window.open("","ROCKS","toolbar=no,status=no,scrollbars=no,resizable=no,top=150,left=150,width="+x+",height="+y);
        newdocument=newwindow.document;
        newdocument.write(input);
        newdocument.close();
        newdocument.focus();
}
//-->

<!-- Begin
function printWindow() {
bV = parseInt(navigator.appVersion);
if (bV >= 4) window.print();
}
//  End -->


