function open_window(page, width, height) { x = (640 - width)/2, y = (480 - height)/2; if (screen) { y = (screen.availHeight - height)/2; x = (screen.availWidth - width)/2; } // popup = window.open(page, 'CtrlWindow', 'toolbar={toolbar},top='+ y +',left='+ x +',screenY='+ y +',screenX='+ x +',scrollbars=1,menubar={menubar},location={location},resizable={resizable},width=' + width + ',height=' + height); window.open (page, 'CtrlWindow','scrollbars=1,top='+ y +',left='+ x +',screenY='+ y +',screenX='+ x +',width=' + width + ',height=' + height); }