<!-- 
function PopUp(pURL, pWidth, pHeight)
{
    ala = window.open(pURL,'pTitle','toolbar=0,location=0,status=0,menubar=0,scrollbars=0,resizable=0,width='+ pWidth +',height='+pHeight); 
}
// -->

<!--
function displayWindow(url, width, height) {
        var Win = window.open(url,"displayWindow",'width=' + width + ',height=' + height + ',resizable=0,scrollbars=no,menubar=no' );
}
//-->

<!-- 
Nowe_Okno = null;
function galeria(src, w, h){
if(window.screen){
 aw=screen.availWidth;
 ah=screen.availHeight;
}
else{
 aw=640;
 ah=450;
}
if (Nowe_Okno==null || Nowe_Okno.closed){
 ustawienia=
 "left=" + (aw-w)/2 + ","
 +"top=" + (ah-h)/2 + ","
 +"screenX=" + (aw-w)/2 + ","
 +"screenY=" + (ah-h)/2 + ","
 +"width=" + w + ","
 +"height=" + h + ","
 +"innerWidth=" + w + ","
 +"innerHeight=" + h + ","
 +"toolbar=no,"
 +"location=no,"
 +"directories=no,"
 +"status=no,"
 +"menubar=no,"
 +"scrollbars=no,"
 +"resizable=no"
 Nowe_Okno = window.open('',
 'obrazek',ustawienia);
}
Nowe_Okno.document.open();
Nowe_Okno.document.clear();
Nowe_Okno.document.write(
"<html><head>\n"
+"</head>\n"
+"<body leftmargin=0 topmargin=0>\n"
+"<TABLE width=100% height=100% border=0><TR align=center><TD valign=center><IMG SRC=" + src + "></TD></TR></TABLE>"
+"</body>\n"
+"</html>"
);
Nowe_Okno.document.close();
Nowe_Okno.focus();
} 


    function getPageSize () {
	        
	     var xScroll, yScroll;
		
		if (window.innerHeight && window.scrollMaxY) {	
			xScroll = window.innerWidth + window.scrollMaxX;
			yScroll = window.innerHeight + window.scrollMaxY;
		} else if (document.body.scrollHeight > document.body.offsetHeight){ // all but Explorer Mac
			xScroll = document.body.scrollWidth;
			yScroll = document.body.scrollHeight;
		} else { // Explorer Mac...would also work in Explorer 6 Strict, Mozilla and Safari
			xScroll = document.body.offsetWidth;
			yScroll = document.body.offsetHeight;
		}
		
		var windowWidth, windowHeight;
		
		if (self.innerHeight) {	// all except Explorer
			if(document.documentElement.clientWidth){
				windowWidth = document.documentElement.clientWidth; 
			} else {
				windowWidth = self.innerWidth;
			}
			windowHeight = self.innerHeight;
		} else if (document.documentElement && document.documentElement.clientHeight) { // Explorer 6 Strict Mode
			windowWidth = document.documentElement.clientWidth;
			windowHeight = document.documentElement.clientHeight;
		} else if (document.body) { // other Explorers
			windowWidth = document.body.clientWidth;
			windowHeight = document.body.clientHeight;
		}	
		
		// for small pages with total height less then height of the viewport
		if(yScroll < windowHeight){
			pageHeight = windowHeight;
		} else { 
			pageHeight = yScroll;
		}
	
		// for small pages with total width less then width of the viewport
		if(xScroll < windowWidth){	
			pageWidth = xScroll;		
		} else {
			pageWidth = windowWidth;
		}

		return [pageWidth,pageHeight];
	}





// -->
