Dim TheForm Dim h Dim w sub Validate() Set TheForm = Document.forms("logon") TheForm.action = "logon.u" TheForm.target = "console" h = screen.availHeight-27 w = screen.availWidth-10 window.open "about:blank","console","height="&h&", width="&w&", top=0, left=0, toolbar=yes, menubar=no, scrollbars=no, resizable=no, location=no, status=no" End sub