// image mousever cuccok
function on(kep) {
        kepBe = eval(kep + "_on.src");
        document [kep].src = kepBe;
}
function off(kep) {
        kepKi = eval(kep + "_off.src");
        document [kep].src = kepKi;
}



// altalanos pop up window
function pw(file,wid,hei,bars,resiz) {
	xpos = ((window.screen.width-wid)/2)-1;
	ypos = ((window.screen.height-hei)/2)-1;
	window1=window.open(''+file+'',"puw",'scrollbars='+bars+',resizable='+resiz+',width='+wid+',height='+hei+',left='+xpos+',top='+ypos+',screenx='+xpos+',screeny='+ypos+'');
	window1.focus()
}



// pic window
function ppw(kep,szelesseg,magassag) {
//	szelesseg=szelesseg+40;
//	magassag=magassag+40;
	xpos = (window.screen.width-szelesseg)/2;
	ypos = ((window.screen.height-magassag)/2)-40;
	nagykep=open('','_blank','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=no,width='+szelesseg+',height='+magassag+',left='+xpos+',top='+ypos+',screenx='+xpos+',screeny='+ypos+',resizable=0');
	nagykep.document.open();
	nagykep.document.writeln('<HTML>');
	nagykep.document.writeln('<BODY LEFTMARGIN="0" TOPMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" BGCOLOR="#1B2A7B">');
	nagykep.document.writeln('<TITLE></TITLE>');
	nagykep.document.writeln('<TABLE BORDER="0" CELLSPACING="0" CELLPADDING="0" WIDTH="100%" HEIGHT="100%"><TR><TD ALIGN="center">');
	nagykep.document.writeln('<A HREF="javascript:close()"><img src="/pic/'+kep+'" BORDER="0"></A><BR>');
	nagykep.document.writeln('</TD></TR></TABLE>');
	nagykep.document.writeln('</BODY>');
	nagykep.document.writeln('</HTML>');
	nagykep.document.close();
}


function ow(file,wid,hei,bars,resiz,status) {
   xpos = (750-wid)/2;
// ypos = ((window.screen.height-hei)/2)-100;
   ypos = 100;
   window1=window.open(''+file+'',"MG",'scrollbars='+bars+',resizable='+resiz+',width='+wid+',height='+hei+',left='+xpos+',top='+ypos+',screenx='+xpos+',screeny='+ypos+',status='+status+'');
   window1.focus()
}
