var _pprBackRestoreInlineScripts=!1,_pprBlocking=!1,_blockOnEverySubmit=!1,_pprFirstClickPass=!1,_pprdivElementName="tr_pprBlockingDiv",_pprLibStore,_pprBlockStartTime=0,_pprBlockingTimeout=null,_pprEventElement=null,_pprSavedCursorFlag=!1,_pprChoiceChanged=!1,_agent={},_lastDateSubmitted,_lastDateReset=0,_lastDateValidated=0,_lastValidationFailure=0,_delayedEventParams={},_initialFocusID=null,_TrFocusRequestDoc=null,_TrFocusRequestID=null,_TrFocusRequestNext=!1,_TrEventBasedValidation=!1,_blockCheckUnloadFromDialog=
!1,_saveForm=null,_saveDoValidate=null,_saveParameters=null,_submitRejected=!1,_inPartialSubmit=!1,_pendingRadioButton=!1,_IE_MOUSE_CAPTURE_EVENTS="onclick,ondblclick,onmousedown,onmousemove,onmouseout,onmouseover,onmouseup".split(","),_GECKO_MOUSE_CAPTURE_EVENTS="click,mousedown,mouseup,mouseover,mousemove,mouseout,contextmenu".split(",");function _atLeast(a,b){return(!a||a==_agent.kind)&&(!b||b<=_agent.version)}function _atMost(a,b){return a==_agent.kind&&b>=_agent.version}
function _supportsDOM(){var a=!1;_agent.isIE?a=5.5<=_agent.version:_agent.isNav?a=!1:_agent.isGecko||_agent.isSafari||_agent.isOpera?a=!0:_agent.isBlackBerry&&(a=4.6<=_agent.version);return a}
function _agentInit(){var a=navigator.userAgent.toLowerCase(),b=parseFloat(navigator.appVersion),d=!1,e=!1,g=!1,h=!1,k=!1,m=!1,n=!1,o=!1,q=!1,s=!1,t=!1,u=!1,v="unknown",w=!1,x=!1,y=!0,z=!0,A=!0,F=!0;-1!=a.indexOf("msie")?(b=a.match(/msie (.*);/),b=parseFloat(b[1]),w=!0,-1!=a.indexOf("windows ce")?(F=z=A=!1,-1!=a.indexOf("ppc")&&4<=b?(x=n=!0,v="pie"):(t=!0,v="iemobile",y=!1)):(g=!0,v="ie")):-1!=a.indexOf("opera")?(m=!0,v="opera"):-1!=a.indexOf("applewebkit")||-1!=a.indexOf("safari")?(o=!0,v="safari"):
-1!=a.indexOf("gecko/")?(e=!0,v="gecko",b=1):-1!=a.indexOf("blackberry")?(d=!0,v="blackberry",y=!1):-1!=a.indexOf("mozilla")&&-1==a.indexOf("spoofer")&&-1==a.indexOf("compatible")&&(5<=b?(e=!0,v="gecko",b=1):(k=!0,v="nn"));if(-1!=a.indexOf("win"))s=!0;else if(-1!=a.indexOf("mac"))h=!0;else if(-1!=a.indexOf("sunos"))q=!0;else if(-1!=a.indexOf("symbian")||-1!=a.indexOf("nokia"))x=u=!0;_agent.isBlackBerry=d;_agent.isGecko=e;_agent.isIE=g;_agent.isIEGroup=w;_agent.isMac=h;_agent.isNav=k;_agent.isNokiaPhone=
u;_agent.isOpera=m;_agent.isPIE=n;_agent.isSafari=o;_agent.isSolaris=q;_agent.isWindows=s;_agent.isWindowsMobile6=t;_agent.kind=v;_agent.pprUnsupported=x;_agent.useJsfAjax=y;_agent.supportsDomDocument=z;_agent.supportsNodeType=A;_agent.supportsValidation=F;_agent.version=b;_agent.atLeast=_atLeast;_agent.atMost=_atMost}_agentInit();
var _ieFeatures={channelmode:1,copyhistory:1,directories:1,fullscreen:1,height:1,location:1,menubar:1,resizable:1,scrollbars:1,status:1,titlebar:1,toolbar:1,width:1},_nnFeatures={alwayslowered:1,alwaysraised:1,copyhistory:1,dependent:1,directories:1,height:1,hotkeys:1,innerheight:1,innerwidth:1,location:1,menubar:1,outerwidth:1,outerheight:1,resizable:1,scrollbars:1,status:1,titlebar:1,toolbar:1,width:1,"z-lock":1},_modelessFeatureOverrides={},_modalFeatureOverrides={},_featureDefaults={document:{channelmode:!1,
copyhistory:!0,dependent:!1,directories:!0,fullscreen:!1,hotkeys:!1,location:!0,menubar:!0,resizable:!0,scrollbars:!0,status:!0,toolbar:!0},dialog:{channelmode:!1,copyhistory:!1,dependent:!0,directories:!1,fullscreen:!1,hotkeys:!0,location:!1,menubar:!1,resizable:!0,scrollbars:!0,status:!0}},_signedFeatures={alwayslowered:1,alwaysraised:1,titlebar:1,"z-lock":1},_booleanFeatures={alwayslowered:1,alwaysraised:1,channelmode:1,copyhistory:1,dependent:1,directories:1,fullscreen:1,hotkeys:1,location:1,
menubar:1,resizable:1,scrollbars:1,status:1,titlebar:1,toolbar:1,"z-lock":1};function _addEvent(a,b,d){return a.addEventListener?(a.addEventListener(b,d,!1),!0):a.attachEvent?a.attachEvent("on"+b,d):!1}function _removeEvent(a,b,d){return a.removeEventListener?(a.removeEventListener(b,d,!1),!0):a.detachEvent?a.detachEvent("on"+b,d):!1}function _getBodyWidth(a,b,d){a=_getContentWidth(a,b,0);b=10;if(_isLTR()||5>=d)b=2*d;return a+b}
function _getContentWidth(a,b,d){for(var a=a.childNodes,e=_agent.isIE,g=e?"canHaveHTML":"tagName",h=0,k=0;k<a.length;k++){var m=a[k];if(m[g]&&0<m.offsetWidth){var n=0,o=m.offsetWidth;e?(n=m.clientWidth,0==n&&(n=m.offsetLeft,m.parentElement!=m.offsetParent&&(n-=m.parentElement.offsetLeft),n=_getContentWidth(m,o,n))):o==b||1>=o?(n=m.offsetLeft,m.parentNode!=m.offsetParent&&(n-=m.parentNode.offsetLeft),n=_getContentWidth(m,o,n)):n=o;n>h&&(h=n)}}0==h&&(h=b);return h+d}
function _getParentWindow(a){a=a.parent;try{return a.name,a}catch(b){}}function _getTop(a){for(var b=_getParentWindow(a);b&&b!=a;)a=b,b=_getParentWindow(a);return a}window.t=function(a,b){_tURL&&(document.write('<img src="'+_tURL+'"'),a&&document.write(' width="'+a+'"'),b&&document.write(' height="'+b+'"'),_axm&&document.write(' alt=""'),document.write(">"))};function _getDependents(a,b){var d;a&&(d=a._dependents,!d&&b&&(d={},a._dependents=d));return d}
function _getDependent(a,b){var d=_getDependents(a),e;d&&(e=d[b]);return e}function _setDependent(a,b,d){(a=_getDependents(a,!0))&&(a[b]=d)}function _getModalDependent(a){return _getDependent(a,"modalWindow")}function _isModalDependent(a,b){return b==_getModalDependent(a)}function _unloadADFDialog(a){_blockCheckUnloadFromDialog=!1;_checkUnload(a);_blockCheckUnloadFromDialog=!0}
function _checkUnload(a){a=_getEventObj();if(_blockCheckUnloadFromDialog)_blockCheckUnloadFromDialog=!1;else if(!_isModalAbandoned()){var b=_getModalDependent(window);null!=b&&(_setModalAbandoned(b),b.close());if(b=_getTop(self)){var d=b.opener;if(d){var e=_getDependent(d,self.name);if(_isModalDependent(d,self)&&(_setDependent(d,"modalWindow",void 0),d.onfocus=null,_agent.supportsDomDocument)){var g=d.document.body;_agent.atLeast("ie",4)&&(_agent.atLeast("ie",5)&&_agent.isWindows&&(g.onlosecapture=
null,_removeModalCaptureIE(g)),g.style.filter=null);_agent.isGecko&&void 0!=g&&_removeModalCaptureGecko(d,g)}void 0!=e&&(_setDependent(d,self.name,void 0),void 0==a&&(a=self.event),e(b,a))}}}}function _addModalCaptureIE(a){for(var b={},d=_IE_MOUSE_CAPTURE_EVENTS,e=d.length,g=0;g<e;g++){var h=d[g];b[h]=a[h];a[h]=_captureEventIE}window._modalSavedListeners=b;window._trIeCapture=a;window._trIeCaptureCurrent=!0;a.setCapture()}
function _removeModalCaptureIE(a){a.releaseCapture();var b=window._modalSavedListeners;if(b){for(var d=_IE_MOUSE_CAPTURE_EVENTS,e=d.length,g=0;g<e;g++){var h=d[g];a[h]=b[h]}window._modalSavedListeners=null}window._trIeCapture=void 0}
function _captureEventIE(){var a=window.event;a.screenY>=window.screenTop&&a.screenX>=window.screenLeft?(!window._trIeCaptureCurrent&&window._trIeCapture&&(window._trIeCaptureCurrent=!0,window._trIeCapture.setCapture()),a.cancelBubble=!0):window._trIeCapture&&(window._trIeCaptureCurrent=!1,window._trIeCapture.releaseCapture())}function _addModalCaptureGecko(a){for(var b=_GECKO_MOUSE_CAPTURE_EVENTS,d=b.length,e=0;e<d;e++)a.addEventListener(b[e],_captureEventGecko,!0)}
function _removeModalCaptureGecko(a,b){for(var d=_GECKO_MOUSE_CAPTURE_EVENTS,e=d.length,g=0;g<e;g++)b.removeEventListener(d[g],a._captureEventGecko,!0)}function _captureEventGecko(a){a.stopPropagation();window.preventDefault=!0}function _isModalAbandoned(){return _getTop(self)._abandoned}function _setModalAbandoned(a){a._abandoned=!0}function _getKeyValueString(a,b,d){a=a[b];"function"==typeof a&&(a="[function]");return b+":"+a+(_agent.isGecko?0==(d+1)%3?"\n":"    ":"\t")}
function _dumpSuppress(a){_dump(a,{innerText:1,outerText:1,outerHTML:1,innerHTML:1})}
function _dump(a,b,d){var e="";if(a){d||(d=a.name);var g="return _getKeyValueString(target, key, index);";if(_agent.atLeast("ie",5)||_agent.isGecko||_agent.isSafari)g="try{"+g+"}catch(e){return '';}";var g=new Function("target","key","index",g),h=0,k=[],m;for(m in a)if((!b||!b[m])&&!m.match(/DOM/))k[h]=m,h++;k.sort();for(b=0;b<k.length;b++)e+=g(a,k[b],b)}else d="(Undefined)";""==e&&(e="No properties");alert(d+":\n"+e)}function _getJavascriptId(a){return a.split(":").join("_")}
function _getFormName(a){var b=a.name;"string"!=typeof b&&(b=_agent.isIE?a.attributes.name.nodeValue:a.getAttribute("name"));return b}function _validateForm(a,b){if(!_agent.supportsValidation)return!0;var d="_"+_getJavascriptId(_getFormName(a))+"Validator";if(d=window[d]){try{ret=d(a,b)}catch(e){ret=_agent.isPIE||_agent.isNokiaPhone||_agent.isBlackBerry?!0:!1}return ret}return!1}
function _valField(a,b){if(b){var d=document.forms[a][b].onblur;if(d){var d=d.toString(),d=d.substring(d.indexOf("{")+1,d.lastIndexOf("}")),d=d.replace(/this/,"document.forms['"+a+"']['"+b+"']"),e=d.lastIndexOf(","),d=d.substring(0,e)+")";eval(d)}}}
function _validateAlert(a,b,d,e,g){d||(d=_getValidators(a));var b=_multiValidate(a,b,d),h=!0,g=g+"\n",k;for(k in d){var m=b[k];if(m&&0!=m.length){var n=_getFormElement(a,k);if(n)for(var o=d[k].label,q=0;q<m.length;q+=2){h&&(_setFocus(n),h=!1);var s=m[q];errorString=_agent.isNokiaPhone?_getGlobalErrorString(n,e,s,o):_getGlobalErrorString(n,e,s.getDetail(),o);g+=errorString+"\n"}}}if(h)return!0;_recordValidation(!0,0);alert(g);_recordValidation(!0,0);return!1}
function _validateInline(a,b,d){d||(d=_getValidators(a));var b=_multiValidate(a,b,d),e=!0,g;for(g in d){var h=_getElementById(document,g+"::icon"),k=_getElementById(document,g+"::msg");k&&""!=k.innerHTML&&(k.innerHTML="");TrMessageBox.removeMessages(g);var m=b[g];if(!m||0==m.length)k&&(k.style.display="none"),h&&(h.style.display="none");else{var n=_getFormElement(a,g);if(n){for(var o=d[g].label,q=0;q<m.length;q+=2){e&&(e=!1,_setFocus(n));var s=m[q];k&&(k.innerHTML=_agent.isNokiaPhone?s:s.getDetail());
!k&&!TrMessageBox.isPresent()&&(_agent.isNokiaPhone?alert("Field Error ["+g+"] - "+s):alert("Field Error ["+g+"] - "+s.getDetail()));TrMessageBox.addMessage(g,o,s)}k&&(k.style.display="");h&&(h.style.display="")}}}return e}
function _validateInput(a,b){if(!a)return!0;var d=a.target||a.srcElement;if(!d||!d.id)return!0;var e=_getForm(d);if(!e)return!0;var g=_getValidators(e);if(!g)return!0;var h=d.id,k=g[h];!k&&d.name&&(h=d.name,k=g[h]);if(!k)return!0;d={};d[h]=k;e=_validateInline(e,null,d,1,null);if(b)return e}function _recordValidation(a,b){b||(b=new Date);_lastDateValidated=b;a&&(_lastValidationFailure=b)}
function _recentValidation(a){var b=!1,d=250;_agent.isMac&&(d=600);var e=new Date,g;g=e-_lastValidationFailure;0<=g&&g<d?b=!0:a||(g=e-_lastDateValidated,0<=g&&g<d&&(b=!0));return b}function _commandChoice(a,b){var d=document.forms[a].elements[b].value;void 0==d&&(d=document.forms[a].elements[b][0].value);if(0==d.indexOf("#"))window.document.location.href=d.substring(1,d.length);else{var e=d.indexOf("["),g=d.substring(0,e),d=d.substring(e+1,e+2),d=parseInt(d);submitForm(a,d,{source:g})}}
window.submitForm=function(a,b,d,e,g){var h=!0;if(_agent.isIEGroup){var h=!1,k;for(k in _delayedEventParams){h=!0;break}}h&&(_delayedEventParams={reset:!0});"string"==typeof a?a=document[a]:"number"==typeof a&&(a=document.forms[a]);if(!a)return!1;if(void 0==window["_"+_getJavascriptId(_getFormName(a))+"Validator"])return _saveFormForLaterSubmit(a,b,d),!1;h=new Date;if(_recentSubmit(h))_pprFirstClickPass&&_pprBlocking&&_saveFormForLaterSubmit(a,b,d);else{_inPartialSubmit=_submitRejected=!1;_lastDateSubmitted=
h;void 0==b&&(b=!0);h=!0;k=null!=d?d.source:"";b&&!_validateForm(a,k)&&(h=!1);k=window["_"+_getJavascriptId(_getFormName(a))+"_Submit"];"undefined"!=typeof k&&h&&(k=new Function("doValidate",k),_agent.isPIE?k=k(g):(a._tempFunc=k,k=a._tempFunc(b),a._tempFunc=void 0),b&&!1==k&&(h=!1));if(h)if(TrPage.getInstance()._resetHiddenValues(a),e&&_supportsPPR())if(_agent.isPIE||_agent.isWindowsMobile6){var m=Array(1);m["UA-pixels"]=a.elements.uapixels.value;TrPage.getInstance().sendPartialFormPost(a,d,m)}else TrPage.getInstance().sendPartialFormPost(a,
d,null,g);else{b=_supportsDOM();e={};if(d)for(m in d)g=d[m],void 0!=g&&(k=a.elements[m],_agent.isPIE?k.value=g:k&&"string"!=typeof k?"submit"==k.type||"button"==k.type?(g=document.createElement("input"),g.type="hidden",g.name=m,g.value=d[m],a.appendChild(g),e[m]=g):k.value=g:b&&(g=document.createElement("input"),g.type="hidden",g.name=m,g.value=d[m],a.appendChild(g),e[m]=g));_agent.isIE&&_autoCompleteForm(a);try{a.submit()}catch(n){if(TrPage.getInstance().getRequestQueue()._isMultipartForm(a))d=_createFacesMessage("org.apache.myfaces.trinidad.component.core.input.CoreInputFile.INPUT_FILE_ERROR"),
TrMessageBox.isPresent()?TrMessageBox.addMessage(null,null,d):alert(d.getDetail());else throw n;}_blockOnEverySubmit&&_pprStartBlocking(window);if(b)for(m in e)a.removeChild(e[m])}return h}};function _autoCompleteForm(a){var b=window.external;if(b&&"undefined"!=typeof b.AutoCompleteSaveForm)try{b.AutoCompleteSaveForm(a)}catch(d){}}
function _submitOnEnter(a,b,d,e,g){null!=window.event&&(a=window.event);var h;h=void 0==a.srcElement?a.target:a.srcElement;if(!h||"A"==h.tagName)return!0;return"INPUT"==h.tagName&&"submit"!=h.type&&"reset"!=h.type&&13==_getKC(a)?(null!=d&&(h={},h[d]=d,h.source=d,!0!=g?submitForm(b,e,h):TrPage._autoSubmit(b,d,a,e,h)),!1):!0}function _saveFormForLaterSubmit(a,b,d){_saveForm=a;_saveDoValidate=b;_saveParameters=d;_submitRejected=!0}
function _submitFormCheck(){_submitRejected&&(_inPartialSubmit?(_submitPartialChange(_saveForm,_saveDoValidate,_saveParameters),_inPartialSubmit=!1):submitForm(_saveForm,_saveDoValidate,_saveParameters),_saveParameters=_saveDoValidate=_saveForm=null)}window.resetForm=function(a){var b=!1;"string"==typeof a?a=document[a]:"number"==typeof a&&(a=document.forms[a]);if(!a)return!1;(b=TrPage.getInstance()._resetForm(a))?window.document.location.reload():a.reset();_lastDateReset=new Date;return b};
window.createNameValueString=function(a){var b="";try{for(var d=a.elements,a=0;a<d.length;a++){try{var e=d[a];if(e.name)if("text"==e.type||"password"==e.type||"textarea"==e.type||"hidden"==e.type)b+=e.name+"="+escape(e.value)+"&";else if(-1!=e.type.indexOf("select")){for(var g="",h=0;h<e.options.length;h++)!0==e.options[h].selected&&(g+=e.name+"="+escape(e.options[h].value)+"&");if(!g){var k=_getValue(e);k&&(g+=e.name+"="+escape(k)+"&")}g&&(b+=g)}else"checkbox"==e.type&&e.checked?b+=e.name+"="+escape(e.value)+
"&":"radio"==e.type&&!0==e.checked&&(b+=e.name+"="+escape(e.value)+"&")}catch(m){}e=null}}catch(n){}return b.substring(0,b.length-1)};
function _getValue(a){var b=a,d=a.type;if(!d&&a.length)for(var e=0;e<a.length;e++)if(d=a[e].type,void 0!=d){b=a[e];break}if("checkbox"==d)if(a.length)for(e=0;e<a.length;e++){if("checkbox"==a[e].type&&a[e].checked)return a[e].value}else return a.checked;else{if("select-multiple"==d){b=[];for(e=0;e<a.length;e++)a.options[e].selected&&(b[b.length]=a.options[e].value);return 0<b.length?b:""}if("select"==d.substring(0,6)){a=b;e=a.selectedIndex;if(void 0!=e&&null!=e&&0<=e){b=a.options[e];d=b.value;if(!d){for(e=
0;e<a.options.length;e++)if(a.options[e].value)return d;return b.text}return d}return""}if("radio"==d){if(a.length)for(e=0;e<a.length;e++){if("radio"==a[e].type&&a[e].checked)return a[e].value}else if(a.checked)return a.value;return""}return a.value}}function _setSelectIndexById(a,b){var d=_getElementById(document,a);null!=d&&(d.selectedIndex=b)}function _syncChoiceIndex(a){var b=a.form.elements[a.name];for(i=0;i<b.length;i++)b[i].selectedIndex=a.selectedIndex}
function _clearPassword(a,b){void 0!=window.event&&(b=window.event);if("******"!=a.value)return!0;if(8==b.keyCode||46<=b.keyCode&&112>b.keyCode)a.value="";return!0}function _setFocus(a){_isShowing(a)&&(a.focus&&a.focus(),"text"==a.type&&void 0!=a.value&&null!=a.value&&0<a.value.length&&!0!=_delayedEventParams.reset&&a.select())}
function _addValidators(a,b,d,e,g){var a=document.forms[a],h=_getValidators(a);h||(h={});for(var k=0;k<b.length;k+=5){var m=b[k],n={};if(b[k+1]){var o=b[k+2];n.required=!0;n.requiredFormat=g[o]}o=b[k+3];null!=o&&(n.converter=d[o]);if(o=b[k+4]){for(j=0;j<o.length;j++)o[j]=d[o[j]];n.validators=o}if(o=e[m])n.label=o;h[m]=n;_TrEventBasedValidation&&(m=_getElementById(document,m))&&_addEvent(m,"change",_validateInput)}window["_"+_getJavascriptId(_getFormName(a))+"_Validators"]=h}
function _multiValidate(a,b,d){var e={},g=window[_getFormName(a)+"_SF"],h=[],k=!1,m;if(void 0!=b){for(m in g)if(0==b.indexOf(m+":")){k=!0;break}for(m in g)0!=b.indexOf(m+":")&&(k||1==g[m])&&h.push(m+":")}if(d&&!_recentValidation(!0))for(var n in d)if(null!=_getElementById(document,n)){b=!1;for(m=0;m<h.length;m++)if(0==n.indexOf(h[m])){b=!0;break}if(!b){var o=_getFormElement(a,n);if(o){b=[];m=d[n];g=m.label;!o.type&&o.length&&(k=o[0].type,"radio"!=k&&"checkbox"!=k&&(o=o[0]));k=_getValue(o);if(m.required&&
(""==k||null==k))g=_getErrorString(o,g,m.requiredFormat),b[b.length]=new TrFacesMessage(g,g);else{var o=m.converter,q=!1;if(o&&null!=k&&!("string"==typeof k&&""==k)){var s=eval(o);try{k=s.getAsObject(k,g)}catch(t){q=!0,b[b.length]=_agent.isPIE||_agent.isNokiaPhone||_agent.isBlackBerry?t.message:t.getFacesMessage()}}if(!1==q&&(o=m.validators))for(m=0;m<o.length;m+=1)if(null!==k&&!("string"==typeof k&&""==k)&&(q=o[m])&&void 0!==k){q=eval(q);try{q.validate(k,g,s)}catch(u){b[b.length]=_agent.isPIE||_agent.isNokiaPhone||
_agent.isBlackBerry?u.message:u.getFacesMessage()}}}0<b.length&&(e[n]=b)}}}return e}function _getGlobalErrorString(a,b,d,e){_getForm(a);return b&&null!=e?_formatErrorString(b,{"0":e,1:d}):d}
function _isShowing(a){if("hidden"==a.type)return!1;if(_agent.isIEGroup){for(;void 0!=a;){b=a.currentStyle;if(void 0!=b&&("hidden"==b.visibility||"none"==b.display))return!1;a=a.parentNode}return!0}if(_agent.isGecko||_agent.isSafari||_agent.BlackBerry){!a.ownerDocument&&a.length&&(a=a[0]);var b=a.ownerDocument.defaultView.getComputedStyle(a,null);return"hidden"!=b.visibility&&"none"!=b.display}return!0}
function _getID(a){if(_agent.isPIE)return a.name;var b=a.id,d=a.type;!d&&a.length&&(d=a[0].type);"radio"==d&&(a.length?(a=a[0].parentNode,"FIELDSET"==a.tagName&&(a=a.parentNode)):a=a.parentNode,b=a.id);return b}function _getForm(a){var b=a.form;void 0==b&&a.length&&(b=a[0].form);return b}function _getFormElement(a,b){var d=null;_agent.isPIE?d=a.elements[b]:(d=a[b],void 0==d&&(d=a.elements[b+":trailing:items"]));return d}
function _getName(a){var b=a.name;if(void 0==b){var d=a.type;!d&&a.length&&(d=a[0].type);"radio"==d&&a.length&&(b=a[0].name)}return b}function _instanceof(a,b){if(void 0==b||void 0==a)return!1;for(;"object"==typeof a;){if(a.constructor==b)return!0;a=a.prototype}return!1}
function _getErrorString(a,b,d,e){_getForm(a);a=_getValue(a);if(d=_instanceof(e,window.TrConverterException)?e.getFacesMessage().getDetail():_instanceof(e,window.TrValidatorException)?e.getFacesMessage().getDetail():d)return _formatErrorString(d,{"0":b,1:a})}function _getValidators(a){return window["_"+_getJavascriptId(_getFormName(a))+"_Validators"]}
function _formatErrorString(a,b){var d=a,e;for(e in b){var g=b[e];g||(g="");"string"==typeof g&&(g=g.replace("{","{'"),g=g.replace("}","'}"));var h="{"+e+"}",d=d.replace(RegExp("%"+e+"%","g"),h),k=d.indexOf(h);if(g.indexOf&&0<=g.indexOf(h)){var m="";for(i=0;i<g.length;i++)m+="placeHolderString";for(;0<=k;)d=d.substring(0,k)+m+d.substring(k+h.length),k=d.indexOf(h);for(k=d.indexOf(m);0<=k;)d=d.substring(0,k)+g+d.substring(k+m.length),k=d.indexOf(m)}else for(;0<=k;)d=d.substring(0,k)+g+d.substring(k+
h.length),k=d.indexOf(h)}for(;-1!=d.indexOf("{'");)d=d.replace("{'","{"),d=d.replace("'}","}");return d.replace(/''/g,"'")}function _chain(a,b,d,e,g){return _chainMultiple([a,b],d,e,g)}function _chainMultiple(a,b,d,e){for(var g=!0,h=0,k=a.length;h<k;++h)if(!1===_callChained(a[h],b,d)){if(e)return!1;g=!1}return g}
function _callChained(a,b,d){if(a&&0<a.length){if("undefined"==typeof d||void 0==d)d=window.event;a=new Function("event",a);_agent.isPIE?d=a(d):(b._tempFunc=a,d=b._tempFunc(d),b._tempFunc=void 0);return!1!=d}return!0}function _checkLength(a,b,d){elementLength=a.value.length;if(elementLength>b)return a.value=a.value.substr(0,b),!0;if(elementLength<b)return!0;_agent.isIE&&"hidden"==d.type&&(d=window.event);return"change"==d.type||d&&(32>d.which||118==d.which&&d.ctrlKey)?!0:!1}
function _getElementById(a,b){if("undefined"!=typeof a.getElementById){if(("ie"!=_agent.kind||5<=_agent.version)&&!_agent.isBlackBerry){var d=a.getElementById(b);return null==d||d.id==b?d:_findElementById(a,b)}return a.getElementById(b)}if("undefined"==typeof a.all){if(0!=a.forms.length)for(d=0;d<a.forms.length;d++){var e=a.forms[d];if(e[b])return e[b]}return window[b]}return a.all[b]}
function _findElementById(a,b){if(a.id==b)return a;if(a.childNodes)for(var d=a.childNodes,e=0;e<d.length;e++){var g=_findElementById(d.item(e),b);if(null!=g)return g}return null}function _getQuerySeparator(a){var b=a.charAt(a.length-1);return"&"==b||"?"==b?"":0<=a.indexOf("?")?"&":"?"}
function _addParameter(a,b,d){var e=a.indexOf("?");if(-1==e)return a+"?"+b+"="+d;var g=a.indexOf("?"+b+"=",e);-1==g&&(g=a.indexOf("&"+b+"=",e+1));if(-1==g)return a+"&"+b+"="+d;e=g+b.length+2;b=a.substring(0,e);b+=d;d=a.indexOf("&",e);-1!=d&&(b+=a.substring(d));return b}function _addFormParameter(a,b,d){var e={};if(a)for(var g in a)e[g]=a[g];e[b]=d;return e}
function _pprInstallBlockingHandlers(a,b){var d=a.document;if(!(void 0==d||!d.attachEvent&&!d.addEventListener))if(d.attachEvent){var e=a._pprConsumeFirstClick;if(b){var g=a.event;if(void 0!=g){var h=document.elementFromPoint(g.x,g.y);if(!a._pprFirstClickPass||("change"==g.type||"blur"==g.type)&&g.srcElement==h||!_isSubmittingElement(h)){_pprControlCapture(a,!0);return}}d.attachEvent("onclick",e)}else d.detachEvent("onclick",e),_pprControlCapture(a,!1)}else for(h in e=a._pprConsumeBlockedEvent,g=
{click:1,keyup:1,keydown:1,keypress:1},g)b?d.addEventListener(h,e,!0):d.removeEventListener(h,e,!0)}function _pprConsumeClick(a){if(_agent.isIE){var b=document.body;(a.x<b.offsetLeft||a.y<b.offsetTop||a.x>b.offsetWidth||a.y>b.offsetHeight)&&_pprStopBlocking(window)}return!1}function _pprStartBlocking(a){!_agent.isPIE&&!_agent.isNokiaPhone&&!_agent.isBlackBerry&&(_agent.isIE?a._pprTimeoutFunc=a.setTimeout("_doPprStartBlocking(window);",1):_doPprStartBlocking(a))}
function _doPprStartBlocking(a){a._pprTimeoutFunc&&(a.clearTimeout(a._pprTimeoutFunc),a._pprTimeoutFunc=null);a._pprBlocking||(a._pprBlockStartTime=new Date,_agent.isGecko?(null!=a._pprBlockingTimeout&&a.clearTimeout(a._pprBlockingTimeout),a._pprBlockingTimeout=a.setTimeout("_pprStopBlocking(window);",8E3)):_agent.isIEGroup&&(_pprEventElement=window.document.activeElement),_pprInstallBlockingHandlers(a,!0),a._pprBlocking=!0)}
function _pprStopBlocking(a){a._pprTimeoutFunc&&(a.clearTimeout(a._pprTimeoutFunc),a._pprTimeoutFunc=null);!_agent.isPIE&&!_agent.isNokiaPhone&&!_agent.isBlackBerry&&(a._pprBlocking&&(_agent.isGecko&&null!=a._pprBlockingTimeout&&(a.clearTimeout(a._pprBlockingTimeout),null==a._pprBlockingTimeout),_pprInstallBlockingHandlers(a,!1),a._pprEventElement=null,a._pprBlocking=!1),a._pprBlocking=!1)}
function _pprFocus(a,b){if(_agent.isIEGroup){if(null==a.parentNode)return;var d=_getElementById(b,_pprdivElementName);d&&d.focus&&d.focus()}a.focus()}function _pprConsumeBlockedEvent(a){var b=!0;if(_pprBlocking){var d=!0;window._pprFirstClickPass&&150>new Date-_pprBlockStartTime&&"click"==a.type&&(d=!_isSubmittingElement(a.explicitOriginalTarget));d&&(a.stopPropagation(),a.preventDefault(),b=!1)}return b}
function _pprConsumeFirstClick(){_agent.isIE&&(_pprControlCapture(window,!0),window.document.detachEvent("onclick",_pprConsumeFirstClick));return!1}
function _pprControlCapture(a,b){if(_agent.isIE){var d=a.document,e=d.body;if(d=_getElementById(d,_pprdivElementName))b?(d.setCapture(),a._pprEventElement&&d.focus(),a._pprSavedCursor=e.style.cursor,e.style.cursor="wait",a._pprSavedCursorFlag=!0):a._pprSavedCursorFlag&&(d.releaseCapture(),a._pprEventElement&&a._pprEventElement.focus(),e.style.cursor=a._pprSavedCursor,a._pprSavedCursor=null,a._pprSavedCursorFlag=!1)}}
function _pprChoiceAction(){if(!_agent.isIE)return!0;var a=!1;!window._pprBlocking&&_pprChoiceChanged&&(_pprChoiceChanged=!1,a=!0);return a}function _pprChoiceChangeEvent(){if(!_agent.isIE)return!0;window._pprBlocking||(_pprChoiceChanged=!0);return!0}function _supportsPPR(){return!_agent.pprUnsupported}function _firePartialChange(a){var b=TrPage.getInstance();b.getRequestQueue().sendRequest(b,b._requestStatusChanged,a)}
function _submitPartialChange(a,b,d,e){if(!_supportsPPR())return submitForm(a,b,d);"string"==typeof a&&(a=document[a]);if(!a)return!1;d=_addFormParameter(d,"partial","true");_pprStartBlocking(window);submitForm(a,b,d,!0,e)||_pprStopBlocking(window)}function _setRequestedFocusNode(a,b,d,e){e||(e=window);e._TrFocusRequestDoc=a;e._TrFocusRequestID=b;e._TrFocusRequestNext=!0==d}
function _getRequestedFocusNode(a){void 0==a&&(a=window);if(null!=a._TrFocusRequestDoc&&null!=a._TrFocusRequestID){var b=_getElementById(a._TrFocusRequestDoc,a._TrFocusRequestID);if(!b)return null;if(a._TrFocusRequestNext)for(a=b.nextSibling;null!=a;a=a.nextSibling)if(_isFocusable(a)||_agent.isIE&&"a"==a.nodeName.toLowerCase()){b=a;break}return b}return null}
function _getFirstFocusable(a){if(null==a||_isFocusable(a))return a;if(a.hasChildNodes)for(var a=a.childNodes,b=0;b<a.length;b++){var d=_getFirstFocusable(a[b]);if(null!=d)return d}return null}function _restoreFocus(a,b,d){if(null!=a){var e=_getAncestorByName(a,"DIV");if(e){var g=e.scrollLeft;(0==e.scrollTop&&0==g||!b)&&_pprFocus(a,d)}else _pprFocus(a,d);_agent.isIE&&"INPUT"==a.tagName&&_getAncestorByName(a,"TABLE")&&_pprFocus(a,d)}}
function _getAncestorByName(a,b){for(b=b.toUpperCase();a;){if(b==a.nodeName)return a;a=a.parentNode}return null}function _isDescendent(a,b){if(null==a)return!1;for(;a.parentNode;){if(a==b)return!0;a=a.parentNode}return!1}function _isFocusable(a){if(null==a)return!1;var b=a.nodeName.toLowerCase();return"a"==b&&a.href?!_agent.isIE||a.id?!0:(a=a.childNodes)&&1==a.length&&"img"==a[0].nodeName.toLowerCase()?!1:!0:a.disabled?!1:"input"==b?"hidden"!=a.type:"select"==b||"button"==b||"textarea"==b}
function _eval(a,b){null!=b&&(_agent.isIEGroup?a.execScript(b):a.eval(b))}function _getInputField(a){var b=void 0,d=void 0;window.event?(kc=window.event.keyCode,d=window.event.srcElement):a&&(kc=a.which,d=a.target);if(void 0!=d&&("INPUT"==d.tagName||"TEXTAREA"==d.tagName))b=d;return b}function _enterField(a){var b=!0,a=_getInputField(a);void 0!=a&&(a.form._mayResetByInput=!1,a._validValue=a.value,b=!1);return b}
function _resetOnEscape(a){a=_getInputField(a);void 0!=a&&(a.form._mayResetByInput=!1);return!0}function _checkLoadNoPPR(){null!=_initialFocusID&&_setFocus(_getElementById(document,_initialFocusID));_agent.pprUnsupported=!0}
function _checkLoad(){!_agent.isIEGroup&&document.addEventListener&&(document.addEventListener("keyup",_trTrackActiveElement,!1),document.addEventListener("mousedown",_trTrackActiveElement,!1));if(document.forms)for(var a=0;a<document.forms.length;a++){var b=document.forms[a];b.addEventListener?(b.addEventListener("focus",_enterField,!0),b.addEventListener("keydown",_resetOnEscape,!0)):b.attachEvent&&(b.attachEvent("onfocusin",_enterField),b.attachEvent("onkeydown",_resetOnEscape))}a=_getTop(self);
self!=a&&a._blockReload&&(document.onkeydown=_noReload);!_agent.isNav&&null!=_initialFocusID&&(a=_getElementById(document,_initialFocusID))&&_setFocus(a);_agent.isNokiaPhone||TrPopupDialog._initDialogPage()}function _getActiveElement(){return document.activeElement?document.activeElement:window._trActiveElement}function _trTrackActiveElement(a){window._trActiveElement=a.target}
function _noReload(a){a||(a=window.event);var b=a.keyCode;if(116==b||82==b&&a.ctrlKey)return a.preventDefault&&a.preventDefault(),a.keyCode=0,!1}function _handleClientEvent(a,b,d,e){var g={};g.type=a;g.source=b;g.params=d;return(new Function("event",e))(g)}function _getCookie(a){var b=document.cookie,d="",e=a+"=";if(b){var g=b.indexOf("; "+e);0>g?(g=b.indexOf(e),0<g&&(g=-1)):g+=2;0<=g&&(d=b.indexOf(";",g),0>d&&(d=b.length),d=unescape(b.substring(g+a.length+1,d)))}return d}
function _setCookie(a,b){var d=window.location.host,e=d.indexOf(":");0<=e&&(d=d.substr(0,e));e=new Date;e.setFullYear(e.getFullYear()+10);d=a+"="+b+"; path=/;domain="+d+"; expires="+e.toGMTString();document.cookie=d}function _getTimeZoneID(){var a=-(new Date).getTimezoneOffset(),b;0<a?b="GMT+":(b="GMT-",a=-a);var d=""+a%60;1==d.length&&(d="0"+d);return b+Math.floor(a/60)+":"+d}function _isLTR(){return"LTR"==document.documentElement.dir.toUpperCase()}
function _isSubmittingElement(a){var b=!1,d=a.nodeName.toUpperCase();"BUTTON"==d?b=!0:"IMG"==d&&(a=a.parentNode,"A"==a.nodeName.toUpperCase()&&a.href&&(a=""+a.onclick,void 0!=a&&null!=a&&(b=0<a.indexOf("submitForm")||0<a.indexOf("_uixspu")||0<a.indexOf("_adfspu")||0<a.indexOf("_addRowSubmit"))));return b}function _getKC(a){return window.event?window.event.keyCode:a?a.which:-1}function _recentSubmit(a){return _lastDateSubmitted&&(a-=_lastDateSubmitted,0<=a&&200>a)?!0:!1}
function _recentReset(a){return _lastDateReset&&(a-=_lastDateReset,0<=a&&200>a)?!0:!1}function _radioSet_uixspu(a,b,d,e,g,h,k){_radioSet_adfspu(a,b,d,e,k)}
function _radioSet_adfspu(a,b,d,e,g){window._pprBlocking||(_pendingRadioButton?(_pendingRadioButton=!1,_adfspu(a,b,d,e,g)):(_pendingRadioButton=!0,g="_pendingRadioButton=false;_adfspu(",void 0!=a&&null!=a&&(g+="'"+a+"'"),g+=",",void 0!=b&&(g+=b),g+=",",void 0!=d&&null!=d&&(g+="'"+d+"'"),g+=",",void 0!=e&&null!=e&&(g+="'"+e+"'"),window.setTimeout(g+");",200)))}
function _stepSpinboxValue(a,b,d,e,g){if(a=_getElementById(document,a)){var h=a.value;if(isNaN(h)||isNaN(d)||isNaN(e)||isNaN(g))return alert("value, stepSize, min, and max must all be numbers. value: "+h+", stepSize: "+d+", min: "+e+", max: "+g),!1;b?(e=parseFloat(h)+parseFloat(d),a.value=e<g?e:g):(g=parseFloat(h)-parseFloat(d),a.value=g>e?g:e);return!0}return!1}function _clearSpinbox(){window.clearTimeout(_spinboxRepeat.timer);_spinboxRepeat.functionString=null}
function _spinboxRepeat(a,b,d,e,g){_stepSpinboxValue(a,b,d,e,g)?(null==_spinboxRepeat.functionString&&(_spinboxRepeat.functionString="_spinboxRepeat('"+a+"',"+b+","+d+","+e+","+g+");"),_spinboxRepeat.timer=window.setTimeout(_spinboxRepeat.functionString,1E3)):window.clearTimeout(_spinboxRepeat.timer)}function _getEventObj(){return"undefined"==typeof event?window.event:event}window.TrUIUtils={};
TrUIUtils.createCallback=function(a,b){var d=new Function("var f=arguments.callee; return f._func.apply(f._owner, arguments);");d._owner=a;d._func=b;return d};TrUIUtils._getWindowClientSize=function(){null==TrUIUtils._getWinClientSize&&(TrUIUtils._getWinClientSize=_agent.isIE?function(){var a="BackCompat"==document.compatMode?document.body:document.documentElement;return{w:a.clientWidth,h:a.clientHeight}}:function(){return{w:window.innerWidth,h:window.innerHeight}});return TrUIUtils._getWinClientSize()};
TrUIUtils._getElementBounds=function(a){"string"==typeof a&&(a=document.getElementById(a));if(!a)return null;var b=TrUIUtils._getElementLocation(a);return{x:b.x,y:b.y,w:a.offsetWidth,h:a.offsetHeight}};
TrUIUtils._getElementLocation=function(a){"string"==typeof a&&(a=document.getElementById(a));if(!a)return null;null==TrUIUtils._getElemLoc&&(TrUIUtils._getElemLoc=_agent.isGecko?function(a){var d=a.ownerDocument;if(void 0===d.getBoxObjectFor){var e=a.getBoundingClientRect(),a=Math.round(e.top),e=e.left,d=d.documentElement,e=e+d.scrollLeft,a=a+d.scrollTop;return{x:e,y:a}}a=d.getBoxObjectFor(a);e={x:a.screenX,y:a.screenY};a=d.getBoxObjectFor(d.documentElement);e.x-=a.screenX;e.y-=a.screenY;return e}:
_agent.isIE?function(a){var d=a.ownerDocument,a=a.getBoundingClientRect(),a={x:a.left,y:a.top},d=d.documentElement,e=d.scrollLeft;"rtl"==d.dir&&(e+=d.clientWidth-d.scrollWidth);a.x-=d.clientLeft-e;a.y-=d.clientTop-d.scrollTop;return a}:function(a){for(var d=a.ownerDocument.contentWindow,e=0,g=0;a&&a!=d;a=a.offsetParent)e+=a.offsetLeft,g+=a.offsetTop;return{x:e,y:g}});return TrUIUtils._getElemLoc(a)};
TrUIUtils._cssToJs=function(a){for(var b="",d=!1,e=0;e<a.length;e++)"-"==a.charAt(e)?d=!0:(b=d?b+a.charAt(e).toUpperCase():b+a.charAt(e),d=!1);return b};TrUIUtils._getStyle=function(a,b){if(a.currentStyle){var d=this._cssToJs(b);return a.currentStyle[d]}return window.getComputedStyle?document.defaultView.getComputedStyle(a,"").getPropertyValue(b):""};