function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function mapa(adr) 
{
	map = new Object;
	var winleft = (screen.width - 750) / 2;
	var wintop = (screen.height - 500) / 2;
	url = 'http://www.opole.pl/mapa/mapa.php4'+'?RUN='+adr;
	map = open(url, 'OKNO_MAPA2', 'Height=500,Width=750,top='+wintop+',left='+winleft+',toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=0,resizable=0');
	map.focus();
}

function chatwin(url) {
var url = url + "?url=" + document.location
var NS = (document.layers) ? true : false;
var IE = (document.all) ? true : false;
var winleft = ((screen.width - 780) / 2) - 5;
var wintop = ((screen.height - 520) / 2) - 38;
	if(NS) {
		window.open(url,"okno_chat","scrollbars=no,menubar=no,personalbar=no,width=780,height=520,screenX=0,screenY=0");
	} else if(IE) {
		window.open(url,'','status=yes,scrollbars=no,menubar=no,personalbar=no,left='+winleft+',top='+wintop+',width=780,height=520');
	}
}

function openform(url) {
var url = url + "?url=" + document.location
var NS = (document.layers) ? true : false;
var IE = (document.all) ? true : false;
var winleft = (screen.width - 550) / 2;
var wintop = (screen.height - 380) / 2;
	if(NS) {
		window.open(url,"okno","scrollbars=no,menubar=no,personalbar=no,width=550,height=410,screenX=220,screenY=0");
	} else if(IE) {
		window.open(url,'','scrollbars=no,menubar=no,personalbar=no,left='+winleft+',top='+wintop+',width=550,height=380');
	}
}
