function obrazek(nazwa,wymiar1,wymiar2,opis)
{
center1=screen.width/2-wymiar1/2;
center2=screen.height/2-wymiar2/2;
center1=center1/2;
center2=center2/2;
w1=wymiar1;
w2=wymiar2;
okno=window.open("", "","height="+w2+", width="+w1+", top="+center2+", left="+center1+",");
okno.document.open();
okno.document.write("<html>\n<head>\n<title>"+opis+"</title>\n</head>\n<body BGCOLOR=#FFFFCC style=\"margin:0px\">\n<a href=javascript:window.close()><img src="+nazwa+" border=0 alt='Click to close !!!'></a>\n</body>\n</html>");
okno.document.close();
}
