is submit the form. if the form data was successfully processed, use
then close the child window. if it failed, just redisplay the form in
the child window.
I'll leave the implementation up to you.