opening new window in ie7 opens same target as base window but shows proper url in firefox
<p>i have a simple little form</p>

<pre><code>&lt;form id="loginform"&gt; &lt;input id="myinput" type="text" /&gt; &lt;input name="submit" value="go" type="submit" /&gt;&lt;/form&gt;
</code></pre>

<p>in a very not secure way i want it to go to different urls depending on the input value.</p>

<p>here is my simple little jquery script that i am sure could be written more succinctly. (feel free to help)</p>

<pre><code>$(document).ready(function() {
jQuery.noConflict();
var apple = 'http://www.apple.com';
var microsoft = 'http://www.microsoft.com';

    jQuery('#loginform').submit(function() {
    var pass = jQuery('#myinput').val();

if (pass=='apple') {
var currentloc=apple;
} else if (pass=='microsoft') {
var currentloc=microsoft;
}
else {
var currentloc ='http://www.mysite.com/sorry'; 
}
        window.open(currentloc, 'formpopup', 'width=800,height=600,resizeable=1,scrollbars=1');
    });
});
</code></pre>

<p>this works when i run it on ffcurrent macintosh, but not when i run it in ie7. then the popup window is the same as the window we are coming from.</p>
