Popup window problem!

Hi,

I read the tutorial (http://www.kirupa.com/developer/mx/centered_popup.htm) for popup window from this site and used the actionscript as it is.

But I get the following problem:

When I click on the Go button the new window opens but the window size is full and it shows, menubar, taskbar, addressbar etc. just like any explorer page. In the left hand side corner I got an error sign…some javascript error. Also note that in the address bar and the heading of the page it shows the following script
“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);”

When I click on the refresh button then second window opens…which actually i want on the first click. I mean this is the window which we specified when we click on the go button.

please tell me where I am wrong.

thanks in advance.