The following Javascript source creates the close button below:
<FORM name="XForm"> <input type="button" value="close" onClick="self.close()"> </FORM>