<a href="javascript:window.close()">Close</a>
If you are using a frameset, then use this in any page in any frame in the frameset:
<a href="javascript:top.window.close()">Close</a>