function zoom( plik, xxx, yyy, id)
{o = null;
 if (window.screen) {
  aw = screen.availWidth;
  ah = screen.availHeight;}
 else {
  aw = 640;
  ah = 480;
 }
 xxx += 40;
 if (xxx>screen.availWidth - 15) xxx = screen.availWidth - 15;
 if (yyy>screen.availHeight - 30) yyy = screen.availHeight - 30;
u="width="+xxx+",height="+yyy+",left="+Math.round(((aw-xxx)/2)-5)+",top="+Math.round(((ah-yyy)/2)-14)+",toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no";
 o = window.open( plik, 'zoom', u);
}

function open_image(x){
 with(open('','f','width=400,height=250,left=250,top=250')){
document.write('<html><head><META HTTP-EQUIV="imagetoolbar" CONTENT="no"><title>Purpose</title>'+
'<script type="text/javascript">function L(I){'+
'I.parentNode.style.visibility="visible";'+
'focus();resizeTo(I.width+6,I.height+25);moveTo((screen.width/2)-I.width/2,(screen.height/2)-I.height/2);}<\/script></head>'+
'<body style="background-color:white;'+'border:0px;font:normal bold 14px Verdana">'+
'<div id="wai" style="font-family:franki,tahoma;font-size:12px;color:#994D4D;font-weight:bold;position:relative;top:50%;"><center>trwa wczytywanie obrazka, prosze czekac...</center></div><div style="overflow:hidden;'+
'position:absolute;visibility:hidden;left:0px;top:0px">'+
'<img alt="Zamknij okno" onclick="javascript: window.close();" style="CURSOR: pointer;" onerror="L=parentNode.previousSibling;L.innerHTML='+
'\'Bląd ladowania obrazka...\';L.style.backgroundColor=\'white\'" onload="L(this)"  src="'+x+'"></div></body></html>')
document.close() }
}

