Pop up window and its Java Script

Hi. I have a trouble with completing my site where you are supposed to be able to view a pop-up window by clicking a button on that site. I just went to
http://www.kirupa.com/developer/flash8/centered_popup_window2.htm

and tried to learn how to create a pop-up window in Flash.
I did create something in Flash and broght the html file into DreamWeaver and added JavaScript Codes which launches a pop-up window by clicking a particular button that I just created in Flash.
When I review the html file in Safari and try to launch the pop-up window, there is always an error message saying

“Safari can’t use JavaScript for this action.
Safari can’t run the script “openNewWindow(‘clip.html’,‘clipwindow’,‘width=400,height=316,toolbar=no,scrollbars=no’)” because Safari doesn’t allow JavaScript to be used in this way.”

Does anybody know what I may need to fix in order to make my pop-up wondow file work in a browser?

Any Comment would be appreciated.
I am using Flash MX 2004 on Mac OS-X.