var bName = navigator.appName;
var bVer = parseInt(navigator.appVersion);
var NS4 = (bName == "Netscape" && bVer >= 4);
var IE4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
var NS3 = (bName == "Netscape" && bVer < 4);
var IE3 = (bName == "Microsoft Internet Explorer" && bVer < 4);


function finestra (sWhat) {

if (NS4 || IE4) {
x= (screen.width - 700)/2;
y= (screen.height - 500)/2;
y2= (screen.height - 500)/2;
}
else  {
x= (800 - 700)/2;
y= (600- 500)/2;
y2= (600 - 500)/2;

}
if (IE3) detailWin=window.open(sWhat,'Balbi','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=400,height=380,left='+ x +',top='+ y2);
else detailWin=window.open(sWhat,'Balbi','toolbar=no,location=no,directories=no,status=no,scrollbars=no,resizable=yes,copyhistory=no,width=400,height=380,left='+ x +',top='+ y);
}

function apri(theURL,winName,features) {
	window.open(theURL,winName,features);
	}