Problems with Kirupa centered popup tutorial

Hi,

I have a problem with the popups at my portfolio site http://typofonic.dev.deskol.dk. I have a viewer window that can popup for each project by clicking the “Open Picture Browser Window” buttons on the right side and on my project pages. When I click the first project the window opens fine, but when I click on a second project the popup window doesn’t update with the correct content for the new project.

On each button I have the following actionscript:
on (release) {
address = “popups/project_1.htm”;
width = 555;
height = 414;
_root.openPopUp(address, winName, width, height, toolbar, location, directories, status, menubar, scrollbars, resizable);
}

and in the first frame of the _root timeline I have the following script:
*winName = “popUp”;
toolbar = 0;
location = 0;
directories = 0;
status = 0;
menubar = 0;
scrollbars = 0;
resizable = 1;

msg=window.open("",“msg”,“height=200,width=200,left=80,top=80”)
function openPopUp(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=’+10+’,left=’+0+’"+"’)}else{myWin.focus();};void(0);");
}

Does anybody know what’s wrong with my scripts?

Best regards

Anders

B.t.w.: As a new user to this forum I couldn’t find the “Post New Thread” button. It seems that the button doesn’t appear in Safari, so I need to use FireFox for this forum. Is anybody else experiencing this problem?
*