getURL (variable, _blank) - How To?

I got the following variable:

gArray[cur]
trace (gArray[cur])  

returnes the path for the current Picture
ex: “…/picture/mycurrentpicture.jpg”

I have a button saying this:

mybutton.onPress = function() {
      getURL ('javascript:Open(gArray[cur])');
}

And it doesn’t work!
(javascript:Open defines a popUp window)
Why? Can anyone give me a hand please?

Marc06