Help with swfobject...so close to solution!

I am using this method to open a new window from a flash movie on a html page.

http://www.jackleaman.co.uk/flash/two/geturl.html

which seems to work perfectly for me in Firefox, but in IE the new windows do not open.

I initially thought it may the the fact that i wasnt using swfobject…so introduced that. Putting the swfobject.js into the same directory as the html and swf.

My html for the test page is:

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>covers</title>
</head>
<body bgcolor="#d9ecff">
<!--url's used in the movie-->
<!--text used in the movie-->
<!-- saved from url=(0013)about:internet -->
<script type="text/javascript" src="swfobject.js"></script>

<div id="flashcontent">
This text is replaced by the Flash movie.
</div>

<script type="text/javascript">
var so = new SWFObject("covers.swf", "covers", "308", "211", "8", "#D9ECFF");
so.write("flashcontent");
</script>
</body>
</html>

The above has seemed to have solved the problem with IE putting an initial boarder around the flash… but the pop up window still wont work.(but it does in Firefox)

At the bottom corner of the IE browser window is a yellow warning triangle double clicking that comes back with the following note:

Line: 1
Char: 1
Error: Invalid Arguement
Code: 0
URL: http://www.websitename.com

do you think there may be a problem with the flash code withing the swf rather than the swfobject issue?

Here is the code i am using within my flash file:

ON TIMELINE WITHIN MOVIE CLIP

clip1.loadVariables("geturl.txt");

myLink = function(param,name,w,h,a,b,c,d,e,f,g){
sUrl = "http://"+param;
resx = System.capabilities.screenResolutionX;
resy = System.capabilities.screenResolutionY;
lft = resx/2 - w/2;
tp = resy/2 - h/2;
getURL("javascript:window.open('"+sUrl+"','"+name+"','width="+w+",height="+h+",top="+tp+",left="+lft+",directories="+a+",location="+b+",menubar="+c+",resizable="+d+",status="+e+",toolbar="+f+",scrollbars="+g+"');void(0);");
}

ON BUTTON WITHIN SAME MOVIECLIP

on(press){
	myLink("www.websitename.co.uk/images/productshots/covers1.jpg","Cover 1",265,350,"no","no","no","no","no","no","no");
}

any idea what wrong?

I thought that perhaps it was because I was putting the code within a movie clip, rather than on the main timeline.

But I did another test using the same code i am using. This time i started a new project and tested the above code on the main timeline and the button on the main stage.

I tested in FF and was fine, tested in IE and the same error happened.

Its weird that its working fine in FF but not in IE.