///display window
var JSFSplashWin = null;
function popup(url, width, height) {
	ScrWidth = 800; ScrHeight = 600;
	if (window.screen) {ScrWidth = window.screen.width; ScrHeight = window.screen.height}
	PosX = Math.round((ScrWidth - width)/2);
	PosY = Math.round((ScrHeight - height)/2);
	if (JSFSplashWin != null && !document.layers) {JSFSplashWin.close();}
	height += 0;
	JSFSplashWin = window.open("", "splash", "menubar=no,toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=no,copyhistory=no,width=" + width + ",height=" + height + ",left=" + PosX + ",top=" + PosY);
	JSFSplashWin.document.open();
	JSFSplashWin.document.clear();
	JSFSplashWin.document.write('<html><head><title>Kliknij by zamkn±æ</title><style><!-- body{background: #ececec;} --></style></head><body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0"><script>function closeMe(e){window.close();} document.onclick = closeMe;</script><table width="300" border="0" cellspacing="0" cellpadding="0" height="250" vspace="0" hspace="0"><img src="' + url + '" border="0" alt="Kliknij by zamkn±æ"></td></tr></table></body></html>');
	JSFSplashWin.document.close();
	JSFSplashWin.focus();	
}

