Pop up windows

am trying to create a gallery page of 12 thumbnail photos and when you click on one of the photos it will open a pop up window to display it at a larger size.

Now i got one of them to work but cant get the others. Ne ideas ne one?

e.g

Photo 1 Button (action script)

On (realease) {
get URL(“Javascript:popupwindow( );”, “_self”);
}

When that is published, in the html i have got:-

<HTML>
<HEAD>
<script LANGUAGE=“JavaScript”>
function popupwindow(){
window.open(“Photo1.swf”,"",“height=208,width=320,menubar=0,resizable=0,scrollbars=0,status=0,titlebar=0,toolbar=0,left=0,top=0”)
}
</script>
<meta http-equiv=Content-Type content=“text/html; charset=ISO-8859-1”>
<TITLE>Gallery</TITLE>
</HEAD>

Now that works for 1 button but wot about the others? Wot else do i need to add in.

Ne1 :*(