function openNewWindow(URLtoOpen, windowName, windowFeatures) { 
	newWindow=window.open(URLtoOpen, windowName, windowFeatures); 
}
function openpopup(page, h, w) {
   // Apre popup centrato nello schermo
   h = (h || 580);
   w = (w || 626);
   var l = Math.floor((screen.width-w)/2);
   var t = Math.floor((screen.height-h)/2);
   window.open(page,"","width=" + w + ",height=" + h + ",top=" + t + ",left=" + l);
}