script: auto-centering popup window

Is there a way to use this script to bring up the popup window from a submit button? I am trying to set up the link where a submit button is clicked and the link opens in a popup sized window. Any help would be greatly appreciated.
Thanks in advance