		function Popup(img,szer,wys) {
  tytul="Panel Administracyjny";
  var szer1 = parseInt(szer) + 20;
  var wys1 = parseInt(wys) + 22;
  szer1 = (szer1 < screen.availWidth) ? szer1 : screen.availWidth;
  wys1 = (wys1 < screen.availHeight) ? wys1 : screen.availHeight;
  var winl = (screen.availWidth - szer1) / 2;
  var wint = (screen.availHeight - wys1) / 2; 
  w=window.open("","","width="+szer1+",height="+wys1+",top="+wint+",left="+winl+",toolbar=no,scrollbars=yes,resizable=no,status=no,location=no,menubar=no,");	
  w.document.write("<HTML><HEAD><meta http-equiv='content-type' content='text/html;  charset=utf-8' /><TITLE>"+tytul+"</TITLE>");
  w.document.write("<style><!-- table { background: url(img/wait.gif) 50% 50% no-repeat white; margin: 0; padding: 0;color: #aaaaaa; font-family: verdana, sans-serif; font-size: 8pt; } body {margin:0; padding: 0; background-color:#FFFFFF;} //--> </style></head><body scroll='no'><table cellspacing='0' cellpadding='0' align='center' valign='middle' width='100%' height='100%'><tr><td class='img' width='100%' height='100%' align='center' valign='middle'><div style='border-top: 1px solid #cccccc; border-bottom: 1px solid #cccccc; margin: auto;' ><a href=\"javascript:self.close();\"><img	style='cursor: pointer; cursor: hand; border: 10px solid white;' galleryimg='no' src='"+ img +"' alt=\"click to close\" /></a></div></td></tr></table>");
  w.document.write("</BODY></HTML>");
  w.document.close();
		}
		
		function resize() {
    var wys_okna;
    if (window.innerHeight) {
        wys_okna = window.innerHeight;
    }
    
    else if (document.body.scrollHeight) {
        wys_okna = document.body.scrollHeight;
    }
    
    else if (document.height) {
        wys_okna = document.height;
    }
    /*
if(document.getElementById('info')) {
        d = document.getElementById('info');
        if(d.offsetHeight) divHeight=d.offsetHeight;
        else if(d.style.pixelHeight) divHeight=d.style.pixelHeight;
        wys_okna -= (divHeight+20);
    }
*/
    
    document.getElementById('c_ontent').style.height = (parseInt(wys_okna) - 110 + "px");
	 
}

