home *** CD-ROM | disk | FTP | other *** search
- //============================================
- // get the title written
-
- var sPassedTitle = window.dialogArguments;
- var sTitle = " ";
-
- if (sPassedTitle != null){
- sTitle = sPassedTitle;
- }
-
- document.write("<Title>" + sTitle + "</Title>")
-
- //=============================================
- // Escape key handler
-
- document.attachEvent ("onkeydown", byeBye);
-
- function byeBye(){
- //test for escape key
- if(window.event.keyCode == 0x1b) self.close();
-
- }
-
- //============================================
- // resize the window if it's got a funky title bar
-
- window.attachEvent ("onload", adjustHeight);
-
- function adjustHeight(){
- var iOffset = document.body.clientHeight - 369;
- if (iOffset != 0) dialogHeight = (parseInt(dialogHeight) - iOffset) + "px";
- }
-
-