// JavaScript Document


function foto(adres,wid,hei,tytul)
                {
                    var wid2 = wid +50;
                    var hei2 = hei +50;
                    tx=(screen.availWidth-wid2)/2;
                    ty=(screen.availHeight-hei2)/2;
                    var Win = window.open(adres,"",'width=' + wid2 + ',height=' + hei2 + ',resizable=1,top='+ty+',left='+tx+',scrollbars=no,menubar=no,resizable=no');
                    Win.focus();
                    Win.document.write('<html><head><meta http-equiv="content-type" content="text/html; charset=iso-8859-2"><title>',tytul,'</title></head><BODY bgcolor="#fcfcfc" onclick="self.close()">');
                    Win.document.write('<center>');
                    Win.document.write('<a href="#" onclick="javascript: window.close();return false;"><br><img src="',adres,'" width=',wid,' height=',hei,' vspace=0 border=0 alt="',tytul,'"></A></body></html>');
                    Win.document.close();
                }
				
			
function zw(zm)
{
if(eval("document.all."+zm+".style.display")=="none")
  eval("document.all."+zm+".style.display='';");
  else
  eval("document.all."+zm+".style.display='none';");
}

function pokaz(src, w, h) {
	noweOkienko = null;
	if (window.screen) {
		aw = screen.availWidth;
		ah = screen.availHeight;
	} else {
		aw = 640;
		ah = 450;
	}
	
	w+=0;
	h+=0;
	//src = base_href+src;
	
	if (noweOkienko==null || noweOkienko.closed) {
		ustawienia=
		"left=" + (aw-w)/2 + ","
		+"top=" + (ah-h)/2 + ","
		+"screenX=" + (aw-w)/2 + ","
		+"screenY=" + (ah-h)/2 + ","
		+"width=" + w + ","
		+"height=" + h + ","
		+"innerWidth=" + w + ","
		+"innerHeight=" + h + ","
		+"toolbar=no,"
		+"location=no,"
		+"directories=no,"
		+"status=no,"
		+"menubar=no,"
		+"scrollbars=no,"
		+"resizable=no"
		noweOkienko = window.open("", 'obrazek', ustawienia);
	}
	noweOkienko.document.open();
	noweOkienko.document.clear();
	noweOkienko.document.write(
	"<html><head><title>ZDJECIA</title></head><BODY bgcolor=#ffffff leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 link=#000000 vlink=#000000 alink=#000000>\n"
	+"<table width='100%' height='100%' border='0' cellspacing='0' cellpadding='0' align='center'><tr><td align='center'>"
	+"<a href='javascript:window.close()'><img src="+ src +"  border=0></a>"
	+"</td></tr></table>\n"
	+"</body></html>"
	);
	
	noweOkienko.document.close();
	noweOkienko.focus();
}
