/* FILE ARCHIVED ON 7:50:36 Feb 15, 2013 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 7:13:39 Sep 10, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ var popup; function openWin(url, width, height, isresizable, showmenu, showtoolbar, showscrollbar, name) { //Finding the type of Browser which user is using. var browserName = navigator.appName; if (name) name = name.split(' ').join('_'); if(browserName.indexOf('Microsoft') != -1) { name = ''; } if (!width) width = 700; if (!height) height = 500; fromleft = Math.floor((screen.width / 2) - (width / 2)); fromtop = Math.floor((screen.height / 2) - (height / 2)); specs = 'width=' + width + ',height=' + height + ',left=' + fromleft + ',top=' + fromtop; specs += ',resizable=yes'; if (showmenu) specs += ',menubar=' + showmenu; if (showtoolbar) specs += ',toolbar=' + showtoolbar; if (showscrollbar){ specs += ',scrollbars=' +showscrollbar; } else { specs += ',scrollbars=yes'; } if (!popup || popup.closed) { if (!name) { popup = window.open(url, '', specs); } else { popup = window.open(url, name, specs); } popup.focus(); } else { popup.close(); if (!name) { popup = window.open(url, '', specs); } else { popup = window.open(url, name, specs); } popup.focus(); } } function openModalWin(uri, width, height, callbackFunction, callbackFunction2) { if (!width) width = 700; if (!height) height = 500; fromleft = Math.floor((screen.width / 2) - (width / 2)); fromtop = Math.floor((screen.height / 2) - (height / 2)); specs = 'dialogWidth:' + width + 'px;dialogHeight:' + height + 'px;dialogLeft:' + fromleft + ';dialogTop:' + fromtop; specs += ';resizable:yes'; retVal = window.showModalDialog(uri + "&layoutWithoutMenu=Y", "modal", specs); if(retVal && retVal != 'Cancel') { if(retVal == 0) { if(callbackFunction) { callbackFunction.apply(); } } else { if(callbackFunction2) { var o; callbackFunction2.apply(o, [retVal]); } } } } function loadOpener(aform, url) { aform.submit(); opener.focus(); window.close(); } function getWindowWidth() { var windowWidth = 0; if( typeof( window.innerWidth ) == 'number' ) { // Non-IE windowWidth = window.innerWidth; } else if( document.documentElement && document.documentElement.clientWidth ) { // IE6+ in 'standards compliance mode' windowWidth = document.documentElement.clientWidth; } else if( document.body && document.body.clientWidth ) { // IE4 compatible windowWidth = document.body.clientWidth; } // Adjust for scrollbars (Mozilla only) if( navigator.appName == 'Netscape' ) windowWidth -= 17; return windowWidth; } function getWindowHeight() { var windowHeight = 0; if( typeof( window.innerHeight ) == 'number' ) { // Non-IE windowHeight = window.innerHeight; } else if( document.documentElement && document.documentElement.clientHeight ) { // IE6+ in 'standards compliance mode' windowHeight = document.documentElement.clientHeight; } else if( document.body && document.body.clientHeight ) { // IE4 compatible windowHeight = document.body.clientHeight; } return windowHeight; }