Page is a not externally linkable
DrDoc - 6:31 am on Jul 18, 2002 (gmt 0)
Let the page with the form open the window the way it does now. But, let the page returned after processing the script close the window. Your problem is that the object is not yet created when the script attempts to close it. :)
Do this instead: