Open in new window with dynamic link

Hi, I’m trying to get my dynamic link to open in a new centered window. The window opens fine, but it tries to display the url “url[p]” and not its correct dynamic link.

Here’s my code:

on (release) {
getURL ("javascript:NewWindow=window.open(url[p],'newwin','650,400,yes,center'); NewWindow.focus();");
}

Any ideas?