the script to close a window is really really easy:
either
you just put "javascript
:window.close();" or "javascript
:self.close();" in "href" attribute or in an "onClick" attribute to your link code.
eg
Code:
<a href="javascript:window.close();">close</a>
or
<a href=# onClick="javascript:window.close();">close</a>
on my machine in internet explorer both of these pop up a window saying "the page you are viewing is trying to close the window. yes/no"
edit: for some reasaon vB is changing the code. there are no underscores ( _ ) in this code, just remove them.