META-INF.adf.jsLibs.Core.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of trinidad-impl Show documentation
Show all versions of trinidad-impl Show documentation
Private implementation of the Apache MyFaces Trinidad project
The newest version!
var _pprBackRestoreInlineScripts=false;
var _pprBlocking=false;
var _blockOnEverySubmit=false;
var _pprFirstClickPass=false;
var _pprdivElementName='tr_pprBlockingDiv';
var _pprLibStore;
var _pprBlockStartTime=0;
var _pprBlockingTimeout=null;
var _pprEventElement=null;
var _pprSavedCursorFlag=false;
var _pprChoiceChanged=false;
var _agent=new Object();
var _lastDateSubmitted;
var _lastDateReset=0;
var _lastDateValidated=0;
var _lastValidationFailure=0;
var _delayedEventParams=new Object();
var _initialFocusID=null;
var _TrFocusRequestDoc=null;
var _TrFocusRequestID=null;
var _TrFocusRequestNext=false;
var _TrEventBasedValidation=false;
var _blockCheckUnloadFromDialog=false;
var _saveForm=null;
var _saveDoValidate=null;
var _saveParameters=null;
var _submitRejected=false;
var _inPartialSubmit=false;
var _pendingRadioButton=false;
var _IE_MOUSE_CAPTURE_EVENTS=[
"onclick",
"ondblclick",
"onmousedown",
"onmousemove",
"onmouseout",
"onmouseover",
"onmouseup"
];
var _GECKO_MOUSE_CAPTURE_EVENTS=[
"click",
"mousedown",
"mouseup",
"mouseover",
"mousemove",
"mouseout",
"contextmenu"
];
function _atLeast(
a0,
a1
)
{
return(!a0||(a0==_agent.kind))&&
(!a1||(a1<=_agent.version));
}
function _atMost(
a0,
a1
)
{
return(a0==_agent.kind)&&(a1>=_agent.version);
}
function _supportsDOM()
{
var a0=false;
if(_agent.isIE)
{
a0=_agent.version>=5.5;
}
else if(_agent.isNav)
{
a0=false;
}
else if(_agent.isGecko||_agent.isSafari||_agent.isOpera)
{
a0=true;
}
else if(_agent.isBlackBerry)
{
a0=false;
a0=_agent.version>=4.6;
}
return a0;
}
function _agentInit()
{
var a0=navigator.userAgent.toLowerCase();
var a1=parseFloat(navigator.appVersion);
var a2=false;
var a3=false;
var a4=false;
var a5=false;
var a6=false;
var a7=false;
var a8=false;
var a9=false;
var a10=false;
var a11=false;
var a12=false;
var a13=false;
var a14="unknown";
var a15=false;
var a16=false;
var a17=true;
var a18=true;
var a19=true;
var a20=true;
if(a0.indexOf("msie")!=-1)
{
var a21=a0.match(/msie (.*);/);
a1=parseFloat(a21[1]);
a15=true;
if(a0.indexOf("windows ce")!=-1)
{
a19=false;
a18=false;
a20=false;
if(a0.indexOf("ppc")!=-1&&
a1>=4.0)
{
a8=true;
a16=true;
a14="pie";
}
else
{
a12=true;
a14="iemobile";
a17=false;
}
}
else
{
a4=true;
a14="ie";
}
}
else if(a0.indexOf("opera")!=-1)
{
a7=true;
a14="opera";
}
else if((a0.indexOf("applewebkit")!=-1)||
(a0.indexOf("safari")!=-1))
{
a9=true
a14="safari";
}
else if(a0.indexOf("gecko/")!=-1)
{
a3=true;
a14="gecko";
a1=1.0;
}
else if(a0.indexOf("blackberry")!=-1)
{
a2=true;
a14="blackberry";
a17=false;
}
else if((a0.indexOf('mozilla')!=-1)&&
(a0.indexOf('spoofer')==-1)&&
(a0.indexOf('compatible')==-1))
{
if(a1>=5.0)
{
a3=true;
a14="gecko";
a1=1.0;
}
else
{
a6=true;
a14="nn";
}
}
if(a0.indexOf('win')!=-1)
{
a11=true;
}
else if(a0.indexOf('mac')!=-1)
{
a5=true;
}
else if(a0.indexOf('sunos')!=-1)
{
a10=true;
}
else if((a0.indexOf('symbian')!=-1)||
(a0.indexOf('nokia')!=-1))
{
a13=true;
a16=true;
}
_agent.isBlackBerry=a2;
_agent.isGecko=a3;
_agent.isIE=a4;
_agent.isIEGroup=a15;
_agent.isMac=a5;
_agent.isNav=a6;
_agent.isNokiaPhone=a13;
_agent.isOpera=a7;
_agent.isPIE=a8;
_agent.isSafari=a9;
_agent.isSolaris=a10;
_agent.isWindows=a11;
_agent.isWindowsMobile6=a12;
_agent.kind=a14;
_agent.pprUnsupported=a16;
_agent.useJsfAjax=a17;
_agent.supportsDomDocument=a18;
_agent.supportsNodeType=a19;
_agent.supportsValidation=a20;
_agent.version=a1;
_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
};
var _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
}
var _modelessFeatureOverrides=
{
};
var _modalFeatureOverrides=
{
};
var _featureDefaults=
{
document:
{
channelmode:false,
copyhistory:true,
dependent:false,
directories:true,
fullscreen:false,
hotkeys:false,
location:true,
menubar:true,
resizable:true,
scrollbars:true,
status:true,
toolbar:true
},
dialog:
{
channelmode:false,
copyhistory:false,
dependent:true,
directories:false,
fullscreen:false,
hotkeys:true,
location:false,
menubar:false,
resizable:true,
scrollbars:true,
status:true
}
}
var _signedFeatures=
{
alwayslowered:1,
alwaysraised:1,
titlebar:1,
"z-lock":1
};
var _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(a0,a1,a2)
{
if(a0.addEventListener)
{
a0.addEventListener(a1,a2,false);
return true;
}
else if(a0.attachEvent)
{
var a3=a0.attachEvent("on"+a1,a2);
return a3;
}
else
{
return false;
}
}
function _removeEvent(a0,a1,a2)
{
if(a0.removeEventListener)
{
a0.removeEventListener(a1,a2,false);
return true;
}
else if(a0.detachEvent)
{
var a3=a0.detachEvent("on"+a1,a2);
return a3;
}
else
{
return false;
}
}
function _getBodyWidth(
a0,
a1,
a2
)
{
var a3=_getContentWidth(a0,a1,0);
var a4=10;
if(_isLTR()||(a2<=5))
{
a4=2*a2;
}
return a3+a4;
}
function _getContentWidth(
a0,
a1,
a2
)
{
var a3=a0.childNodes;
var a4=_agent.isIE;
var a5=(a4)
?"canHaveHTML"
:"tagName";
var a6=0;
for(var a7=0;a70))
{
var a9=0;
var a10=a8["offsetWidth"];
if(!a4)
{
if((a10==a1)||
(a10<=1))
{
var a11=a8.offsetLeft;
if(a8.parentNode!=a8.offsetParent)
{
a11=a11-
(a8.parentNode.offsetLeft);
}
a9=_getContentWidth(a8,
a10,
a11);
}
else
{
a9=a10;
}
}
else
{
a9=a8["clientWidth"];
if(a9==0)
{
var a11=a8.offsetLeft;
if(a8.parentElement!=a8.offsetParent)
{
a11=a11-
(a8.parentElement.offsetLeft);
}
a9=_getContentWidth(a8,
a10,
a11);
}
}
if(a9>a6)
{
a6=a9;
}
}
}
if(a6==0)
a6=a1;
return a6+a2;
}
function _getParentWindow(a0)
{
var a1=a0.parent;
try
{
a1.name;
return a1;
}
catch(e)
{
return undefined;
}
}
function _getTop(a0)
{
var a1=_getParentWindow(a0);
while(a1&&(a1!=a0))
{
a0=a1;
a1=_getParentWindow(a0);
}
return a0;
}
function t(a0,a1)
{
if(_tURL)
{
document.write('');
}
}
function _getDependents(
a0,
a1
)
{
var a2;
if(a0)
{
a2=a0["_dependents"];
if(!a2)
{
if(a1)
{
a2=new Object();
a0["_dependents"]=a2;
}
}
}
return a2;
}
function _getDependent(
a0,
a1
)
{
var a2=_getDependents(a0);
var a3;
if(a2)
{
a3=a2[a1];
}
return a3;
}
function _setDependent(
a0,
a1,
a2
)
{
var a3=_getDependents(a0,true);
if(a3)
{
a3[a1]=a2;
}
}
function _getModalDependent(
a0
)
{
return _getDependent(a0,"modalWindow");
}
function _isModalDependent(
a0,
a1
)
{
return(a1==_getModalDependent(a0));
}
function _unloadADFDialog(
a0
)
{
_blockCheckUnloadFromDialog=false;
_checkUnload(a0);
_blockCheckUnloadFromDialog=true;
}
function _checkUnload(
a0
)
{
a0=_getEventObj();
if(_blockCheckUnloadFromDialog)
{
_blockCheckUnloadFromDialog=false;
return;
}
if(_isModalAbandoned())
return;
var a1=_getModalDependent(window);
if(a1!=null)
{
_setModalAbandoned(a1);
a1.close();
}
var a2=_getTop(self);
if(!a2)
return;
var a3=a2["opener"];
if(!a3)
return;
var a4=_getDependent(a3,self.name);
if(_isModalDependent(a3,self))
{
_setDependent(a3,"modalWindow",(void 0));
a3.onfocus=null;
if(_agent.supportsDomDocument)
{
var a5=a3.document.body;
if(_agent.atLeast("ie",4))
{
if(_agent.atLeast("ie",5)&&_agent.isWindows)
{
a5.onlosecapture=null;
_removeModalCaptureIE(a5);
}
a5.style.filter=null;
}
if(_agent.isGecko)
{
if(a5!=(void 0))
{
_removeModalCaptureGecko(a3,a5);
}
}
}
}
if(a4!=(void 0))
{
_setDependent(a3,self.name,(void 0));
if(a0==(void 0))
a0=self.event;
a4(a2,a0);
}
}
function _addModalCaptureIE(a0)
{
var a1=new Object();
var a2=_IE_MOUSE_CAPTURE_EVENTS;
var a3=a2.length;
for(var a4=0;a4=window.screenTop&&a0.screenX>=window.screenLeft)
{
if(!window._trIeCaptureCurrent&&window._trIeCapture)
{
window._trIeCaptureCurrent=true;
window._trIeCapture.setCapture();
}
a0.cancelBubble=true;
}
else if(window._trIeCapture)
{
window._trIeCaptureCurrent=false;
window._trIeCapture.releaseCapture();
}
}
function _addModalCaptureGecko(a0)
{
var a1=_GECKO_MOUSE_CAPTURE_EVENTS;
var a2=a1.length;
for(var a3=0;a3=0)&&(a4=0)&&(a40)?a4:"";
}
else if(a2.substring(0,6)=="select")
{
a0=a1;
var a5=a0.selectedIndex;
if(a5!=(void 0)&&
a5!=null&&
a5>=0)
{
var a6=a0.options[a5];
var a7=a6.value;
if(!a7)
{
for(var a3=0;a3=46)&&(a1.keyCode<112)))
a0.value="";
return true;
}
function _setFocus(a0)
{
if(_isShowing(a0))
{
if(a0.focus)
a0.focus();
if((a0.type=="text")
&&(a0.value!=(void 0))
&&(a0.value!=null)
&&(a0.value.length>0))
{
if(true!=_delayedEventParams["reset"])
a0.select();
}
}
}
function _addValidators(a0,a1,a2,a3,a4)
{
var a5=document.forms[a0];
var a6=_getValidators(a5);
if(!a6)
a6=new Object();
for(var a7=0;a70)
{
failureMap[id]=inputFailures;
}
}
}
return failureMap;
}
function _getGlobalErrorString(
a0,
a1,
a2,
a3
)
{
var a4=_getForm(a0);
if(a1&&a3!=null)
{
return _formatErrorString(a1,
{
"0":a3,
"1":a2
});
}
return a2;
}
function _isShowing(
a0)
{
if(a0.type=='hidden')
return false;
if(_agent.isIEGroup)
{
var a1=a0;
while(a1!=(void 0))
{
computedStyle=a1.currentStyle;
if((computedStyle!=(void 0))&&
((computedStyle["visibility"]=="hidden")||
(computedStyle["display"]=="none")))
{
return false;
}
a1=a1.parentNode;
}
return true;
}
if(_agent.isGecko||_agent.isSafari||_agent.BlackBerry)
{
if(!a0.ownerDocument&&a0.length)
a0=a0[0];
var a2=a0.ownerDocument.defaultView.getComputedStyle(a0,
null);
return((a2["visibility"]!="hidden")&&
(a2["display"]!="none"));
}
return true;
}
function _getID(
a0
)
{
if(_agent.isPIE)
{
return a0.name;
}
var a1=a0.id;
var a2=a0.type;
if(!a2&&a0.length)
a2=a0[0].type;
if(a2=="radio")
{
var a3;
if(a0.length)
{
a3=a0[0].parentNode;
if(a3.tagName=='FIELDSET')
a3=a3.parentNode;
}
else
{
a3=a0.parentNode;
}
a1=a3.id;
}
return a1;
}
function _getForm(
a0
)
{
var a1=a0.form;
if(a1==(void 0))
{
if(a0.length)
{
a1=a0[0].form;
}
}
return a1;
}
function _getFormElement(
a0,
a1)
{
var a2=null;
if(_agent.isPIE)
{
a2=a0.elements[a1];
}
else
{
a2=a0[a1];
if(a2==undefined)
{
a2=a0.elements[a1+":trailing:items"];
}
}
return a2;
}
function _getName(
a0
)
{
var a1=a0.name;
if(a1==(void 0))
{
var a2=a0.type;
if(!a2&&a0.length)
a2=a0[0].type;
if(a2=="radio"&&a0.length)
{
a1=a0[0].name;
}
}
return a1;
}
function _instanceof(
a0,
a1
)
{
if(a1==(void 0))
return false;
if(a0==(void 0))
return false;
while(typeof(a0)=="object")
{
if(a0.constructor==a1)
return true;
a0=a0.prototype;
}
return false;
}
function _getErrorString(
a0,
a1,
a2,
a3
)
{
var a4;
var a5=_getForm(a0);
var a6=_getValue(a0);
if(_instanceof(a3,window["TrConverterException"]))
{
a4=a3.getFacesMessage().getDetail();
}
else if(_instanceof(a3,window["TrValidatorException"]))
{
a4=a3.getFacesMessage().getDetail();
}
else
{
a4=a2;
}
if(a4)
{
var a7=_formatErrorString(a4,
{
"0":a1,
"1":a6
});
return a7;
}
}
function _getValidators(
a0
)
{
return window["_"+_getJavascriptId(_getFormName(a0))+"_Validators"];
}
function _formatErrorString(
a0,
a1
)
{
var a2=a0;
for(var a3 in a1)
{
var a4=a1[a3];
if(!a4)
{
a4="";
}
if(typeof a4=="string")
{
a4=a4.replace("{","{'");
a4=a4.replace("}","'}");
}
var a5="{"+a3+"}";
a2=a2.replace(new RegExp('%'+a3+'%','g'),
a5);
var a6=a2.indexOf(a5);
if(a4.indexOf&&a4.indexOf(a5)>=0)
{
var a7='';
for(i=0;i=0)
{
a2=(a2.substring(0,a6)
+a7
+a2.substring(a6+a5.length));
a6=a2.indexOf(a5);
}
a6=a2.indexOf(a7);
while(a6>=0)
{
a2=(a2.substring(0,a6)
+a4
+a2.substring(a6+a7.length));
a6=a2.indexOf(a7);
}
}
else
while(a6>=0)
{
a2=(a2.substring(0,a6)
+a4
+a2.substring(a6+a5.length));
a6=a2.indexOf(a5);
}
}
while(a2.indexOf("{'")!=-1)
{
a2=a2.replace("{'","{");
a2=a2.replace("'}","}");
}
var a8=/''/g;
return a2.replace(a8,"'");
}
function _chain(
a0,
a1,
a2,
a3,
a4
)
{
return _chainMultiple([a0,a1],a2,a3,a4);
}
function _chainMultiple(
a0,
a1,
a2,
a3
)
{
var a4=true;
for(var a5=0,size=a0.length;a50))
{
if((typeof(a2)=='undefined')||(a2==(void 0)))
{
a2=window.event;
}
var a3=new Function("event",a0);
var a4;
if(_agent.isPIE)
{
a4=a3(a2);
}
else
{
a1._tempFunc=a3;
a4=a1._tempFunc(a2);
a1._tempFunc=(void 0);
}
return!(a4==false);
}
else
{
return true;
}
}
function _checkLength(a0,a1,a2)
{
elementLength=a0.value.length;
if(elementLength>a1)
{
a0.value=a0.value.substr(0,a1);
return true;
}
if(elementLength=5))&&(!_agent.isBlackBerry))
{
var a2=a0.getElementById(a1);
if((a2==null)||(a2.id==a1))
return a2;
return _findElementById(a0,a1);
}
return a0.getElementById(a1);
}
else if(typeof(a0.all)=='undefined')
{
if(a0.forms.length==0)
return window[a1];
else
for(var a3=0;a3=0)?'&':'?';
}
function _addParameter(
a0,
a1,
a2
)
{
var a3=a0.indexOf('?');
if(a3==-1)
{
return a0+'?'+a1+'='+a2;
}
else
{
var a4=a0.indexOf('?'+a1+'=',a3);
if(a4==-1)
a4=a0.indexOf('&'+a1+'=',a3+1);
if(a4==-1)
{
return a0+'&'+a1+'='+a2;
}
else
{
var a5=a4+a1.length+2;
var a6=a0.substring(0,a5);
a6+=a2;
var a7=a0.indexOf('&',a5);
if(a7!=-1)
{
a6+=a0.substring(a7);
}
return a6;
}
}
}
function _addFormParameter(
a0,
a1,
a2
)
{
var a3=new Object();
if(a0)
{
for(var a4 in a0)
a3[a4]=a0[a4];
}
a3[a1]=a2;
return a3;
}
function _pprInstallBlockingHandlers(a0,a1)
{
var a2=a0.document;
if(a2==(void 0))
return;
if(!a2.attachEvent&&!a2.addEventListener)
{
return;
}
if(a2.attachEvent)
{
var a3=a0._pprConsumeFirstClick;
if(a1)
{
var a4=a0.event;
if(a4!=(void 0))
{
var a5=document.elementFromPoint(a4.x,a4.y);
if(!a0._pprFirstClickPass
||(((a4.type=='change')||(a4.type=='blur'))
&&(a4.srcElement==a5))
||(!_isSubmittingElement(a5)))
{
_pprControlCapture(a0,true);
return;
}
}
a2.attachEvent('onclick',a3);
}
else
{
a2.detachEvent('onclick',a3);
_pprControlCapture(a0,false);
}
}
else
{
var a3=a0._pprConsumeBlockedEvent;
var a6={'click':1,'keyup':1,'keydown':1,'keypress':1};
for(var a7 in a6)
{
if(a1)
a2.addEventListener(a7,a3,true);
else
a2.removeEventListener(a7,a3,true);
}
}
}
function _pprConsumeClick(a0)
{
if(_agent.isIE)
{
var a1=document.body;
if((a0.xa1.offsetWidth)||(a0.y>a1.offsetHeight))
{
_pprStopBlocking(window);
}
}
return false;
}
function _pprStartBlocking(a0)
{
if(_agent.isPIE||_agent.isNokiaPhone||_agent.isBlackBerry)
return;
if(_agent.isIE)
{
a0._pprTimeoutFunc=a0.setTimeout("_doPprStartBlocking(window);",
1);
return;
}
else
{
_doPprStartBlocking(a0);
}
}
function _doPprStartBlocking(a0)
{
if(a0._pprTimeoutFunc)
{
a0.clearTimeout(a0._pprTimeoutFunc);
a0._pprTimeoutFunc=null;
}
if(!a0._pprBlocking)
{
var a1=a0.document.body;
a0._pprBlockStartTime=new Date();
if(_agent.isGecko)
{
if(a0._pprBlockingTimeout!=null)
{
a0.clearTimeout(a0._pprBlockingTimeout);
}
a0._pprBlockingTimeout=a0.setTimeout("_pprStopBlocking(window);",
8000);
}
else if(_agent.isIEGroup)
{
_pprEventElement=window.document.activeElement;
}
_pprInstallBlockingHandlers(a0,true);
a0._pprBlocking=true;
}
}
function _pprStopBlocking(a0)
{
if(a0._pprTimeoutFunc)
{
a0.clearTimeout(a0._pprTimeoutFunc);
a0._pprTimeoutFunc=null;
}
if(_agent.isPIE||_agent.isNokiaPhone||_agent.isBlackBerry)
return;
var a1=a0.document;
if(a0._pprBlocking)
{
if(_agent.isGecko)
{
if(a0._pprBlockingTimeout!=null)
{
a0.clearTimeout(a0._pprBlockingTimeout);
a0._pprBlockingTimeout==null;
}
}
_pprInstallBlockingHandlers(a0,false);
a0._pprEventElement=null;
a0._pprBlocking=false;
}
a0._pprBlocking=false;
}
function _pprFocus(a0,a1)
{
if(_agent.isIEGroup)
{
if(a0.parentNode==null)
return;
var a2=_getElementById(a1,_pprdivElementName);
if((a2)&&(a2["focus"]))
a2.focus();
}
a0.focus();
}
function _pprConsumeBlockedEvent(a0)
{
var a1=true;
if(_pprBlocking)
{
var a2=true;
if(window._pprFirstClickPass)
{
var a3=new Date();
var a4=a3-_pprBlockStartTime;
var a5=150;
if((a40)
a4=-1;
}
else
a4+=2;
if(a4>=0)
{
var a5=a1.indexOf(";",a4);
if(a5<0)
a5=a1.length;
a2=unescape(a1.substring(a4+a0.length+1,a5));
}
}
return a2;
}
function _setCookie(a0,a1)
{
var a2=window.location.host;
var a3=a2.indexOf(":");
if(a3>=0)
a2=a2.substr(0,a3);
var a4=new Date();
a4.setFullYear(a4.getFullYear()+10);
var a5=a0+"="+a1+
"; path=/;domain="+a2+"; expires="+a4.toGMTString();
document.cookie=a5;
}
function _getTimeZoneID()
{
var a0=-(new Date()).getTimezoneOffset();
var a1;
if(a0>0)
a1="GMT+";
else
{
a1="GMT-";
a0=-a0;
}
var a2=""+a0%60;
if(a2.length==1)
a2="0"+a2;
return(a1+(Math.floor(a0/60))+":"+a2);
}
function _isLTR()
{
return document.documentElement["dir"].toUpperCase()=="LTR";
}
function _isSubmittingElement(a0)
{
var a1=false;
var a2=a0.nodeName.toUpperCase();
if(a2=="BUTTON")
{
a1=true;
}
else if(a2=="IMG")
{
var a3=a0.parentNode;
var a4=a3.nodeName.toUpperCase();
if(('A'==a4)&&(a3.href))
{
var a5=""+a3["onclick"];
if((a5!=(void 0))&&(a5!=null))
{
a1=((a5.indexOf("submitForm")>0)
||(a5.indexOf("_uixspu")>0)
||(a5.indexOf("_adfspu")>0)
||(a5.indexOf("_addRowSubmit")>0));
}
}
}
return a1;
}
function _getKC(a0)
{
if(window.event)
return window.event.keyCode;
else if(a0)
return a0.which;
return-1;
}
function _recentSubmit(a0)
{
if(_lastDateSubmitted)
{
var a1=a0-_lastDateSubmitted;
if((a1>=0)&&(a1<200))
return true;
}
return false;
}
function _recentReset(a0)
{
if(_lastDateReset)
{
var a1=a0-_lastDateReset;
if((a1>=0)&&(a1<200))
return true;
}
return false;
}
function _radioSet_uixspu(a0,a1,a2,a3,a4,a5,a6)
{
_radioSet_adfspu(a0,a1,a2,a3,a6);
}
function _radioSet_adfspu(a0,a1,a2,a3,a4)
{
if(window._pprBlocking)
return;
if(_pendingRadioButton)
{
_pendingRadioButton=false;
_adfspu(a0,a1,a2,a3,a4);
}
else
{
_pendingRadioButton=true;
var a5="_pendingRadioButton=false;_adfspu(";
if((a0!=(void 0))&&(a0!=null))
a5+="'"+a0+"'";
a5+=",";
if(a1!=(void 0))
a5+=a1;
a5+=",";
if((a2!=(void 0))&&(a2!=null))
a5+="'"+a2+"'";
a5+=",";
if((a3!=(void 0))&&(a3!=null))
a5+="'"+a3+"'";
a5+=");";
window.setTimeout(a5,200);
}
}
function _stepSpinboxValue(a0,a1,a2,a3,a4)
{
var a5=false;
var a6=_getElementById(document,a0);
if(a6)
{
var a7=a6.value;
if(isNaN(a7)||isNaN(a2)||isNaN(a3)||isNaN(a4))
{
alert("value, stepSize, min, and max must all be numbers. value: "+
a7+", stepSize: "+a2+", min: "+a3+", max: "+a4);
return false;
}
if(a1)
{
var a8=parseFloat(a7)+parseFloat(a2);
if(a8a3)
a6.value=a9;
else if(a5)
a6.value=a4;
else a6.value=a3;
}
return true;
}
return false;
}
function _clearSpinbox()
{
window.clearTimeout(_spinboxRepeat.timer);
_spinboxRepeat.functionString=null;
}
function _spinboxRepeat(a0,a1,a2,a3,a4)
{
var a5=_stepSpinboxValue(a0,a1,a2,a3,a4);
if(!a5)
{
window.clearTimeout(_spinboxRepeat.timer);
}
else
{
if(_spinboxRepeat.functionString==null)
{
_spinboxRepeat.functionString=
"_spinboxRepeat('"+a0+"',"+a1+
","+a2+","+a3+","+a4+");";
}
_spinboxRepeat.timer=
window.setTimeout(_spinboxRepeat.functionString,1000);
}
}
function _getEventObj()
{
if(typeof(event)=='undefined')
return window.event;
else
return event;
return null;
}
var TrUIUtils=new Object();
TrUIUtils.createCallback=function(a0,a1)
{
var a2=new Function(
"var f=arguments.callee; return f._func.apply(f._owner, arguments);");
a2._owner=a0;
a2._func=a1;
return a2;
}
TrUIUtils._getWindowClientSize=function()
{
var a3;
if(TrUIUtils['_getWinClientSize']==null)
{
if(_agent.isIE)
{
TrUIUtils._getWinClientSize=function()
{
var a4=((document.compatMode=="BackCompat")?document.body:document.documentElement);
return{w:a4.clientWidth,h:a4.clientHeight};
}
}
else
{
TrUIUtils._getWinClientSize=function()
{
return{w:window.innerWidth,h:window.innerHeight};
}
}
}
return TrUIUtils._getWinClientSize();
}
TrUIUtils._getElementBounds=function(a5)
{
if(typeof(a5)=="string")
{
a5=document.getElementById(a5);
}
if(!a5)
{
return null;
}
var a6=TrUIUtils._getElementLocation(a5);
return{x:a6.x,y:a6.y,w:a5.offsetWidth,h:a5.offsetHeight};
}
TrUIUtils._getElementLocation=function(a7)
{
if(typeof(a7)=="string")
{
a7=document.getElementById(a7);
}
if(!a7)
{
return null;
}
var a8;
if(TrUIUtils['_getElemLoc']==null)
{
if(_agent.isGecko)
{
TrUIUtils._getElemLoc=function(a7)
{
var a9=a7.ownerDocument;
if(a9.getBoxObjectFor===undefined)
{
var a10=a7.getBoundingClientRect();
var a11=Math.round(a10.top);
var a12=a10.left;
var a13=a9.documentElement;
a12+=a13.scrollLeft;
a11+=a13.scrollTop;
return{x:a12,y:a11};
}
else
{
var a14=a9.getBoxObjectFor(a7);
var a15={x:a14.screenX,y:a14.screenY};
a14=a9.getBoxObjectFor(a9.documentElement);
a15.x-=a14.screenX;
a15.y-=a14.screenY;
return a15;
}
}
}
else if(_agent.isIE)
{
TrUIUtils._getElemLoc=function(a7)
{
var a9=a7.ownerDocument;
var a16=a7.getBoundingClientRect();
var a15={x:a16.left,y:a16.top};
var a17=a9.documentElement;
var a18=a17.scrollLeft;
var a19=a17["dir"]=="rtl";
if(a19)
{
a18+=a17.clientWidth-a17.scrollWidth;
}
a15.x-=a17.clientLeft-a18;
a15.y-=(a17.clientTop-a17.scrollTop);
return a15;
}
}
else
{
TrUIUtils._getElemLoc=function(a7)
{
var a20=a7.ownerDocument.contentWindow;
var a21=0;
var a22=0;
for(var a23=a7;a23&&a23!=a20;a23=a23.offsetParent)
{
a21+=a23.offsetLeft;
a22+=a23.offsetTop;
}
return{x:a21,y:a22};
}
}
}
return TrUIUtils._getElemLoc(a7);
}
TrUIUtils._cssToJs=function(a24)
{
var a25='';
var a26=false;
for(var a27=0;a27