// JavaScript Document

function pokaz(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=yes, 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:0px; padding:5px; overflow:auto;background-color:#7796d0;">\n'+
   '\t\t<img src="'+vImgUrl+'" style="">\n'+
   '\t\t<input type="button" value="zamknij okno" onclick="window.close()" style="border:solid 1px #87abf2; font:12px verdana, sans-serif; margin-top:5px; background-color:#3766ac; color:#ffffff;">\n'+
   '\t</body>\n'+
   '</html>\n');   
}
