var popUpWin=0;
function popUpWindow(URLStr, left, top, width, height)
{
  if(popUpWin)
  {
    if(!popUpWin.closed) popUpWin.close();
  }
  popUpWin = open(URLStr, 'popUpWin', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width='+width+',height='+height+',left='+left+', top='+top+',screenX='+left+',screenY='+top+'');
}


function pozycje(){
	document.getElementById("body").style.display = 'block';
	var UA, OPERApos, MSIEpos, Name, Version, wys;
	var wysokosci=new Array;
	wys = 560;
	UA = window.navigator.userAgent;
	OPERApos = UA.indexOf("Opera");
	MSIEpos = UA.indexOf("MSIE");
	if (OPERApos >= 0) {
		Name = "Opera";
	} else if (MSIEpos >= 0) {
		Name = "mie";
	} else {
		Name = UA.substring(0, UA.indexOf("/"));
	}
	if (Name == 'NN4') { 
		wysokosci[wysokosci.length]=document.layers["zawartosc"].document.height; 
	} 
	if (Name == 'mie') { 
		//wysokosci[wysokosci.length]=document.documentElement.scrollHeight;
		wysokosci[wysokosci.length]= tresc.scrollHeight;
	}
	if (Name == 'Opera') { 
		wysokosci[wysokosci.length]=document.all["Table_01"].scrollHeight;
		wysokosci[wysokosci.length]= tresc.scrollHeight ;
	}
	if (Name == 'Mozilla') {
		wysokosci[wysokosci.length]=document.documentElement.scrollHeight;
	}
	/*wybieranie najwiekszej wartosci*/
	for(i=0; i<wysokosci.length; i++){
		if(wys<wysokosci[i]){
			wys=wysokosci[i];
		}
	}
	if(Name == 'NN4') document.layers["stopka"].style.top=wys +"px"; document.getElementById("zawartosc").style.height = wys +"px";
	if(Name == 'mie') document.all["stopka"].style.top=wys +"px"; document.getElementById("zawartosc").style.height = wys +"px";
	if(Name == 'Opera') document.all["stopka"].style.top=wys +"px";	document.getElementById("zawartosc").style.height = wys +"px";
	if(Name == 'Mozilla'){ document.getElementById("stopka").style.top=wys - 302 +"px";	document.getElementById("zawartosc").style.height = wys -302 +"px";}

	
}