"using javascript to open new window"...please help

HI…i’ve used this article http://www.kirupa.com/developer/flash5/newwindow.htm
for using javascript to open up a new window in flash. Well followed all the steps and made the flash movie with the required code. Its work till this step. Now here the problem starts.Now i want to insert that swf movie in a html page, so that when the button in that swf movie is clicked, it opens up a new window…? this doesnt works…
Can someone help me in figuring out this problem? I need to insert the flash movie in the html page just as the “Kirupa Chinnathambi” name animation has been added to the page whose link i’ve provided above.
http://www.kirupa.com/developer/flash5/newwindow.htm

I’ll really appreciate it if someone can help me out here…