function openWindow(filename, name, scroll, width, height, left, top) { windowops = eval("'toolbar=yes,location=yes,directories=no,status=yes,menubar=yes,scrollbars=" + scroll + ",resizable=yes,copyhistory=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + "'"); var newWindow = window.open(filename, name, windowops); newWindow.focus(); newWindow = ''; return; } function openPopUp(filename, name, scroll, width, height, left, top) { // DISABLED THE MODALDIALOG STUFF SINCE THOSE THINGS DONT SUPPORT WINDOW.OPENER if(false)//navigator.appName == "Microsoft Internet Explorer") { height = Number(height) + 25; width = Number(width) + 25; var windowOps = 'dialogHeight:'+height+'px; dialogWidth:'+width+'px; edge:raised; unadorned:yes; status:no;'; if(scroll) windowOps += 'scroll:'+scroll+';'; window.showModalDialog( filename, '', windowOps); } else { if (parseInt(navigator.appVersion) >= 3) { if (navigator.appName == "Netscape" && parseInt(navigator.appVersion)<4) { var tools = new Packages.java.awt.Toolkit.getDefaultToolkit(); screen=tools.getScreenSize(); } var x = screen.width; var y = screen.height; } top = parseInt(y/2-height/2-16); left = parseInt(x/2-width/2-5); windowops = eval("'toolbar=no,location=no,directories=no,status=no,title=no,menubar=no,scrollbars=" + scroll + ",resizable=yes,copyhistory=yes,width=" + width + ",height=" + height + ",left=" + left + ",top=" + top + "'"); newWindow = window.open(filename, name, windowops); newWindow.focus(); newWindow = ''; } return; }