I tried using the onSubmit event to call window close.
w.document.write("<FORM METHOD='POST' ACTION='cgi6.exe' onSubmit='w.close();return true'>")
But this doesn't work. The out put from cgi6 gets written to the main browser window.
Is this possible?