/* misza@best.net.pl */
function PopupSizes(nazwa,szer,wys) {
  void newWin(nazwa,szer,wys);
}
function Popup(nazwa) {
  void newWin(nazwa,0,0);
}
function newWin(nazwa,szer,wys) {
var sizes = false;
if (wys>0) { 
    sizes = true;
    szer = szer+28;
    wys = wys+28;
    odlewa=(screen.width-szer)/2;
    odgory=(screen.height-wys)/2;
} else {
    szer = 800;
    wys = 600;
    odlewa=(screen.width)/4;
    odgory=(screen.height)/4;
}

config='left='+odlewa+',top='+odgory+',width='+szer+',height='+wys+',innerheight='+wys+',innerwidth='+szer+',toolbar=no,location=no,directories=no,status=no,menubar=no,resizable=yes,scrollbars=auto';
cel=window.open('','okno',config)
cel.document.write('<HTML><HEAD>');
cel.document.write('<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2">');
cel.document.write('<TITLE>ATA-Technik</title>');
if (!sizes) {
  cel.document.write('<script language="javascript">');
  cel.document.write('	var temp=self.location.href.split("?");');
  cel.document.write('	var picUrl = (temp.length>1)?temp[1]:"";');
  cel.document.write('	var NS = (navigator.appName=="Netscape")?true:false;');
  cel.document.write('	function fitPic() {');
  cel.document.write('		iImg1 = document.getElementById("img1");');
  cel.document.write('		iWidth = (NS)?window.innerWidth:document.body.clientWidth;');
  cel.document.write('		iHeight = (NS)?window.innerHeight:document.body.clientHeight;');
  cel.document.write('		if (iImg1.width>800) iWidth = 640 - iWidth; else { iWidth = iImg1.width + 32 - iWidth; }');
  cel.document.write('		if (iImg1.height>600) iHeight = 600 - iHeight; else { iHeight = iImg1.height + 32 - iHeight; }');
  cel.document.write('		window.resizeBy(iWidth, iHeight-1);');
  cel.document.write('		self.focus();');
  cel.document.write('	};');
  cel.document.write('	function setTitle() {');
  cel.document.write('		self.document.title = top.opener.document.title;');
  cel.document.write('	};');
  cel.document.write('</script>');
}
cel.document.write('</HEAD>');
cel.document.write('<body scroll="auto" leftmargin=10 topmargin=10 marginheight=10 marginwidth=10  style="background-image: url(gfx/ata.gif);background-position: center center; background-repeat: no-repeat; text-align:center;">');
cel.document.write('<a href=# onclick="javascript:self.close();"><img src='+nazwa+' id="img1" class=obw alt="Kliknij aby zamkn±æ okno" style="border: 1px solid #000;" onload="javascript: fitPic();" align=center></a>');
if (!sizes) {
  cel.document.write('<script language="javascript">');
  cel.document.write('	setTitle();');
  cel.document.write('</script>');
}
cel.document.write('</body></html>');
cel.focus();
}

function newhtm(nazwa,szer,wys) {
odlewa=(screen.width-szer)/2;
odgory=(screen.height-wys)/2;		
config='left='+odlewa+',top='+odgory+',width='+szer+',height='+wys+',innerheight='+wys+',innerwidth='+szer+',toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes';
stadion=window.open(nazwa,'okno',config)
stadion.focus();
}
