timeout =0; // Close window after __ number of seconds?
// 0 = do not close, anything else = number of seconds

function Start(URL, WIDTH, HEIGHT) {

windowprops__ = "left=10,top=20,width=" + (WIDTH+50) + ",height=" + (HEIGHT+50);
text__ = '<html><head><title></title></head><body bgcolor="black"><FORM><center><INPUT TYPE="button" VALUE="Bezár" ' + 'onClick="window.close()"></FORM></CENTER>';

if (timeout != 0) text__ +=" onLoad=\"setTimeout('window.close()', " + timeout*1000 + ");\"";

text__ += "<center><img src='" + URL + "'>";

if (timeout != 0) text__ +="<br><font face='arial, helvetica' size='-1'>Preview closes after " + timeout + " seconds.</font>";

text__ += "</center></body></html>";

preview__ = window.open("", "preview", windowprops__,scrollbars="yes");
preview__.document.open();
preview__.document.write(text__);
	



preview__.document.close();
}



function openbigwindow() {
   window.open('/kepek/nagykep.html?filename='+document.bigpic, 'nagykep', 'left=15,top=10,status=no,scrollbars=yes,noresize,width='+String(document.wdth)+',height='+String(document.hght));
}


