/* Copyright 2002, Prelude Systems, Inc. All Rights Reserved. www.prelude.com Duplication, Retransmission or Reproduction in part or whole is forbidden without Written Consent of Prelude Systems Inc. */ //var changeflag = false; function CursorDefault() { this.window.status=""; if (navigator.appName == "Microsoft Internet Explorer") { if (parent.SPEEDFRAME != null) { if (parent.SPEEDFRAME.document.body != null) { parent.SPEEDFRAME.document.body.style.cursor="default"; } } document.body.style.cursor="default"; } } function go(tarurl,loc,waitFlag) { if (waitFlag==1) { CursorWait(); } window.open(tarurl,loc); } /** Opens up a new browser window with the contents and options specified. @param tarurl A string specifying the URL to open in the new window @param waitFlag Yes/No flag specifying if you want the cursor to change to wait status, i.e an hourglass @param title The name of the new window that is to be opened @param width Width of the new window you want to open. Can be expressed in pixels or a percentage. The percentage will be based on the screen size or the current browser window size depending on how the option screenOption is set @param height Height of the new window you want to open. Can be expressed in pixels or a percentage. The percentage will be based on the screen size or the current browser window size depending on how the option screenOption is set. @param resizableFlag Whether or not we want to user to be able to resize the window @param scrollBarFlag If you want the new window to have scrollbars @param toolBarFlag If you want the new window to have the standard toolbar across the top @param locationFlag If yes, creates a location entry field @param directoriesFlag If yes, creates the standard browser directory buttons, such as What's New and What's Cool. @param statusFlag Creates the status bar on the bottom of the browser window @param menuBarFlag Creates the menu on top of the browser window @param copyHistoryFlag Not sure what the heck this flag does @param screenOption If this is set to 1, then the size of the window will be based on the screen resolution size. If screenOption is 0 then size is based on current size of browser window */ function goWindow(tarurl,waitFlag,title,width,height,resizableFlag,scrollBarFlag,toolBarFlag,locationFlag,directoriesFlag,statusFlag,menuBarFlag,copyHistoryFlag,screenOption) { if (waitFlag==1) { CursorWait(); } var optionString=""; var percentLoc = width.indexOf("%"); if (percentLoc > -1) { var widthPercent = (width.substring(0,percentLoc) / 100); var newWidth = 800; var left=0; var topPos=0; if (screenOption==1) { newWidth = screen.width*widthPercent; left = (screen.width) ? (screen.width-newWidth)/2 : 0; } else { if (document.layers) { newWidth=window.innerWidth*widthPercent; left=(window.innerWidth) ? ((window.innerWidth-newWidth)/2)+window.screenX : 0; } else if (document.all) { newWidth = document.body.clientWidth*widthPercent; left=(document.body.clientWidth) ? (document.body.clientWidth-newWidth)/2 : 0; } } optionString="width="+Math.round(newWidth)+",left="+Math.round(left); } else { if (width>0) { optionString="width="+width; } else { optionString="width=800"; } } var percentLoc = height.indexOf("%"); if (percentLoc > -1) { var heightPercent = (height.substring(0,percentLoc) / 100); var newHeight = 400; var topPos=0; if (screenOption==1) { newHeight = screen.height*heightPercent; topPos = (screen.height) ? (screen.height-newHeight)/2 : 0; } else { if (document.layers) { newHeight=window.outerHeight*heightPercent; topPos = (window.outerHeight) ? ((window.outerHeight-newHeight)/2)+window.screenY : 0; } else if (document.all) { newHeight = (document.body.clientHeight*1.25)*heightPercent; topPos = (document.body.clientHeight) ? ((document.body.clientHeight*1.25)-newHeight)/2 : 0; } } optionString=optionString+",height="+Math.round(newHeight)+",top="+Math.round(topPos); } else { if (height>0) { optionString=optionString+",height="+height; } else { optionString=optionString+",height=400"; } } if (resizableFlag==1) { optionString=optionString+",resizable=yes"; } else { optionString=optionString+",resizable=no"; } if (scrollBarFlag==1) { optionString=optionString+",scrollbars=yes"; } else { optionString=optionString+",scrollbars=no"; } if (toolBarFlag==1) { optionString=optionString+",toolbar=yes"; } else { optionString=optionString+",toolbar=no"; } if (locationFlag==1) { optionString=optionString+",location=yes"; } else { optionString=optionString+",location=no"; } if (directoriesFlag==1) { optionString=optionString+",directories=yes"; } else { optionString=optionString+",directories=no"; } if (statusFlag==1) { optionString=optionString+",status=yes"; } else { optionString=optionString+",status=no"; } if (menuBarFlag==1) { optionString=optionString+",menubar=yes"; } else { optionString=optionString+",menubar=no"; } if (copyHistoryFlag==1) { optionString=optionString+",copyhistory=yes"; } else { optionString=optionString+",copyhistory=no"; } window.open(tarurl,title,optionString) }