// Copyright (c) 2000, by Broadiant Corporation. All rights reserved //////////////////////////////////////////////////////////////////////////////////////////////////////////// // // Script Name: windowUtils.jsf // Author: Alex Zesch // Description: Collection of routines to open and display window on the client side // Creation Date: 10-30-2000 // Revision History: // Date Revised By Description // //////////////////////////////////////////////////////////////////////////////////////////////////////////// //////////////////////////////////// // // Function: openAuxWindow() // // Description: Opens an auxillary window on the client side named // AUX_WINDOW and sets the keyboard input focus to that // window. // // Arguments: url - string - required - the url to open // width - int - required - the width of the window // height - int - required - the height of the window // // Returns: return true if window was opened and false if not. // // Preconditions: N/A // function openAuxWindow(url, width, height) { var win = window.open (url, 'AUX_WINDOW', 'width=' + width + ',height=' + height + ',toolbar=yes,location=yes,directories=no,' + 'status=yes,menubar=yes,resizable=yes,scrollbars=yes'); if( typeof( win ) != "undefined" ) if ( win ) win.focus(); return win != null; } //////////////////////////////////// // // Function: openAnatomyWindow() // // Description: Opens an auxillary window on the client side named // IDIC_ANATOMY and sets the keyboard input focus to that // window. // // Arguments: url - string - required - the url to open // width - int - required - the width of the window // height - int - required - the height of the window // // Returns: return true if window was opened and false if not. // // Preconditions: N/A // function openAnatomyWindow(url, width, height) { var win = window.open (url, 'IDIC_ANATOMY', 'width=' + width + ',height=' + height + ',toolbar=no,location=no,directories=no,' + 'status=no,menubar=no,resizable=no,scrollbars=yes'); if( typeof( win ) != "undefined" ) if ( win ) win.focus(); return win != null; } //////////////////////////////////// // // Function: openTourWindow() // // Description: Opens an auxillary window on the client side named // TOUR and sets the keyboard input focus to that // window. // // Arguements: url - String - Required - The url of the site tour file // // Returns: return true if window was opened and false if not. // // Preconditions: N/A // function openTourWindow(url) { var win = window.open (url, 'TOUR', 'width=640,height=480,' + 'toolbar=no,location=no,directories=no,' + 'status=no,menubar=no,resizable=no,scrollbars=no'); if ( win ) win.focus(); return win != null; }