//funkcje.js

// nowe okno
function noweOkno(url, nazwa, szerokosc, wysokosc) {
	x = (screen.width) ? (screen.width - szerokosc) / 2 : 0;
	y = (screen.height) ? (screen.height - wysokosc) / 2 : 0;
	window.open(url, nazwa, 'toolbar=0,location=0,directories=0,menubar=0,status=0,scrollbars=1,resizable=1,left=' + x + ',top=' + y + ',width=' + szerokosc + ',height=' + wysokosc);
}

// nowe okno informator
function popWin(url, nazwa) {
	noweOkno(url, nazwa, 400, 600);
	}
	
// Wyświetl okno	
function displayWindow (url,width,height) {
			if(!width)
				width='500';
			if(!height)
				height='710';
			
			window.open(url,'inform','width='+width+',height='+height+',menubar=no, toolbar=no, location=no, scrollbars=yes, resizable=yes, status=yes');
			}
// Wyświetl okno	gzc
			function winPop(url, name, w, h) {
		var l = screen.width / 2 - w / 2;
		var t = screen.height / 2 - h / 2;
		var Win = window.open(url, name, 'width=' + w + ', height=' + h + ', left=' + l + ', top=' + t + ', scrollbars=yes, resizable=yes');
	}
