function obraz(pic,x,y)
{
    var s='<html><head><TITLE>...:: Grafika ::...</TITLE></head>\n';
    s=s+'<body style="background: url(image/load.gif) no-repeat center" BGCOLOR="#000000" MARGINWIDTH=0 MARGINHEIGHT=0 TOPMARGIN=0 LEFTMARGIN=0>\n';
    s=s+'<A HREF="javascript:close()"><IMG ALT="Kliknij aby zamkn±ć to okno" BORDER=0 SRC="'+pic+'"></A>\n';
    s=s+'</body></html>';

    var f = null;
    f = window.open('','','width='+x+',height='+y+',left='+parseInt((window.screen.width - x) / 2)+',top='+parseInt((window.screen.height - y) / 2)+',resizable=0,directories=0,location=0,menubar=0,scrollbars=0,status=0,toolbar=0,left=20,top=20');
    if(f != null) {
        if(f.opener == null) {
          f.opener = self
        }
        f.document.clear();
        f.document.write(s);
        f.document.close();
    }
}




function okno(url, width, height) {
 winleft = ((screen.width - width) / 2);
 wintop = ((screen.height - height) / 2);
 s=',top='+wintop+',left='+winleft+',width='+width+',height='+height;
 P = window.open(url,'','toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0'+s); 
 P.focus(); }





// Autorem skryptu jest: SŁAWOMIR KOKŁOWSKI
// www.kurshtml.boo.pl
// Jeśli chcesz wykorzystać ten skrypt na swojej stronie, nie usuwaj tego komentarza! 


function auto_iframe() 
{ 
   if (parent != self && document.body && (document.body.scrollHeight || document.body.offsetHeight)) 
   { 
      var margines = 0; 

      if (parent.document.getElementById) parent.document.getElementById('autoiframe').height = 1; 
      else if (parent.document.all) parent.document.all['autoiframe'].height = 1; 
      var wysokosc = document.body.scrollHeight != undefined ? document.body.scrollHeight : document.body.offsetHeight; 
      if (wysokosc)
      {
        if (parent.document.getElementById) parent.document.getElementById('autoiframe').height = wysokosc + margines; 
        else if (parent.document.all) parent.document.all['autoiframe'].height = wysokosc + margines; 
      }
   } 
} 
window.onload = auto_iframe;





