var Pic=null;

function ShowPic(zdroj,W,H,popis)
{
 if (Pic!=null && !(Pic.closed)) {Pic.close()};

 Pic = window.open('', 'Picture', 'menubar=0,toolbar=0,location=0,directories=0,status=0,scrollbars=1,resizable=1,width='+W+',height='+H+',top=0,left=0');
 Pic.document.open();
 PicHTML = '<html>';
 PicHTML += '<meta http-equiv="Content-Type" content="text/html; charset=windows-1250">';
 PicHTML += '<head>';
 PicHTML += '<link href="styly.css" rel="stylesheet" type="text/css">';
 PicHTML += '  <title>'+popis+'</title>';
 PicHTML += '</head>';
 PicHTML += '<body class="text">';
 PicHTML += '<img src="'+zdroj+'" border="0" alt="'+popis+'" onClick="parent.close();">';
 PicHTML += '<br>';
 PicHTML += ''+popis+'';
 PicHTML += '</body></html>';
 Pic.document.write(PicHTML);
 Pic.document.close();
}