function get( aID ){	if ( document.getElementById ){		if ( !( eval( 'document.getElementById(\'' + aID + '\')' ) ) ) {			return;		}		else {			return( eval( 'document.getElementById(\'' + aID + '\')' ) );		}	}	else if( document.all ) {			return( eval( 'document.all.' + aID ) );	}}/* Strip whitespace from the beginning and end of a string  */String.prototype.trim = function(){    return this.replace(/^\s*|\s*$/g, "");};function replaceSubstring( inputString, badString, goodString, caseSensitive ) {  fixedReplace = "";  UI = inputString;  UB = badString;  if ((caseSensitive != 1) && (caseSensitive != true)) {     UI = inputString.toUpperCase();     UB = badString.toUpperCase();   }  badEnd = -1;  badLoc = UI.indexOf(UB);  if (badLoc != -1) {     for (x=1; (badLoc != -1); x++) {        fixedReplace = fixedReplace +                        inputString.substring((badEnd +                       1), badLoc) + goodString;        badEnd = badLoc + UB.length - 1;        badLoc = UI.indexOf(UB, (badLoc + 1));     }     fixedReplace = fixedReplace +                     inputString.substring((badEnd + 1),                    inputString.length);  }  else {      fixedReplace = inputString;  }  return fixedReplace;}function updateDisplay( aDisplayID, aDisplayHTML, aTarget ) {	var displayElement = get( aDisplayID );	if ( !displayElement ) {		return false;	}	else {		if ( aTarget && aTarget.length ) {			aDisplayHTML = replaceSubstring( aDisplayHTML, 'target="_self"', 'target="' + aTarget + '"', false ); 			aDisplayHTML = replaceSubstring( aDisplayHTML, 'target=_self', 'target=' + aTarget, false ); 			aDisplayHTML = replaceSubstring( aDisplayHTML, '&amp;BaseTarget=' + aTarget + '#', '&amp;ContentOnly=1&amp;UpdateParent=1&amp;DisplayID=' + aDisplayID + '&amp;BaseTarget=' + aTarget + '#', false );		}		displayElement.innerHTML = aDisplayHTML;	}	displayElement = null;	return true;}function openDialog( urlToOpen, xWidth, yHeight, windowName, hideScrollbars, callbackFunction ) {	if ( !( urlToOpen > "" ) ) return false;	if ( !( windowName > "" ) ) windowName = "CenteredDialog";	if ( !( xWidth > "" ) ) xWidth = 480;	if ( !( yHeight > "" ) ) yHeight = 240;	var scrollbars = hideScrollbars ? "no" : "yes";    if ( screen && screen.width && screen.height ) {      var xMax = screen.width, yMax = screen.height;    }    else if (document.layers) {            var xMax = window.outerWidth, yMax = window.outerHeight;    }    else {            var xMax = 640, yMax = 480;     }          var xOffset = ( xMax - xWidth ) / 2, yOffset = ( yMax - yHeight ) / 2;	var windowVar;	windowVar = window.open( "about:blank", windowName, "scrollbars="+scrollbars+",width="+xWidth+",height="+yHeight+",screenX="+xOffset+",screenY="+yOffset+",top="+yOffset+",left="+xOffset+",location=true,menubar=false,status=false,toolbar=false", true );		if ( windowVar == null ) {		alert( "This site requires your browser to allow popups \n\nEnable popups for this site in your browser, and try again" );	}	else {		windowVar.location.replace( urlToOpen );	     if ( !( callbackFunction > "" ) ) {             // no callback function          }          else {		  windowVar.callbackFunction = callbackFunction;		} 		windowVar.focus();	}		return windowVar;}function setCookie (name, value, expires, path, domain, secure, noEscape) {      document.cookie = ((noEscape) ? name + "=" + value : name + "=" + escape(value) ) +        ((expires) ? "; expires=" + expires : "") +        ((path) ? "; path=" + path : "") +        ((domain) ? "; domain=" + domain : "") +        ((secure) ? "; secure" : "");}function getCookie(name, noEscape) {   var dc = document.cookie;   var prefix = name + "=";   var begin = dc.indexOf("; " + prefix);   if (begin == -1) {     begin = dc.indexOf(prefix);     if (begin != 0) return null;   } else {begin += 2;}   var end = document.cookie.indexOf(";", begin);   if (end == -1) {end = dc.length;}   return (noEscape) ? dc.substring(begin + prefix.length, end) : unescape(dc.substring(begin + prefix.length, end));}function clickbutton( button_id ) {  var navButton = get( button_id );  if ( navButton ) {    navButton.click();  }  else {     var oIframe = Ext.get('center-iframe');     navButton = oIframe.dom.contentWindow.get( button_id );     if ( navButton ) {       navButton.click();     }     oIframe = null;  }  navButton = null;}function cancelBubble( e ) {  if ( typeof e == "object" ) typeof( e.stopPropogation ) == "function" ? e.stopPropogation() : e.cancelBubble = true;  else if ( typeof window.Event == "object" ) window.Event.cancelBubble = true;}function rightBack (strSource, strSearch) {sourceStringBack = "";searchStringBack = "";result = "";turn = "";pos = -1;for (i = strSource.length; i>-1; i--) {sourceStringBack=sourceStringBack + strSource.charAt(i)} //end forfor (i = strSearch.length; i>-1; i--) {searchStringBack=searchStringBack + strSearch.charAt(i)} //end forpos = sourceStringBack.indexOf(searchStringBack);result = sourceStringBack.substring(0,pos)for (i = result.length; i>-1; i--) {turn=turn + result.charAt(i)}return turn}
