script: auto-centering popup window
link: http://www.dynamicdrive.com/dynamici...autocenter.htm

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
J