function obr(plik,x,y,text)    {   if(text == null) { text=""; }   NewWindow=window.open('','NewWindow','scrollbars=yes,toolbar=no,menubar=no,status=no,resizable=no');   NewWindow.document.open();   NewWindow.document.writeln("<html><head><meta http-equiv=\"Content-Type\" content=\"text/html; charset=\"windows-1250\"></head>");   NewWindow.document.writeln("<title>ZPAS</title>");   NewWindow.document.writeln("<body>");   NewWindow.document.writeln("<table width='100%'>");   NewWindow.document.writeln("<tr><td><a href=\"javascript:window.close();\">");   NewWindow.document.writeln("<center><img src=\""+plik+"\" border=1 alt=\"Click here to close the windows.\" title=\"Click here to close the windows.\"></center></a></td></tr>");   NewWindow.document.writeln("<tr><td><center><strong>"+text+"</strong></center></td></tr>");   NewWindow.document.writeln("</table>");   NewWindow.document.writeln("</body></HTML>");   NewWindow.document.close();   NewWindow.window.moveTo(0,0);   if(x != null && y != null)     { if(x != 0 && y == 0) { NewWindow.window.resizeTo(x,screen.availHeight); }       if(x != 0 && y != 0) { NewWindow.window.resizeTo(x,y); }       if(x == 0 && y != 0) { NewWindow.window.resizeTo(screen.availWidth,y); }       if(x == 0 && y == 0) { NewWindow.window.resizeTo(screen.availWidth,screen.availHeight); }     }     else     { NewWindow.window.resizeTo(screen.availWidth,screen.availHeight); }          NewWindow.focus();   return;   }
