Pop Up Tutorial - URGENT HELP PLEASE

I am try to make an image pop up in a new window when the user clicks on a button which is within a movie clip in a scrolling gallery.

I am try to use this tutorial

http://www.kirupa.com/developer/mx/centered_popup.htm

However, when I copy and paste this directed into my project it doesnt work.

I know my buttons are active because the code has been written in a way to make sure they are active once the mouse enters the movie clip, I know this because the roll over states are active on the buttons. Is it something to do with specifying the depth i’e root etc?

However, even if i just create a button in a new project and apply this code it still doesnt work…is the code wrong or is there something wrong with my browser and javascript…
It does open a window, but its not centered and doesnt have any of the specified attributes and in the address bar it reads…

javascript:var%20myWin;%20if(!myWin%20||%20myWin.closed){myWin%20=%20window.open(‘http://www.kirupa.com/modular/pop-up.htm’,‘kirupa’,‘width=400,height=300,toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=0,top=’+((screen.height/2)-(150))+’,left=’+((screen.width/2)-(200))+’’)}else{myWin.focus();};void(0);

Please help…urgent!!!

THanks.