ok, i've been using this script for popping up a centered window, which firefox executes without a problem, but IE gives me an "error in page" and doesn't open anything at all. what's wrong with it?
HTML Code:
<SCRIPT LANGUAGE="JavaScript">
<!--
function NewWindow(url, windowName, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable';
win = window.open(url, windowName, winprops);
if (parseInt(navigator.appVersion) >= 4) {
win.window.focus();
}
}
// -->
</script>
or respectively:
HTML Code:
<a href="javascript:NewWindow('whatever.html','name','800','600','no')">
help will be greatly appreciated, i'm going nuts here...

thanks in advance,
j