Just thought I'd alert everyone to the discovery that you can get a window to close itself (this is supposed to be forbidden by the JavaScript security model). This was discovered only the other day on the ASPClient discussion list, and Peter Brunone has written a small article summarising the findings here:

Obviously, it's not to be overused, but it might come in handy!!!