Using JavaScript to open new windows

I followed Kirupa’s tutorial for using JavaScript to open up a new window, which, in my case, displays a streaming movie. It works fine in Safari, but in IE two windows open: an empty one that opens immediately, then one with the movie in it, which opens when the movie’s finished loading. Besides the extraneous window, the movie should begin streaming as it’s loading, like it does in Safari. What could be the problem?