Например вот так:
Код:<script type="text/javascript"> ****function openWindow(url, width, height){ *var args = "height="+ height +",innerHeight="+ height; *args += ",width="+ width +",innerWidth="+ width; *if (window.screen){ *****var x = (screen.availWidth - width) / 2; *****var y = (screen.availHeight - height) / 2; *****args += ",left="+ x +",screenX="+ x; *****args += ",top="+ y +",screenY="+ y; *} *window.open(url, "_blank", args); ****} </script>