Actually, for a redirect, I'd recommend using PHP, not JavaScript:
header("Request-URI: http://www.example.com/foo/");
header("Content-Location: http://www.example.com/foo/");
header("Location: http://www.example.com/foo/");
You can do the same thing just using the "Location: ..." header, but with all three you can pass GET vars along with the URI.
To pop up a window and then redirect, though, you'd have to use JavaScript, since the headers can only be sent before any output to the document; so, you could not do something like:
print "<script language=\"JavaScript\">window.open(...);</script>\n";
header("Request-URI: http://www.example.com/foo/");
header("Content-Location: http://www.example.com/foo/");
header("Location: http://www.example.com/foo/");
This would give you a bunch of errors.