// ************************************************************** // JavaScript function to open a pop-up window function OpenWithCrumbTrail( url, height, width ) { now = new Date(); (window.open( url, makeWindowName(url), 'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes')).focus(); } function addToUrl( url, paramName, paramValue ) { pos = url.indexOf('?'); if( pos >= 0 ) { return url + '&' + paramName + '=' + escape(paramValue); } else { return url + '?' + paramName + '=' + escape(paramValue); } } urlokchars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; function makeWindowName(url) { winName = '2447346'; i = 0; while (i < url.length) { if (urlokchars.indexOf(url.charAt(i)) >= 0) { winName = winName + url.charAt(i); } i++; } return winName; } function OpenWindow( url, height, width ) { (window.open( url, makeWindowName(url), 'width=' + width + ',height=' + height + ',resizable,scrollbars')).focus(); } function setLayerClassObj(blockObj, newClass) { if( document.getElementById ) { blockObj.className = newClass; } } function OpenWindowNoScroll(url, height, width) { (window.open( url, makeWindowName(url), 'width=' + width + ',height=' + height + ',resizable=no,scrollbars=no')).focus(); } function OpenWindowToolBar(url, height, width) { (window.open( url, makeWindowName(url), 'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,toolbar=yes,status=yes')).focus(); } function OpenWindowStatus( url, height, width ) { (window.open( url, makeWindowName(url), 'width=' + width + ',height=' + height + ',resizable,scrollbars,status,')).focus(); } function OpenWindowTool(url, height, width) { (window.open( url, makeWindowName(url), 'width=' + width + ',height=' + height + ',resizable,scrollbars,toolbar')).focus(); } function OpenWindowNamed(url, windowName, height, width) { (window.open( url, windowName, 'width=' + width + ',height=' + height + ',resizable,scrollbars,toolbar')).focus(); } function makeRemote() { remote = window.open( addToUrl(url, 'ispopup', 'true'), makeWindowName(url), 'width=' + width + ',height=' + height + ',resizable=yes,scrollbars=yes,toolbar=yes,status=yes'); if (remote.opener == null) remote.opener = window; remote.opener.name = "opener"; } function changeOpenerUrl(url) { window.opener.location.href=url; window.opener.focus(); }