Custom new window

I’m using the Kirupa tutorial script on how to create a customized, centered window. It works for the first button i click on my site, but then, when i try to click another button to popup a window it doesn’t work.

Here’s the actionscript for each button:
on (release) {
address = “Popup.asp”;
target_winName = “Popup”;
width = 405;
height = 340;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 0;
openWinCenter(address, target_winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

Here’s the other actionscript not on the button:
Movieclip.prototype.openWinCenter = function (url, winName, w, h, toolbar, location, directories, status, menubar, scrollbars, resizable) {
getURL (“javascript:var myWin; if(!myWin || myWin.closed){myWin = window.open(’” + url + “’,’” + winName + “’,’” + “width=” + w + “,height=” + h + “,toolbar=” + toolbar + “,location=” + location + “,directories=” + directories + “,status=” + status + “,menubar=” + menubar + “,scrollbars=” + scrollbars + “,resizable=” + resizable + “,top=’+((screen.height/2)-(” + h/2 + “))+’,left=’+((screen.width/2)-(” + w/2 + “))+’” + “’)}else{myWin.focus();};void(0);”);
}