function obrazek(nazwa,wymiar1,wymiar2) 
{ 
   center1=screen.width/2 - wymiar1/2; 
   center2=screen.height/2 - wymiar2/2; 
   okno=window.open("", "", "height="+wymiar2+",width="+wymiar1+", left="+center1+",top="+center2); 
   okno.document.open(); 
   okno.document.write("<html>\n<head>\n<title>&nbsp;</title>\n</head>\n<body marginheight=0 marginwidth=0 leftmargin=0 topmargin=0>\n<a href=javascript:window.close()><img src="+nazwa+" border=0 alt='Kliknij by zamkn±ć powiększenie'></a>\n</body>\n</html>"); 
   okno.document.close(); 
} 