I use this to open new windows. Put it in your <head> tags. You can control where the window appears in the browser and how big it is by changing the attributes.
<SCRIPT LANGUAGE="JavaScript">
<!--
function launch(url) {
self.name = "opener";
remote = open(url, "remote", "scrollbars,width=400,height=450,left=80,top=80" );
}
// -->
</SCRIPT>
Next put this wherever you want to link to launch the page.
<a href="javascript:launch('http://www.newpage.com')">newpage</a>
Then put in some html to make a button in the new window to close the window. Your users will not be asked if they are sure after hitting the close window button.
<FORM><INPUT TYPE="button" VALUE="close window"
ONCLICK="window.close('/newpage.htm', 'close window', 'toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,copyhistory=yes,width=400,height=450')">
</FORM>