Description:
To get a popup window to close it is common to add a button that will allow
the user to "Close Window".
Directions:
Below you will find the code required to create a "Close Window Button".
You can change the text of the button by editing the "Close Window" to say
whatever you would like. Use the 'Grab Text' buttons to select the code
within the adjacent textarea. Then use Control-C or Edit -> Copy to buffer
the text for pasting into your document.