self.focus(); var width = screen.width var height = screen.height w = (width-782)/2; h = (height-430)/2; x = Math.round(w*1); y = Math.round(h*1); self.resizeTo(782,430); self.moveTo(x,y); var astWd=null; function storia() { astWd=window.open("storia/home.eng.htm","storia","scrollbars=yes,directories=yes,location=no,menubar=yes,resizable=yes,status=yes,toolbar=yes") var width = screen.width var height = screen.height w = (width-780)/2; h = (height-500)/2; x = Math.round(w*1); y = Math.round(h*1); astWd.resizeTo(780,500); astWd.moveTo(x,0); } function closeWin() { if (astWd && !astWd.closed) {astWd.close();} self.close(); } //if(window.Event)document.captureEvents(Event.ONCLICK); //document.onclick=closeWin;