function okno(vImgUrl, vImgWidth,  vImgHeight){

   var vWindowWidth = vImgWidth * 1.0 + 10;

   var vWindowHeight =  vImgHeight * 1.0 + 40;

   var vWindowLeft = ( screen.width / 2 ) - ( vWindowWidth / 2);

   var vWindowTop = ( screen.height / 2 ) - ( vWindowHeight / 2);

   var vWindow = window.open("", "", "toolbar=no, menubar=no, location=no, personalbar=no, status=no, resizable=no, scrollbars=no, copyhistory=no, width="+vWindowWidth+", height="+vWindowHeight+", top="+vWindowTop+", left="+vWindowLeft);

   vWindow.document.write('<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">\n'+

   '<html>\n'+

   '\t<head>\n'+

   '\t\t<title> </title>\n'+

   '\t\t<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">\n'+

   '\t</head>\n'+

    '\t<body style="text-align:center; margin-left: 0px; margin-top: 0px; margin-right: 0px;  background-color: ADD8E6;">\n'+

    '\t\t<img src="'+vImgUrl+'">\n\n'+

    '\t\t<input type="image" src="img/zamknij.gif" title="Zamknij okno" onclick="window.close()">\n'+

    '\t</body>\n'+

    '</html>\n');

	}
	
