If you have JavaScript open a new window, it's a piece of cake to close it after a certain number of seconds of being open. Just enter in the time in milliseconds (i.e. 5000 = 5 secs) and it your window will close after the appropriate number of seconds.
This window will prompt you if you wish to
close it in 5 seconds.