

var pop_win_params = 'directories=no,location=no,menubars=no,menubar=no,resizable=yes,scrollbars=yes,statusbars=yes,status=no,titlebar=yes,toolbar=no,fullscreen=no'; 

function popWin( URL, i_height, i_width, s_title) {
	i_height += 16;
	if (parseInt(navigator.appVersion) >= 4) { winl = 100, wint = 100; }
	var winl = (screen.width - i_height) / 2;
	var wint = (screen.height - i_width) / 2;
	day = new Date();
	eval ("page" + s_title + " = window.open('" + URL + "','" + s_title + "','" + pop_win_params + ",width="+i_height+",height="+i_width+",left="+winl+",top="+wint+"');");
}

function oknoObci(URL){
	popWin( URL, 320, 180, 'code');
	//if (window.pagecode.focus) window.pagecode.focus();
}

function oknoKlient(URL){
	popWin( URL, 450, 400, 'Klient');
	//if (window.pagecode.focus) window.pagecode.focus();
}

function oknoAdresa(URL){
	popWin( URL, 450, 400, 'Adresa');
	//if (window.pagecode.focus) window.pagecode.focus();
}

