Dynamic gallery to use centered pop up window

Hi everybody,

I’m using the gallery kirupa made and it works really fine, added a “view” button which works as a “go to this URL”
what I want is to open a centered pop up window, all the tuts I have found use java, problem is I don’t know how to pass the [p] value to that java script:

[AS]
makeLink = function () {
getURL(launch[p], “_blank”); // this is the one that I’m using right now
getURL(“javascript:Launch(‘http://www.kirupa.com/sotw/archive.htm’, 400, 300)”); // want to combine these two lines into a working one
};
[/AS]

Does anybody know how can this be done, please?

thanks in advanced.
:slight_smile: