First of all, re-do your code...
here's what I suggest...
Code:
<html>
<head>
<title>test</title>
<script language="JavaScript">
<!--
function openWindow()
{
var w = 140;
var h = 147;
var winFeatures = 'width='+w+',height='+h+',location=yes,scrollbars=yes,
left=350,top=220,resizable=yes';
var winPtr = window.open(this.target, 'Login', winFeatures);
//-->
</script>
</head>
<body>
<form method="post" action="http://www.mysite/cgi/login.cgi" target="popupWin" onSubmit="openWindow(); return true;">
</form>
</body>
</html>
Try that, see if it works - that's how you name a window..
Here is the javascript openwindow function explained.
Variable = window.Open('PAGE_URL', 'PAGE_NAME', 'PAGE_PROPERTIES');
That's it
~Quack