var obrazek=null;
//
function pokazObrazek(path,title,sizeX,sizeY) {
	if(obrazek && !obrazek.closed) obrazek.close();
	obrazek=window.open("", "obrazek", "width="+sizeX+", height="+sizeY+", location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no,alwaysRaised=true,left=1,top=1,screenX=1,screenY=1");
	with(obrazek) {
		document.writeln('<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">');
		document.writeln('<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl" lang="pl">');
		document.writeln('<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" />');
		document.writeln('<title>'+title+'</title>');
		document.writeln('<link href="css/popup.css" rel="stylesheet" type="text/css" /></head><body>');
		document.writeln('<img alt="'+title+'" width="'+sizeX+'" height="'+sizeY+'" src="'+path+'" onClick="self.close();">');
		document.writeln('</body></html>');
		document.close();
	}
	obrazek.focus();
	return false;
}
