var FCKeditor=function(_1,_2,_3,_4,_5){
this.InstanceName=_1;
this.Width=_2||"100%";
this.Height=_3||"200";
this.ToolbarSet=_4||"Default";
this.Value=_5||"";
this.BasePath="/pub/fckeditor/";
this.CheckBrowser=true;
this.DisplayErrors=true;
this.EnableSafari=false;
this.Config=new Object();
this.OnError=null;
};
FCKeditor.prototype.Create=function(){
if(!this.InstanceName||this.InstanceName.length==0){
this._ThrowError(701,"You must specify a instance name.");
return;
}
document.write("<div>");
if(!this.CheckBrowser||this._IsCompatibleBrowser()){
document.write("<input type=\"hidden\" id=\""+this.InstanceName+"\" name=\""+this.InstanceName+"\" value=\""+this._HTMLEncode(this.Value)+"\" />");
document.write(this._GetConfigHtml());
document.write(this._GetIFrameHtml());
}else{
var _6=this.Width.toString().indexOf("%")>0?this.Width:this.Width+"px";
var _7=this.Height.toString().indexOf("%")>0?this.Height:this.Height+"px";
document.write("<textarea name=\""+this.InstanceName+"\" rows=\"4\" cols=\"40\" style=\"WIDTH: "+_6+"; HEIGHT: "+_7+"\" wrap=\"virtual\">"+this._HTMLEncode(this.Value)+"</textarea>");
}
document.write("</div>");
};
FCKeditor.prototype.ReplaceTextarea=function(){
if(!this.CheckBrowser||this._IsCompatibleBrowser()){
var _8=document.getElementById(this.InstanceName);
if(!_8){
_8=document.getElementsByName(this.InstanceName)[0];
}
if(!_8||_8.tagName!="TEXTAREA"){
alert("Error: The TEXTAREA id \""+this.InstanceName+"\" was not found");
return;
}
_8.style.display="none";
this._InsertHtmlBefore(this._GetConfigHtml(),_8);
this._InsertHtmlBefore(this._GetIFrameHtml(),_8);
}
};
FCKeditor.prototype._InsertHtmlBefore=function(_9,_a){
if(_a.insertAdjacentHTML){
_a.insertAdjacentHTML("beforeBegin",_9);
}else{
var _b=document.createRange();
_b.setStartBefore(_a);
var _c=_b.createContextualFragment(_9);
_a.parentNode.insertBefore(_c,_a);
}
};
FCKeditor.prototype._GetConfigHtml=function(){
var _d="";
for(var o in this.Config){
if(_d.length>0){
_d+="&amp;";
}
_d+=escape(o)+"="+escape(this.Config[o]);
}
return "<input type=\"hidden\" id=\""+this.InstanceName+"___Config\" value=\""+_d+"\" />";
};
FCKeditor.prototype._GetIFrameHtml=function(){
var _f="fckeditor.original.html";
var _10=this.BasePath+"editor/"+_f+"?InstanceName="+this.InstanceName;
if(this.ToolbarSet){
_10+="&Toolbar="+this.ToolbarSet;
}
return "<iframe id=\""+this.InstanceName+"___Frame\" src=\""+_10+"\" width=\""+this.Width+"\" height=\""+this.Height+"\" frameborder=\"no\" scrolling=\"no\"></iframe>";
};
FCKeditor.prototype._IsCompatibleBrowser=function(){
var _11=navigator.userAgent.toLowerCase();
if(_11.indexOf("msie")!=-1&&_11.indexOf("mac")==-1&&_11.indexOf("opera")==-1){
var _12=navigator.appVersion.match(/MSIE (.\..)/)[1];
return (_12>=5.5);
}else{
if(navigator.product=="Gecko"&&navigator.productSub>=20030210){
return true;
}else{
if(this.EnableSafari&&_11.indexOf("safari")!=-1){
return (_11.match(/safari\/(\d+)/)[1]>=312);
}else{
return false;
}
}
}
};
FCKeditor.prototype._ThrowError=function(_13,_14){
this.ErrorNumber=_13;
this.ErrorDescription=_14;
if(this.DisplayErrors){
document.write("<div style=\"COLOR: #ff0000\">");
document.write("[ FCKeditor Error "+this.ErrorNumber+": "+this.ErrorDescription+" ]");
document.write("</div>");
}
if(typeof (this.OnError)=="function"){
this.OnError(this,_13,_14);
}
};
FCKeditor.prototype._HTMLEncode=function(_15){
if(typeof (_15)!="string"){
_15=_15.toString();
}
_15=_15.replace(/&/g,"&amp;");
_15=_15.replace(/"/g,"&quot;");
_15=_15.replace(/</g,"&lt;");
_15=_15.replace(/>/g,"&gt;");
_15=_15.replace(/'/g,"&#39;");
return _15;
};
window.document.jsfForm=function(){
if(this.forms.length==1){
return this.forms[0];
}
for(var i=0;i<this.forms.length;i++){
if(this.forms[i]["bookmarkURLHF"]!=undefined){
return this.forms[i];
}
}
return null;
};
String.prototype.endsWith=function(_17){
var _18=this.lastIndexOf(_17);
return _18!=-1&&_18+_17.length==this.length;
};
function getEventElement(_19){
_19=(_19)?_19:window.event;
return (_19.target)?_19.target:_19.srcElement;
}
function forceSubmit(){
stdSubmit(document.jsfForm());
}
function forceCommandSubmit(_1a){
subCmdSubmit(document.jsfForm().id,_1a,null);
}
function dontKeepScrollPosition(){
var _1b=document.jsfForm();
if(_1b["akPBDisabled"]!=undefined){
_1b["akPBDisabled"].value="1";
}
return true;
}
function findParentOfType(_1c,_1d){
var _1e=_1c;
while(_1e.parentNode!=null){
if(_1e.parentNode.nodeName==_1d){
return _1e.parentNode;
}
_1e=_1e.parentNode;
}
return null;
}
function findElementsEndingWithId(_1f,_20,_21,_22){
if(_1f==null){
_1f=window.document;
}
if(_21==null){
_21=new Array();
}
var _23=_1f.childNodes;
for(var i=0;i<_23.length;i++){
var _25=_23[i].id;
if(_25!=null){
var _26=_25.lastIndexOf(_20);
if(_26!=-1&&_26+_20.length==_25.length){
_21.push(_23[i]);
if(_22){
return _21;
}
}
}
if(_23[i].hasChildNodes()){
var _27=_21.length;
findElementsEndingWithId(_23[i],_20,_21,_22);
if(_27<_21.length&&_22){
return _21;
}
}
}
return _21;
}
function findElementsEndingWithName(_28,_29,_2a,_2b){
if(_28==null){
_28=window.document;
}
if(_2a==null){
_2a=new Array();
}
var _2c=_28.childNodes;
for(var i=0;i<_2c.length;i++){
var _2e=_2c[i].name;
if(_2e!=null){
var _2f=_2e.lastIndexOf(_29);
if(_2f!=-1&&_2f+_29.length==_2e.length){
_2a.push(_2c[i]);
if(_2b){
return _2a;
}
}
}
if(_2c[i].hasChildNodes()){
var _30=_2a.length;
findElementsEndingWithName(_2c[i],_29,_2a,_2b);
if(_30<_2a.length&&_2b){
return _2a;
}
}
}
return _2a;
}
function findElementByClass(_31,_32){
if(_31==null){
_31=window.document;
}
var _33=_31.childNodes;
for(var i=0;i<_33.length;i++){
if(_33[i].className==_32){
return _33[i];
}
}
for(var i=0;i<_33.length;i++){
if(_33[i].hasChildNodes()){
elem=findElementByClass(_33[i],_32);
if(elem!=null){
return elem;
}
}
}
return null;
}
function getElementHeight(_35,_36){
elem=findElementByClass(_35,_36);
if(elem!=null){
rect=elem.getBoundingClientRect();
return rect.bottom-rect.top;
}
return 0;
}
function previousSiblingWithTag(_37,_38){
var _39=_37.previousSibling;
if(_39!=null){
if(_39.tagName!=null&&_39.tagName.toLowerCase()==_38.toLowerCase()){
return _39;
}else{
return previousSiblingWithTag(_39,_38);
}
}
return null;
}
function nextSiblingWithTag(_3a,_3b){
var _3c=_3a.nextSibling;
if(_3c!=null){
if(_3c.tagName!=null&&_3c.tagName.toLowerCase()==_3b.toLowerCase()){
return _3c;
}else{
return nextSiblingWithTag(_3c,_3b);
}
}
return null;
}
function nextSiblingWithoutTag(_3d,_3e){
var _3f=_3d.nextSibling;
if(_3f!=null){
if(_3f.tagName!=null&&_3f.tagName.toLowerCase()!=_3e.toLowerCase()){
return _3f;
}else{
return nextSiblingWithoutTag(_3f,_3e);
}
}
return null;
}
function getCenterPanelHeight(_40){
var _41=0;
var _42=0;
var _43=previousSiblingWithTag(_40,"span");
var _44=nextSiblingWithTag(_40,"span");
if(_43!=null){
var _45=_43.getBoundingClientRect();
_41=_45.bottom-_45.top;
}
if(_44!=null){
var _46=_44.getBoundingClientRect();
_42=_46.bottom-_46.top;
}
return document.documentElement.clientHeight-_41-_42;
}
function bookmarkMe(){
url=document.jsfForm()["bookmarkURLHF"].value;
name=document.jsfForm()["bookmarkNameHF"].value;
if(url!=null){
window.external.AddFavorite(url,name);
}
return false;
}
function execDefaultCmdOnEnterKeyPress(_47){
var _48=getKeyPressed(_47);
var _49=13;
if(_48==_49){
var btn=findDefaultCmd(null);
if(btn!=null){
btn.onclick();
}
}
}
function getKeyPressed(_4b){
var _4c;
if(window.event){
_4c=_4b.keyCode;
}else{
if(_4b.which){
_4c=_4b.which;
}
}
return _4c;
}
function findDefaultCmd(_4d){
var _4e=findElementsEndingWithId(null,"defaultCmd",null,true);
if(_4e.length>0){
return _4e[0];
}
return null;
}
function clearInputTime(_4f){
var _50=findElementsEndingWithId(null,_4f+"-h",null,true);
if(_50.length>0){
_50[0].value="--";
}
var _50=findElementsEndingWithId(null,_4f+"-m",null,true);
if(_50.length>0){
_50[0].value="--";
}
var _50=findElementsEndingWithId(null,_4f+"-a",null,true);
if(_50.length>0){
_50[0].value="--";
}
return false;
}
function clearInputDate(_51){
var _52=findCalendarByID(_51);
if(_52!=null){
document.jsfForm()[_52.hiddenFieldID].value="emptied";
showInputDateIfEmptyFacet(_51);
}
return false;
}
function getInputDateDate(_53){
var _54=findCalendarByID(_53);
if(_54!=null&&document.jsfForm()[_54.hiddenFieldID].value.length>0){
return parseDate(document.jsfForm()[_54.hiddenFieldID].value,_54.ifFormat,new Object());
}
return null;
}
function setInputDateDate(_55,_56){
var _57=findCalendarByID(_55);
if(_57!=null){
document.jsfForm()[_57.hiddenFieldID].value=_56.print(_57.ifFormat);
window.document.getElementById(_57.spanID).innerHTML=_56.print(_57.daFormat);
}
}
function getElementIntValue(_58){
var _59=null;
var _5a=findElementsEndingWithId(null,_58,null,true);
if(_5a.length>0){
_59=_5a[0];
}else{
return -1;
}
if(_59.tagName=="INPUT"){
return parseInt(_59.value);
}
return parseInt(_59.innerHTML);
}
function manageTableSelCount(_5b,_5c,_5d,_5e){
_5b=(_5b)?_5b:window.event;
var src=getEventElement(_5b);
if(src.tagName!="INPUT"||src.type!="checkbox"){
return;
}
var _60=null;
var _61=null;
var _62=null;
if(_5c!=null){
elements=findElementsEndingWithId(null,_5c,null,true);
if(elements.length>0){
_61=elements[0];
}
}
if(_5d!=null){
elements=findElementsEndingWithId(null,_5d,null,true);
if(elements.length>0){
_62=elements[0];
}
}
elements=findElementsEndingWithId(null,_5e,null,true);
if(elements.length>0){
_60=elements[0];
}
var _63=findParentOfType(src,"THEAD");
if(_63!=null){
if(src.type=="checkbox"){
if(src.checked){
if(_61!=null&&_62!=null){
_62.innerHTML=_61.value;
}
_60.value="3";
}else{
if(_62!=null){
_62.innerHTML="0";
}
_60.value="2";
}
formCheckAll(src);
}
}else{
if(_62!=null){
var _64=findParentOfType(src,"TBODY");
if(_64!=null&&src.type=="checkbox"){
var _65=parseInt(_62.innerHTML);
_65=src.checked?_65+1:_65-1;
_62.innerHTML=_65.toString();
formSyncCheckAll2(src,true);
}
}
}
}
function clearQuickFinder(_66){
var qf=window.document.getElementById(_66);
if(qf){
qf.value="";
qf.fireEvent("onchange");
}
}
function activateQuickFinderValidation(_68){
var _69=window.document.getElementById(_68+".disValid");
if(_69.length>0){
var _6a=_69[0];
_6a.value="false";
}
}
function reloadWindow(){
window.location.reload(true);
}
function getTableSelectionCount(_6b){
var _6c=findElementsEndingWithId(null,_6b,null,true)[0];
var _6d=window.document.getElementById(_6c.id+"._selCount");
return parseInt(_6d.value);
}
function disableCommand(_6e,_6f){
var _70=findElementsEndingWithId(null,_6e,null,true)[0];
disableCommandButton(_70.id,2,false,_6f);
}
function disableActionBar(_71,_72){
var _73=findElementsEndingWithId(null,_71,null,true)[0];
disableCommandButton(_73.id,3,false,_72);
}
function inputRichTextInsertHtml(_74,_75){
var _76=findElementsEndingWithId(null,_74,null,true)[0];
EditorUtils.insertHtmlText(_76.id,_75);
}
function getHelpPane(_77){
var _78=findElementsEndingWithId(null,_77,null,true);
if(_78!=null&&_78.length>0){
return _78[0];
}
return null;
}
function displayHelp(_79,_7a,_7b){
if(_7a!=null){
if(_7b==null){
_7b="inline";
}
var _7c=getHelpPane(_7a);
if(_7c!=null){
_7c.style.display=_7b;
_7c.style.visibility="";
}
}
activateHelpContext(_79);
return false;
}
function hideHelp(_7d){
var _7e=getHelpPane(_7d);
if(_7e!=null){
_7e.style.display="none";
_7e.style.visibility="hidden";
}
return false;
}
function popupHelpWindow(_7f,_80){
helpWindow=_7f();
if(_80!=null){
getHelpPane(_80);
helpIFrameDiv=findElementsEndingWithId(null,"iframe",null,true)[0];
if(helpIFrameDiv!=null){
if(helpIFrameDiv.childNodes){
var _81=helpIFrameDiv.childNodes[0];
helpWindow.location=_81.src;
}
}
hideHelp(_80);
}
return false;
}
function isRichTextWithId(_82,pId){
return _82.id.endsWith(pId+"___Frame");
}
function createIFrame(_84,pId,_86,_87,_88,_89,_8a,_8b){
try{
var _8c=document.createElement("iframe");
_8c.className=_8b;
_8c.setAttribute("id","pId");
_8c.style.width=_88;
_8c.style.height=_89;
_8c.title=_87;
_8c.setAttribute("frameBorder",_8a);
_8c.src=_86;
myIFrame_=findElementsEndingWithId(null,_84,null,true)[0].appendChild(_8c);
if(document.frames){
try{
myIFrame_=document.getElementById(_84)[0].frames[pId];
}
catch(e){
}
}
}
catch(exception){
iframeHTML="<iframe id=\""+pId+"\" title=\"\" style=\"";
iframeHTML+="border:"+_8a+";";
iframeHTML+="width:"+_88+";";
iframeHTML+="height:"+_89+";";
iframeHTML+="\"></iframe>";
document.body.innerHTML+=iframeHTML;
myIFrame_={};
myIFrame_.document={};
myIFrame_.document.location={};
myIFrame_.document.location.iframe=document.getElementById(pId);
myIFrame_.document.location.replace=function(_8d){
this.iframe.src=_8d;
};
}
}
var BalloonComponent={changeContent:function(_8e,_8f){
BalloonRenderer.contentReady(_8e,_8f);
}};
function BalloonAjaxHandler(){
}
BalloonAjaxHandler.prototype.onInit=function(){
};
BalloonAjaxHandler.prototype.onError=function(_90,_91){
};
BalloonAjaxHandler.prototype.onProgress=function(_92,_93){
};
BalloonAjaxHandler.prototype.onLoad=function(xml){
var _95=AjaxActionComponent.getContentElement(xml);
var _96=AjaxActionComponent.getCallerContextComponentId(xml);
var _97=ElementUtils.cloneItem(_95);
BalloonComponent.changeContent(_96,_97);
};
var AjaxActionComponent={getContentElement:function(_98){
return _98.getElementsByTagName("content")[0].firstChild;
},getCallerContextElement:function(_99){
return _99.getElementsByTagName("callerContext")[0];
},getCallerContextComponentId:function(_9a){
return this.getCallerContextElement(_9a).getElementsByTagName("componentId")[0].firstChild.nodeValue;
}};
var AKCore={messagesResGroupId_:-1,mainFlexControlId_:null,_hasFocus:false,adaptExternalLinks:function(){
var _9b=document.jsfForm();
if(!_9b.getElementsByTagName){
return;
}
var _9c=_9b.getElementsByTagName("a");
for(var i=0;i<_9c.length;i++){
var _9e=_9c[i];
if(_9e.getAttribute("href")&&_9e.getAttribute("rel")=="external"){
_9e.target="_blank";
}
}
}};
var contextPath_;
var tocPage_;
var buildVersion_;
var useVerStatFiles_;
var msgSenderIFrame_;
var sessionAboutToEndWindow_;
var sessionEndedWindow_;
var sessionBeaconBeatID_=-1;
var sessionWarningID_=-1;
var sessionTimeoutID_=-1;
var sessionTimeoutInterval;
var sessionWarningInterval;
var beaconBeatInterval;
var sessionExpired=false;
var currentCmd=null;
var currentModal;
var elementWithWaitCursor;
var waitingWindows_=[];
var waitCursorTimeout_=2000;
var leavingDomain_=true;
function WaitingWindow(_9f,_a0,_a1,_a2,_a3){
this.commandId=_9f;
this.url=_a0;
this.delay=_a1;
this.withCancel=_a2;
this.disabled=_a3;
waitingWindows_.push(this);
}
function findWaitingWindow(_a4){
var ww=null;
if(_a4){
for(i=0;ww==null&&i<waitingWindows_.length;i++){
if(_a4.lastIndexOf(waitingWindows_[i].commandId)!=-1){
ww=waitingWindows_[i];
}
}
}
for(i=0;ww==null&&i<waitingWindows_.length;i++){
if(waitingWindows_[i].commandId=="-1"){
ww=waitingWindows_[i];
}
}
if(ww&&ww.disabled){
ww=null;
}
return ww;
}
function show(pId,_a7){
var _a8=document.getElementById(pId);
if(_a8){
_a8.style.visibility="visible";
if(_a7){
_a8.style.display="block";
}
}
}
function hide(pId,_aa){
var _ab=document.getElementById(pId);
if(_ab){
_ab.style.visibility="hidden";
if(_aa){
_ab.style.display="none";
}
}
}
function setFocusOn(){
_hasFocus=true;
}
function setFocusOff(){
_hasFocus=false;
}
function addEvent(el,_ad,_ae){
if(el.attachEvent){
el.attachEvent("on"+_ad,_ae);
}else{
if(el.addEventListener){
el.addEventListener(_ad,_ae,true);
}else{
el["on"+_ad]=_ae;
}
}
}
function addEventByEndingID(id,_b0,_b1){
var _b2=findElementsEndingWithId(null,id,null,false);
for(i=0;i<_b2.length;i++){
addEvent(_b2[i],_b0,_b1);
}
}
function removeEvent(el,_b4,_b5){
if(el.detachEvent){
el.detachEvent("on"+_b4,_b5);
}else{
if(el.removeEventListener){
el.removeEventListener(_b4,_b5,true);
}else{
el["on"+_b4]=null;
}
}
}
function hasClass(el,_b7){
if(!(el&&el.className)){
return false;
}
var cls=el.className.split(" ");
for(var i=cls.length;i>0;){
if(cls[--i]==_b7){
return true;
}
}
return false;
}
function removeClass(el,_bb){
if(!(el&&el.className)){
return;
}
var cls=el.className.split(" ");
var ar=[];
for(var i=cls.length;i>0;){
if(cls[--i]!=_bb){
ar[ar.length]=cls[i];
}
}
el.className=ar.join(" ");
}
function addClass(el,_c0){
if(!el){
return;
}
if(!el.className){
el.className=_c0;
return;
}
var cls=el.className.split(" ");
var ar=[];
for(var i=cls.length;i>0;){
if(cls[--i]!=_c0){
ar[ar.length]=cls[i];
}else{
return;
}
}
ar[ar.length]=_c0;
el.className=ar.join(" ");
}
function addClasses(el,_c5){
if(!el){
return;
}
if(!el.className){
el.className=_c5;
return;
}
var cls=_c5.split(" ");
for(var i=cls.length;i>0;){
if(cls[--i]!=""){
addClass(el,cls[i]);
}
}
}
function addParameter(url,_c9,_ca){
url+=url.indexOf("?")==-1?"?":"&";
url+=_c9+"="+Core.encodeURIComponent(_ca);
return url;
}
function stopSubmit(_cb){
if(_cb.stop){
_cb.stop();
}else{
_cb.document.execCommand("Stop");
}
}
function stdSubmit(_cc,_cd){
if(typeof _cc.onsubmit=="function"){
_cc.onsubmit();
}
manageKeepScrollPos(_cc);
if(_cc["formChanged"]){
checkFormDataChangesOnsubmit(_cc);
}
setWaitCursorForSubmit(_cd);
var ww=findWaitingWindow(_cd);
if(ww){
setTimeout(function(){
openWaitingWindow(ww);
},ww.delay);
}else{
setTimeout(function(){
emptyCmdHF(window);
clearWaitCursorForSubmit(window);
},waitCursorTimeout_);
}
var tz=0;
var now=new Date();
if(now.getTimezoneOffset){
tz=now.getTimezoneOffset();
}
_cc["tz"].value=formatTimezone(tz);
try{
logViewInfo("stdSubmit: pre-submit");
leavingDomain_=false;
_cc.submit(true);
logViewInfo("stdSubmit: post-submit");
}
catch(e){
emptyCmdHF(window);
clearWaitCursorForSubmit(window);
alert(e.description);
}
}
function logViewInfo(_d1){
}
function setWaitCursorForSubmit(_d2){
var _d3=document.getElementById(_d2);
window.document.body.style.cursor="wait";
if(_d3){
elementWithWaitCursor=_d3;
elementWithWaitCursor.style.cursor="wait";
}
}
function clearWaitCursorForSubmit(_d4){
_d4.document.body.style.cursor="default";
if(_d4.elementWithWaitCursor){
_d4.elementWithWaitCursor.style.cursor="pointer";
_d4.elementWithWaitCursor=null;
}
}
function cmdSubmit(_d5,_d6,_d7,_d8,_d9){
if(!isAnEmbeddedDialogOpened()){
var _da=false;
var cmd=document.getElementById(_d6);
if(!cmd||typeof (cmd.disabled)=="undefined"||!cmd.disabled){
var _dc=document.forms[_d5];
currentCmd=_dc["jsfCmdId"].value;
if(currentCmd==null||currentCmd.length==0){
doSubmit=true;
_dc["jsfCmdId"].value=_d6;
if(_d7){
doSubmit=eval(_d7);
}
var _dd=typeof (doSubmit);
if(_dd=="boolean"){
if(doSubmit){
subCmdSubmit(_d5,_d6,_d8);
}else{
_dc["jsfCmdId"].value="";
}
}else{
if(_dd=="object"){
doSubmit.openerHaveActionToExecute=_d9;
doSubmit.onCloseFnc=function(){
_dc["jsfCmdId"].value=_d6;
subCmdSubmit(_d5,_d6,_d8);
};
_dc["jsfCmdId"].value="";
}else{
currentCmd=null;
}
}
}
}
}
}
function subCmdSubmit(_de,_df,_e0){
var _e1=document.forms[_de];
_e1["jsfCmdId"].value=_df;
_e1["jsfCmdParams"].value=_e0||"";
stdSubmit(_e1,_df);
}
function manageKeepScrollPos(_e2){
if(_e2["akPBXOffset"]&&_e2["akPBYOffset"]){
var _e3=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;
_e2["akPBXOffset"].value=document.all?_e3.scrollLeft:window.pageXOffset;
_e2["akPBYOffset"].value=document.all?_e3.scrollTop:window.pageYOffset;
}
}
function restoreScrollPos(x,y){
window.scrollTo(x,y);
}
function emptyCmdHF(_e6){
var _e7=_e6.document.jsfForm();
if(_e7&&_e7["jsfCmdId"]){
_e7["jsfCmdId"].value="";
}
}
function getIFrameDoc(_e8){
if(_e8.contentDocument){
return _e8.contentDocument;
}
if(_e8.contentWindow){
return _e8.contentWindow.document;
}
try{
if(_e8.document){
return _e8.document;
}
}
catch(e){
}
return null;
}
function sendUIMessage2(msg){
if(!document.createElement){
return true;
}
var url=contextPath_+"/UIMessageReceiver.jss?msg="+msg;
if(!msgSenderIFrame_&&document.createElement){
try{
var _eb=document.createElement("iframe");
_eb.setAttribute("id","RSIFrame");
_eb.style.border="0px";
_eb.style.width="0px";
_eb.style.height="0px";
_eb.style.display="none";
_eb.style.visibility="hidden";
_eb.title="";
_eb.src=url;
msgSenderIFrame_=document.body.appendChild(_eb);
if(document.frames){
msgSenderIFrame_=document.frames["RSIFrame"];
}
}
catch(exception){
iframeHTML="<iframe id=\"RSIFrame\" title=\"\" style=\"";
iframeHTML+="border:0px;";
iframeHTML+="width:0px;";
iframeHTML+="height:0px;";
iframeHTML+="display:none;";
iframeHTML+="visibility:hidden;";
iframeHTML+="\"></iframe>";
document.body.innerHTML+=iframeHTML;
msgSenderIFrame_={};
msgSenderIFrame_.document={};
msgSenderIFrame_.document.location={};
msgSenderIFrame_.document.location.iframe=document.getElementById("RSIFrame");
msgSenderIFrame_.document.location.replace=function(_ec){
this.iframe.src=_ec;
};
}
}
if(navigator.userAgent.indexOf("Gecko")!=-1&&!msgSenderIFrame_.contentDocument){
var _ed="sendUIMessage2('"+url+"')";
setTimeout(_ed,10);
return false;
}
var _ee=getIFrameDoc(msgSenderIFrame_);
if(_ee==null){
return true;
}
_ee.location.replace(url);
return false;
}
function openWaitingWindow(pWW){
var _f0=pWW.url;
if(pWW.withCancel){
_f0+="&cancel=1";
}
openModalDialog(_f0,250,100);
}
function openModalDialog(url,_f2,_f3){
var _f4=(new Date()).getSeconds().toString();
var _f5=(screen.width-_f2)/2;
var top=(screen.height-_f3)/2;
var _f7="left="+_f5+",top="+top+",width="+_f2+",height="+_f3+",center=yes,resizable=yes,scroll=yes,help=no,status=no";
logViewInfo("openModalDialog: pre-window.open");
currentModal=window.open(url,_f4,_f7);
if(currentModal){
currentModal.focus();
}
logViewInfo("openModalDialog: post-window.open");
}
function checkModal(){
setTimeout("finishChecking()",50);
return true;
}
function finishChecking(){
if(currentModal&&!currentModal.closed){
currentModal.focus();
}
}
function installSessionBeacon(_f8,_f9,_fa){
sessionTimeoutInterval=_f8;
sessionWarningInterval=_f9;
beaconBeatInterval=_fa;
initSessionBeacon();
}
function reviveSession(_fb){
sendUIMessage2("sessionBeaconBeat");
resetSessionBeacon();
}
function resetSessionBeacon(){
sessionAboutToEndWindow_=null;
sessionEndedWindow=null;
initSessionBeacon();
}
function initSessionBeacon(){
var _fc=false;
try{
_fc=window.frameElement;
}
catch(e){
_fc=false;
}
if(!_fc){
if(sessionBeaconBeatID_!=-1){
window.clearTimeout(sessionBeaconBeatID_);
}
if(sessionWarningID_!=-1){
window.clearTimeout(sessionWarningID_);
}
if(sessionTimeoutID_!=-1){
window.clearTimeout(sessionTimeoutID_);
}
if(beaconBeatInterval>0){
sessionBeaconBeatID_=setInterval("sendUIMessage2('sessionBeaconBeat')",beaconBeatInterval);
}
if(sessionWarningInterval>0){
sessionWarningID_=setTimeout("manageSessionWarning()",sessionWarningInterval);
}
if(sessionTimeoutInterval>0){
sessionTimeoutID_=setTimeout("manageSessionTimeout()",sessionTimeoutInterval);
}
}
}
function invalidateSession(){
logViewInfo("invalidateSession");
if(!sessionExpired){
window.clearTimeout(sessionWarningID_);
window.clearTimeout(sessionTimeoutID_);
window.clearTimeout(sessionBeaconBeatID_);
sendUIMessage2("invalidateSession");
sessionAboutToEndWindow_=null;
sessionExpired=true;
}
}
function manageSessionWarning(){
if(!sessionExpired){
if(AKCore.mainFlexControlId_!=null){
var _fd=document.getElementById(AKCore.mainFlexControlId_);
if(_fd){
_fd.popupSessionWarning(sessionTimeoutInterval,sessionWarningInterval);
if(typeof _hasFocus!="undefined"&&!_hasFocus){
var _fe=(screen.width-400)/2;
var _ff=(screen.height-200)/2;
var a=window.open(contextPath_+"/akira/pub/offFocusBeaconAlert.jsp?alertClientId=sessionWarningModal"+"&formId="+document.jsfForm().id+"&msgResGroupId="+messagesResGroupId_,"","top="+_ff+",left="+_fe+",width=400,height=200,directories=no,location=no,menubar=no,toolbar=no,resizable=no,scrollbars=no,status=yes,center=yes;");
a.focus();
}
}
}else{
var _101=findAlert("sessionWarning");
if(!_101){
_101=createAlert("sessionWarning","","","warning",null);
_101.addCommand("?ok?","okBtn",reviveSession);
}
theAlert2=findAlert("sessionWarningModal");
if(!theAlert2){
theAlert2=createAlert("sessionWarningModal","warning",null);
}
var sUrl=contextPath_+"/akira/pub/session/sessionWarning.jsf";
sUrl+="?formId="+document.jsfForm().id;
sUrl+="&msgResGroupId="+messagesResGroupId_;
showEmbeddedAlert(sUrl,window,_101,null);
sessionAboutToEndWindow_=window;
}
}
}
function manageSessionTimeout(){
if(!sessionExpired){
if(AKCore.mainFlexControlId_!=null){
var _103=document.getElementById(AKCore.mainFlexControlId_);
if(_103){
_103.popupSessionTimeout(sessionTimeoutInterval,sessionWarningInterval);
invalidateSession();
}
}else{
var _104=createAlert("sessionExpired","","","info",null);
_104.addCommand("?ok?","okBtn",gotoTOC);
var sUrl=contextPath_+"/akira/pub/session/sessionTimeout.jsf";
sUrl+="?formId="+document.jsfForm().id;
sUrl+="&msgResGroupId="+messagesResGroupId_;
theAlert2=findAlert("sessionExpiredModal");
if(!theAlert2){
theAlert2=createAlert("sessionExpiredModal","","","warning",null);
}
showEmbeddedAlert(sUrl,window,_104,invalidateSession);
sessionEndedWindow_=window;
}
}
}
function flexSessionWarningClosed(){
reviveSession();
}
function flexSessionTimeoutClosed(){
gotoTOC();
}
function recordUserActivity(){
initSessionBeacon();
}
function gotoTOC(){
var url;
if(sessionTimeoutUrl_){
var _107=sessionTimeoutUrl_.substring(0,4).toUpperCase();
if(_107=="HTTP"){
url=sessionTimeoutUrl_;
}else{
url=contextPath_+sessionTimeoutUrl_;
}
}else{
url=tocPage_||contextPath_+"/index.jsp";
}
gotoUrl(url);
}
function gotoUrl(url){
if(sessionEndedWindow_){
if(sessionEndedWindow_.dialogArguments){
sessionEndedWindow_.dialogArguments.location=url;
}else{
sessionEndedWindow_.location=url;
}
}else{
window.location=url;
}
}
function installCoreRequiredEvents(){
emptyCmdHF(window);
addEvent(window,"focus",checkModal);
addEvent(window.document.body,"click",checkModal);
addEvent(window,"unload",onUnload);
AKCore.adaptExternalLinks();
logViewInfo("load");
}
function onUnload(_109){
logViewInfo("unload");
if(_109.clientX&&_109.clientY){
if(_109.clientX<0&&_109.clientY<0){
invalidateSession();
}
}
var _10a=document.jsfForm();
if(_10a&&_10a["akPBISWLD"]&&!_10a["akPBISWLD"].dontcheckdomain&&leavingDomain_){
invalidateSession();
}
}
function formatTimezone(_10b){
var tz="GMT"+(_10b<=0?"+":"-");
var _10d=Math.abs(_10b);
var _10e=_10d%60;
var _10f=(_10d-_10e)/60;
if(_10f<10){
_10f="0"+_10f;
}
if(_10e<10){
_10e="0"+_10e;
}
return tz+_10f+":"+_10e;
}
var expanders_=[];
var expandersGroups_=[];
var expandersGroupsByExpanders_=[];
function ExpanderGroup(pId){
this.id=pId;
this.expandersIds=[];
this.firstClickDone=false;
}
function addExpanderToGroup(_111,_112){
var _113=expandersGroups_[_111];
if(_113==null){
_113=new ExpanderGroup(_111);
expandersGroups_[_111]=_113;
}
_113.expandersIds[_113.expandersIds.length]=_112;
expandersGroupsByExpanders_[_112]=_113;
}
function Expander(pId,_115,_116,_117,_118,_119,_11a,_11b,_11c,_11d){
this.id=pId;
this.expandedId=_115;
this.expandedContentId=_116;
this.collapsedId=_117;
this.formId=_118;
this.forId=_119;
this.expandedValue=_11a;
this.collapsedValue=_11b;
this.stateValue=_11c;
this.expandedDisplayStyle=_11d;
this.expandedContentDisplayStyle=_11d;
if(this.forId){
this.expandedForDisplayStyle=_11d;
}
}
function addExpander(pId,_11f,_120,_121,_122,_123,_124,_125,_126,_127){
var _128=new Expander(pId,_11f,_120,_121,_122,_123,_124,_125,_126,_127);
expanders_[pId]=_128;
}
function expand(pId,_12a){
var _12b=expanders_[pId];
var _12c=expandersGroupsByExpanders_[pId];
if(_12c==null||_12a==true){
document.forms[_12b.formId][_12b.id].value=_12b.expandedValue;
show(_12b.expandedId,true);
document.getElementById(_12b.expandedId).style.cssText=_12b.expandedDisplayStyle;
show(_12b.expandedContentId,true);
document.getElementById(_12b.expandedContentId).style.cssText=_12b.expandedContentDisplayStyle;
if(_12b.forId){
show(_12b.forId,true);
document.getElementById(_12b.forId).style.cssText=_12b.expandedForDisplayStyle;
}
hide(_12b.collapsedId,true);
_12b.stateValue=_12b.expandedValue;
}
}
function collapse(pId,_12e){
var _12f=expanders_[pId];
var _130=expandersGroupsByExpanders_[pId];
if(_130==null||_12e==true){
var _12f=expanders_[pId];
document.forms[_12f.formId][_12f.id].value=_12f.collapsedValue;
hide(_12f.expandedId,true);
hide(_12f.expandedContentId,true);
if(_12f.forId){
hide(_12f.forId,true);
}
show(_12f.collapsedId,true);
document.getElementById(_12f.collapsedId).style.cssText=_12f.expandedDisplayStyle;
_12f.stateValue=_12f.collapsedValue;
}
}
function selectExpanderGroupSection(_131,_132){
var _133=expandersGroups_[_131];
var _134=expanders_[_132];
if(_133.expandersIds.length==2){
for(i=0;i<_133.expandersIds.length;i++){
var _135=expanders_[_133.expandersIds[i]];
if(_135.stateValue==_135.expandedValue){
collapse(_135.id,true);
}else{
expand(_135.id,true);
}
}
}else{
if(_134.stateValue==_134.collapsedValue||!_133.firstClickDone){
_133.firstClickDone=true;
expand(_134.id,true);
for(i=0;i<_133.expandersIds.length;i++){
var _135=expanders_[_133.expandersIds[i]];
if(_135.id!=_132){
if(_135.stateValue==_135.expandedValue){
collapse(_135.id,true);
}
}
}
}
}
}
function leftTrim(_136){
while(_136.substring(0,1)==" "){
_136=_136.substring(1,_136.length);
}
return _136;
}
function rightTrim(_137){
while(_137.substring(_137.length-1,_137.length)==" "){
_137=_137.substring(0,_137.length-1);
}
return _137;
}
function trimAll(_138){
_138=leftTrim(_138);
_138=rightTrim(_138);
return _138;
}
function computeWindowOffsetLeft(_139){
var _13a=0;
var _13b=_139;
while(typeof (_13b.parentNode)!="undefined"&&_13b.parentNode){
var _13b=_13b.parentNode;
if(typeof (_13b.offsetLeft)!="undefined"){
_13a+=_13b.offsetLeft;
}
}
return _13a+_139.offsetLeft;
}
function computeWindowOffsetTop(_13c){
var _13d=0;
var _13e=_13c;
while(typeof (_13e.parentNode)!="undefined"&&_13e.parentNode){
var _13e=_13e.parentNode;
if(typeof (_13e.offsetLeft)!="undefined"){
_13d+=_13e.offsetTop;
}
}
return _13d+_13c.offsetTop;
}
var Core={hideShowCovered:function(_13f){
var _140=function(){
function getVisib(obj){
var _142=obj.style.visibility;
if(!_142){
if(document.defaultView&&typeof (document.defaultView.getComputedStyle)=="function"){
if(!AgentUtils.is_khtml){
_142=document.defaultView.getComputedStyle(obj,"").getPropertyValue("visibility");
}else{
_142="";
}
}else{
if(obj.currentStyle){
_142=obj.currentStyle.visibility;
}else{
_142="";
}
}
}
return _142;
}
var tags=new Array("applet","iframe","select");
var el=self.element;
var EX1=0;
var EX2=0;
var EY1=0;
var EY2=0;
if(getVisib(_13f)!="hidden"){
var p=HTMLUtils.getAbsolutePosition(_13f);
EX1=p.x;
EX2=_13f.offsetWidth+EX1;
EY1=p.y;
EY2=_13f.offsetHeight+EY1;
}
for(var k=tags.length;k>0;){
var ar=document.getElementsByTagName(tags[--k]);
var cc=null;
for(var i=ar.length;i>0;){
cc=ar[--i];
p=HTMLUtils.getAbsolutePosition(cc);
var CX1=p.x;
var CX2=cc.offsetWidth+CX1;
var CY1=p.y;
var CY2=cc.offsetHeight+CY1;
if(self.hidden||(CX1>EX2)||(CX2<EX1)||(CY1>EY2)||(CY2<EY1)){
if(!cc.__msh_save_visibility){
cc.__msh_save_visibility=getVisib(cc);
}
cc.style.visibility=cc.__msh_save_visibility;
}else{
if(!cc.__msh_save_visibility){
cc.__msh_save_visibility=getVisib(cc);
}
cc.style.visibility="hidden";
}
}
}
};
if(AgentUtils.is_khtml){
setTimeout("continuation_for_the_khtml_browser()",10);
}else{
_140();
}
},encodeURIComponent:function(uri){
return encodeURIComponent(uri);
}};
function CellCoords(_153,pRow,_155,_156,_157){
this.table=_153;
this.groupName=pRow.parentNode.tagName.toLowerCase();
this.row=pRow;
this.cell=_155;
this.rowIndex=_156;
this.columnIndex=_157;
}
var HTMLUtils={NO_BREAK_SPACE:"\xa0",addLabel:function(_158,pId,_15a,_15b){
var el=this.addElement(_158,"label");
if(pId){
el.id=pId;
}
if(_15a){
el.htmlFor=_15a;
}
this.addText(el,_15b);
return el;
},getLabel:function(_15d){
return ElementUtils.getChildElementByTagName(_15d,"LABEL");
},getInput:function(_15e){
return ElementUtils.getChildElementByTagName(_15e,"INPUT");
},ELEMENT_NODE:1,TEXT_NODE:3,addInput:function(_15f,_160,pId,_162){
var el=this.addElement(null,"input");
el.setAttribute("type",_160||"text");
if(pId){
el.setAttribute("id",pId);
}
el.setAttribute("value",_162);
if(_15f){
_15f.appendChild(el);
}
return el;
},addTextArea:function(_164,pId,_166,_167,_168){
var el=this.addElement(null,"textarea");
if(pId){
el.setAttribute("id",pId);
}
el.setAttribute("value",_168);
el.setAttribute("rows",_166);
el.setAttribute("cols",_167);
if(_164){
_164.appendChild(el);
}
return el;
},addSelect:function(_16a,pId,_16c,_16d){
var el=this.addElement(null,"select");
if(pId){
el.setAttribute("id",pId);
}
el.setAttribute("size",""+_16c);
if(_16d){
el.setAttribute("multiple","multiple");
}
if(_16a){
_16a.appendChild(el);
}
return el;
},addSelectOption:function(_16f,_170,_171,_172){
var el=this.addElement(null,"option");
el.setAttribute("value",_170);
if(_172){
el.setAttribute("selected","selected");
}
this.addText(el,_171||_170);
if(_16f){
_16f.appendChild(el);
}
return el;
},addFieldSet:function(_174,pId){
var el=this.addElement(null,"fieldset");
if(pId){
el.setAttribute("id",pId);
}
if(_174){
_174.appendChild(el);
}
return el;
},addLegend:function(_177,_178){
var el=this.addElement(_177,"legend");
if(_178){
this.addText(el,_178);
}
return el;
},addSpan:function(_17a,_17b){
var el=this.addElement(_17a,"span");
if(_17b){
this.addText(el,_17b);
}
return el;
},addDiv:function(_17d,_17e){
var el=this.addElement(_17d,"div");
if(_17e){
this.addText(el,_17e);
}
return el;
},addList:function(_180){
return this.addElement(_180,"ul");
},addListItem:function(_181){
return this.addElement(_181,"li");
},addImg:function(_182,pSrc){
var el=this.addElement(_182,"img");
el.src=pSrc;
return el;
},addAnchor:function(_185,_186){
var el=this.addElement(_185,"a");
el.href=_186;
return el;
},addElement:function(_188,_189){
var el=document.createElement(_189);
if(_188!=null){
_188.appendChild(el);
}
return el;
},addGrid:function(_18b,_18c,_18d){
var _18e=this.addDiv(_18b);
for(var i=0;i<_18c;i++){
var _190=this.addDiv(_18e);
for(var j=0;j<_18d;j++){
cell=this.addSpan(_190);
cell.setAttribute("className",j===0?"cell first-line-cell":"cell");
EventUtils.addEvent(cell,"click",addCellElement,false);
this.addText(cell,"cell "+i+", "+j);
}
}
return _18e;
},addTable:function(_192,_193,_194,_195,_196,_197,_198){
var _199=this.addElement(_192,"table");
_199.summary="";
this._addTableClass(_199,_197,"table");
this._addTableGroup(_199,"thead",_193,_196,_197,_198);
this._addTableGroup(_199,"tfoot",_194,_196,_197,_198);
this._addTableGroup(_199,"tbody",_195,_196,_197,_198);
return _199;
},_addTableClass:function(_19a,_19b,_19c){
if(_19b&&_19b[_19c]){
var val=_19b[_19c];
if(typeof val=="function"){
val=val(_19a);
}
if(val){
StyleUtils.addClasses(_19a,val);
}
}
},_addTableGroup:function(_19e,_19f,_1a0,_1a1,_1a2,_1a3){
if(_1a0>0){
var _1a4=_19f=="thead"?"th":"td";
var _1a5=this.addElement(_19e,_19f);
this._addTableClass(_1a5,_1a2,_19f);
for(var _1a6=0;_1a6<_1a0;_1a6++){
var row=this.addElement(_1a5,"tr");
this._addTableClass(row,_1a2,_1a6%2===0?"trEven":"trOdd");
for(var _1a8=0;_1a8<_1a1;_1a8++){
var cell=this.addElement(row,_1a4);
this._addTableClass(cell,_1a2,_1a4);
if(_1a3){
_1a3(_19e,_19f,_1a6,_1a8,cell);
}
}
}
}
},addTableRow:function(_1aa,_1ab,_1ac,_1ad){
return this._addTableRow(_1aa,"tbody",_1ab,_1ac,_1ad);
},_addTableRow:function(_1ae,_1af,_1b0,_1b1,_1b2){
var _1b3=ElementUtils.getChildElementByTagName(_1ae,_1af.toUpperCase());
if(!_1b3){
return null;
}
var _1b4=_1af=="thead"?"th":"td";
var _1b5=_1b3.firstChild;
var _1b6=0;
var _1b7=null;
while(_1b5){
if(ElementUtils.isElement(_1b5,"TR")){
if(_1b6==_1b0){
_1b7=_1b5;
break;
}
_1b6++;
}
_1b5=_1b5.nextSibling;
}
var row=this.addElement(null,"tr");
if(_1b7){
_1b3.insertBefore(row,_1b7);
}else{
_1b3.appendChild(row);
}
for(var _1b9=0;_1b9<_1b1;_1b9++){
var cell=this.addElement(row,_1b4);
if(_1b2){
_1b2(_1ae,_1af,_1b0,_1b9,cell);
}
}
return row;
},removeTableRow:function(_1bb,_1bc){
this._removeTableRow(_1bb,"tbody",_1bc);
},_removeTableRow:function(_1bd,_1be,_1bf){
var _1c0=ElementUtils.getChildElementByTagName(_1bd,_1be.toUpperCase());
if(!_1c0){
return;
}
var _1c1=_1c0.firstChild;
var _1c2=0;
var row=null;
while(_1c1&&_1c2<=_1bf){
if(ElementUtils.isElement(_1c1,"TR")){
row=_1c1;
_1c2++;
}
_1c1=_1c1.nextSibling;
}
if(row){
_1c0.removeChild(row);
}
},addTableColumn:function(_1c4,_1c5,_1c6){
this._addTableColumn(_1c4,"thead",_1c5,_1c6);
this._addTableColumn(_1c4,"tfoot",_1c5,_1c6);
this._addTableColumn(_1c4,"tbody",_1c5,_1c6);
},_addTableColumn:function(_1c7,_1c8,_1c9,_1ca){
var _1cb=ElementUtils.getChildElementByTagName(_1c7,_1c8.toUpperCase());
if(!_1cb){
return;
}
var _1cc=_1c8=="thead"?"th":"td";
var _1cd=_1cc.toUpperCase();
var _1ce=_1cb.firstChild;
var _1cf=0;
while(_1ce){
if(ElementUtils.isElement(_1ce,"TR")){
var row=_1ce;
var cell;
if(_1cc=="th"&&row.cells.length==1){
cell=row.cells[0];
cell.colSpan=(cell.colSpan||1)+1;
}else{
var _1d2=row.firstChild;
var _1d3=0;
var _1d4=null;
while(_1d2){
if(ElementUtils.isElement(_1d2,_1cd)){
if(_1d3==_1c9){
_1d4=_1d2;
break;
}
var _1d5=_1d2.colSpan||1;
_1d3+=_1d5;
}
_1d2=_1d2.nextSibling;
}
cell=this.addElement(null,_1cc);
if(_1d4){
row.insertBefore(cell,_1d4);
}else{
row.appendChild(cell);
}
if(_1ca){
_1ca(_1c7,_1c8,_1cf,_1c9,cell);
}
}
}
_1ce=_1ce.nextSibling;
_1cf++;
}
},removeTableColumn:function(_1d6,_1d7){
this._removeTableColumn(_1d6,"thead",_1d7);
this._removeTableColumn(_1d6,"tfoot",_1d7);
this._removeTableColumn(_1d6,"tbody",_1d7);
},_removeTableColumn:function(_1d8,_1d9,_1da){
var _1db=ElementUtils.getChildElementByTagName(_1d8,_1d9.toUpperCase());
if(!_1db){
return;
}
var _1dc=_1d9=="thead"?"th":"td";
var _1dd=_1dc.toUpperCase();
var _1de=_1db.firstChild;
while(_1de){
if(ElementUtils.isElement(_1de,"TR")){
var row=_1de;
var _1e0=row.firstChild;
var _1e1=0;
var cell=null;
while(_1e0&&_1e1<=_1da){
if(ElementUtils.isElement(_1e0,_1dd)){
cell=_1e0;
_1e1+=_1e0.colSpan||1;
}
_1e0=_1e0.nextSibling;
}
if(cell){
var _1e3=cell.colSpan||1;
if(_1e3==1){
row.removeChild(cell);
}else{
cell.colSpan=_1e3-1;
}
}
}
_1de=_1de.nextSibling;
}
},spanTableCells:function(_1e4,_1e5,_1e6,_1e7,_1e8,_1e9){
return this._spanTableCells(_1e4,"tbody",_1e5,_1e6,_1e7,_1e8,_1e9);
},_spanTableCells:function(_1ea,_1eb,_1ec,_1ed,_1ee,_1ef,_1f0){
var cell=this._getTableGroupCell(_1ea,_1eb,_1ec,_1ed);
if(_1ee!==0){
var _1f2=cell.rowSpan||1;
_1f2+=_1ee;
if(_1f2>0){
cell.rowSpan=_1f2;
}
if(_1ee>0){
var _1f3=_1ec+_1f2;
for(var n=_1ee;n-->0;){
var row=_1ea.rows[--_1f3];
var _1f6=row.cells[_1ed];
row.removeChild(_1f6);
}
}else{
var _1f3=_1ec+_1f2;
for(var n=_1ee;n++<0;){
var row=_1ea.rows[_1f3++];
var _1f7=row.insertCell(_1ed);
if(_1f0){
_1f0(_1ea,_1eb,_1f3,_1ed,_1f7);
}
}
}
}
if(_1ef!=0){
var _1f8=cell.colSpan||1;
_1f8+=_1ef;
if(_1f8>0){
cell.colSpan=_1f8;
}
var row=cell.parentNode;
if(_1ef>0){
for(var n=_1ef;n-->0;){
var _1f9=cell.nextSibling;
row.removeChild(_1f9);
}
}else{
var _1fa=_1ed;
for(var n=_1ef;n++<0;){
var _1f7=row.insertCell(++_1fa);
if(_1f0){
_1f0(_1ea,_1eb,_1ec,_1fa,_1f7);
}
}
}
}
},getTableCell:function(_1fb,_1fc,_1fd){
return this._getTableGroupCell(_1fb,"tbody",_1fc,_1fd);
},getTableHeaderCell:function(_1fe,_1ff,_200){
return this._getTableGroupCell(_1fe,"thead",_1ff,_200);
},getTableGroupCell:function(_201,_202,_203,_204){
return this._getGroupTableCell(_201,_202,_203,_204);
},_getTableGroupCell:function(_205,_206,_207,_208){
var _209=ElementUtils.getChildElementByTagName(_205,_206.toUpperCase());
if(!_209){
return;
}
var _20a=_209.firstChild;
var _20b=0;
var row=null;
while(_20a&&_20b<=_207){
if(ElementUtils.isElement(_20a,"TR")){
row=_20a;
_20b++;
}
_20a=_20a.nextSibling;
}
if(!row){
return null;
}
var _20d=_206=="thead"?"TH":"TD";
var _20e=row.firstChild;
var _20f=0;
var cell=null;
while(_20e&&_20f<=_208){
if(ElementUtils.isElement(_20e,_20d)){
cell=_20e;
_20f++;
}
_20e=_20e.nextSibling;
}
return cell;
},isEmptyTableCell:function(_211){
return (_211&&_211.firstChild)==null;
},getTableCellCoords:function(_212){
var row=_212.parentNode;
var _214=row&&row.parentNode;
var _215=_214&&_214.tagName=="THEAD"?"TH":"TD";
var _216=_214&&_214.parentNode;
if(!ElementUtils.isElement(_216,"TABLE")){
return null;
}
var _217=_214.firstChild;
var _218=0;
while(_217){
if(ElementUtils.isElement(_217,"TR")){
if(row==_217){
break;
}
_218++;
}
_217=_217.nextSibling;
}
var _219=row.firstChild;
var _21a=0;
while(_219){
if(ElementUtils.isElement(_219,_215)){
if(_212==_219){
break;
}
_21a++;
}
_219=_219.nextSibling;
}
return new CellCoords(_216,row,_212,_218,_21a);
},getTableOfCell:function(_21b){
var row=_21b.parentNode;
var _21d=row.parentNode;
return _21d.parentNode;
},getTableNbRows:function(_21e){
return this._getTableNbRows(_21e,"tbody");
},_getTableNbRows:function(_21f,_220){
var _221=ElementUtils.getChildElementByTagName(_21f,_220.toUpperCase());
if(!_221){
return 0;
}
var _222=_221.firstChild;
var _223=0;
while(_222){
if(ElementUtils.isElement(_222,"TR")){
_223++;
}
_222=_222.nextSibling;
}
return _223;
},getTableNbColumns:function(_224){
return this._getTableNbColumns(_224,"tbody");
},_getTableNbColumns:function(_225,_226){
var _227=_226=="thead"?"TH":"TD";
var _228=ElementUtils.getChildElementByTagName(_225,_226.toUpperCase());
if(!_228){
return 0;
}
var _229=_228.firstChild;
var _22a=0;
while(_229){
var _22b=0;
if(ElementUtils.isElement(_229,"TR")){
var _22c=_229.firstChild;
while(_22c){
if(ElementUtils.isElement(_22c,_227)){
_22b+=_22c.colSpan||1;
}
_22c=_22c.nextSibling;
}
}
_229=_229.nextSibling;
_22a=Math.max(_22b,_22a);
}
return _22a;
},forEachTableCells:function(_22d,_22e){
this._forEachTableCells(_22d,"thead",_22e);
this._forEachTableCells(_22d,"tfoot",_22e);
this._forEachTableCells(_22d,"tbody",_22e);
},_forEachTableCells:function(_22f,_230,_231){
var _232=ElementUtils.getChildElementByTagName(_22f,_230.toUpperCase());
if(!_232){
return;
}
var _233=_230=="thead"?"TH":"TD";
var _234=_232.firstChild;
var _235=0;
while(_234){
if(ElementUtils.isElement(_234,"TR")){
var row=_234;
var _237=row.firstChild;
var _238=0;
while(_237){
if(ElementUtils.isElement(_237,_233)){
var cell=_237;
_231(_22f,_230,_235,_238,cell);
_238++;
}
_237=_237.nextSibling;
}
_235++;
}
_234=_234.nextSibling;
}
},forEachTableRowCells:function(_23a,_23b,_23c){
this._forEachTableRowCells(_23a,"tbody",_23b,_23c);
},_forEachTableRowCells:function(_23d,_23e,_23f,_240){
var _241=ElementUtils.getChildElementByTagName(_23d,_23e.toUpperCase());
if(!_241){
return;
}
var _242=_23e=="thead"?"TH":"TD";
var _243=_241.firstChild;
var _244=0;
while(_243){
if(ElementUtils.isElement(_243,"TR")){
var row=_243;
if(_244==_23f){
var _246=row.firstChild;
var _247=0;
while(_246){
if(ElementUtils.isElement(_246,_242)){
var cell=_246;
_240(_23d,_23e,_244,_247,cell);
_247++;
}
_246=_246.nextSibling;
}
break;
}
_244++;
}
_243=_243.nextSibling;
}
},forEachTableColumnCells:function(_249,_24a,_24b){
this._forEachTableColumnCells(_249,"tbody",_24a,_24b);
},_forEachTableColumnCells:function(_24c,_24d,_24e,_24f){
var _250=ElementUtils.getChildElementByTagName(_24c,_24d.toUpperCase());
if(!_250){
return;
}
var _251=_24d=="thead"?"TH":"TD";
var _252=_250.firstChild;
var _253=0;
while(_252){
if(ElementUtils.isElement(_252,"TR")){
var row=_252;
var _255=row.firstChild;
var _256=0;
while(_255&&_256<=_24e){
if(ElementUtils.isElement(_255,_251)){
var cell=_255;
if(_256==_24e){
_24f(_24c,_24d,_253,_256,cell);
}
_256++;
}
_255=_255.nextSibling;
}
_253++;
}
_252=_252.nextSibling;
}
},addTableCellsEvent:function(_258,_259,_25a,_25b){
var _25c=_259;
var func=_25a;
var _25e=_25b;
this.forEachTableCells(_258,function(_25f,_260,_261,_262,_263){
EventUtils.addEvent(_263,_25c,func,_25e);
});
},addText:function(_264,_265){
var el=document.createTextNode(_265||"");
if(_264){
_264.appendChild(el);
}
return el;
},replaceText:function(_267,_268){
var el=_267.firstChild;
if(el){
el.replaceData(0,el.length,_268||"");
return el;
}else{
return this.addText(_267,_268);
}
},getHTML:function(_26a){
if(ElementUtils.isElement(_26a,"TEXTAREA")){
return _26a.value;
}else{
return _26a.innerHTML;
}
},setHTML:function(_26b,_26c){
if(ElementUtils.isElement(_26b,"TEXTAREA")){
_26b.value=_26c;
}else{
_26b.innerHTML=_26c||"";
}
},getAbsolutePosition:function(_26d){
var SL=0,ST=0;
var _270=/^div$/i.test(_26d.tagName);
if(_270&&_26d.scrollLeft){
SL=_26d.scrollLeft;
}
if(_270&&_26d.scrollTop){
ST=_26d.scrollTop;
}
var pt={x:_26d.offsetLeft-SL,y:_26d.offsetTop-ST};
if(_26d.offsetParent){
var tmp=HTMLUtils.getAbsolutePosition(_26d.offsetParent);
pt.x+=tmp.x;
pt.y+=tmp.y;
}
return pt;
}};
var EventUtils={addEvent:function(_273,_274,_275,_276){
if(_273.addEventListener){
var _277=_276||false;
_273.addEventListener(_274,_275,_277);
}else{
if(_273.attachEvent){
_273.attachEvent("on"+_274,_275);
}else{
_273["on"+_274]=_275;
}
}
},stopPropagation:function(_278){
_278.cancelBubble=true;
if(_278.stopPropagation){
_278.stopPropagation();
}
},getElement:function(_279){
if(AgentUtils.isIE){
return window.event.srcElement;
}else{
return _279.currentTarget;
}
},getTargetElement:function(_27a){
if(AgentUtils.isIE){
return window.event.srcElement;
}else{
return _27a.target;
}
}};
var ElementUtils={ELEMENT_NODE:1,TEXT_NODE:3,isElement:function(_27b,_27c){
return _27b&&_27b.nodeType==this.ELEMENT_NODE&&_27b.tagName==_27c;
},findElement:function(_27d,_27e){
var nw=Coordinates.northwestOffset(_27d,true);
var se=Coordinates.southeastOffset(_27d,true);
if(_27e.inside(nw,se)){
var _281=_27d.firstChild;
while(_281){
if(_281.nodeType==HTMLUtils.ELEMENT_NODE){
var _282=this.findElement(_281,_27e);
if(_282){
return _282;
}
}
_281=_281.nextSibling;
}
return _27d;
}
return null;
},findTargetElement:function(_283,_284){
var el=this.findElement(_283,_284);
while(el&&!StyleUtils.hasClass(el,"drop-target")){
el=el.parentNode;
}
return el;
},traverse:function(_286,_287){
var _288=_286.firstChild;
while(_288){
if(_288.nodeType==HTMLUtils.ELEMENT_NODE){
_287(_288);
this.traverse(_288,_287);
}
_288=_288.nextSibling;
}
},getElementTextByTagName:function(_289,_28a,_28b){
var _28c=this.getChildElementByTagName(_289,_28a);
if(_28c){
var _28d=this.getElementText(_28c);
if(_28d){
return _28d;
}
}
return _28b?_28b:"";
},getElementBooleanByTagName:function(_28e,_28f,_290){
var _291=this.getChildElementByTagName(_28e,_28f);
if(_291){
var _292=this.getElementText(_291);
if(_292){
_292=_292.toLowerCase();
return _292=="true"||_292=="yes"||_292=="1";
}
}
return _290?_290:false;
},getElementIntByTagName:function(_293,_294,_295){
var _296=this.getChildElementByTagName(_293,_294);
if(_296){
var _297=this.getElementText(_296);
if(_297){
var _298=parseInt(_297);
if(isFinite(_298)){
return _298;
}
}
}
return _295?_295:0;
},getChildElementByTagName:function(_299,_29a){
var _29b=_299&&_299.firstChild;
while(_29b){
if(this.isElement(_29b,_29a)){
return _29b;
}
_29b=_29b.nextSibling;
}
return null;
},getChildrenElementsByTagName:function(_29c,_29d){
var _29e=[];
this._getChildrenElementsByTagNameSub(_29c,_29d,_29e);
return _29e;
},_getChildrenElementsByTagNameSub:function(_29f,_2a0,_2a1){
var _2a2=_29f&&_29f.firstChild;
while(_2a2){
if(this.isElement(_2a2,_2a0)){
_2a1[_2a1.length]=_2a2;
}
this._getChildrenElementsByTagNameSub(_2a2,_2a0,_2a1);
_2a2=_2a2.nextSibling;
}
return _2a1;
},getChildElementByClassName:function(_2a3,_2a4){
var _2a5=_2a3&&_2a3.firstChild;
while(_2a5){
if(StyleUtils.hasClass(_2a5,_2a4)){
return _2a5;
}
_2a5=_2a5.nextSibling;
}
return null;
},getChildrenElementsByClassName:function(_2a6,_2a7){
var _2a8=[];
this._getChildrenElementsByClassNameSub(_2a6,_2a7,_2a8);
return _2a8;
},_getChildrenElementsByClassNameSub:function(_2a9,_2aa,_2ab){
var _2ac=_2a9&&_2a9.firstChild;
while(_2ac){
if(StyleUtils.hasClass(_2ac,_2aa)){
_2ab[_2ab.length]=_2ac;
}
this._getChildrenElementsByClassNameSub(_2ac,_2aa,_2ab);
_2ac=_2ac.nextSibling;
}
return _2ab;
},getElementText:function(_2ad){
var _2ae="";
var _2af=_2ad&&_2ad.firstChild;
while(_2af){
if(_2af.nodeType==this.TEXT_NODE){
if(_2ae){
_2ae+=" ";
}
_2ae+=_2af.nodeValue;
}
_2af=_2af.nextSibling;
}
return _2ae;
},cloneItem:function(_2b0){
if(_2b0.nodeType==this.TEXT_NODE){
return document.createTextNode(_2b0.nodeValue);
}else{
if(_2b0.nodeType==this.ELEMENT_NODE){
var el=document.createElement(_2b0.tagName);
var _2b2=_2b0.attributes;
for(var i=0;i<_2b2.length;i++){
var attr=_2b2.item(i);
if(attr.nodeName=="class"){
StyleUtils.addClasses(el,attr.nodeValue);
}else{
if(attr.nodeName=="style"){
el.style.cssText=attr.nodeValue;
}else{
el.setAttribute(attr.nodeName,attr.nodeValue);
}
}
}
var _2b5=_2b0.firstChild;
for(;_2b5!=null;_2b5=_2b5.nextSibling){
var _2b6=this.cloneItem(_2b5);
if(_2b6!=null){
el.appendChild(_2b6);
}
}
return el;
}
}
return null;
}};
var AgentUtils={isIE:/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent),isIE5:this.isIE&&/msie 5\.0/i.test(navigator.userAgent),isOpera:/opera/i.test(navigator.userAgent),isKhtml:/Konqueror|Safari|KHTML/i.test(navigator.userAgent)};
var StyleUtils={removeClass:function(el,_2b8){
if(!(el&&el.className)){
return;
}
var cls=el.className.split(" ");
var ar=[];
for(var i=cls.length;i>0;){
if(cls[--i]!=_2b8){
ar[ar.length]=cls[i];
}
}
el.className=ar.join(" ");
},addClass:function(el,_2bd){
this.removeClass(el,_2bd);
if(!el.className){
el.className=_2bd;
}else{
el.className+=" "+_2bd;
}
},addClasses:function(el,_2bf){
if(!el){
return;
}
if(!el.className){
el.className=_2bf;
return;
}
var cls=_2bf.split(" ");
for(var i=cls.length;i>0;){
if(cls[--i]){
this.addClass(el,cls[i]);
}
}
},hasClass:function(el,_2c3){
if(!(el&&el.className)){
return false;
}
var cls=el.className.split(" ");
for(var i=0,n=cls.length;i<n;i++){
if(cls[i]==_2c3){
return true;
}
}
return false;
},addHoverEffect:function(el,_2c8){
if(!AgentUtils.isIE){
return;
}
var self=el;
var _2ca=_2c8?_2c8:"hover";
EventUtils.addEvent(self,"mouseover",function(_2cb){
StyleUtils.addClass(self,_2ca);
},false);
EventUtils.addEvent(self,"mouseout",function(_2cc){
StyleUtils.removeClass(self,_2ca);
},false);
},setOpacity:function(_2cd,_2ce){
if(_2cd.style.opacity){
_2cd.style.opacity=_2ce;
}else{
if(_2cd.filters){
var _2cf=_2ce*100;
var _2d0="progid:DXImageTransform.Microsoft.Alpha";
var _2d1=_2cd.filters.alpha;
if(!_2d1){
_2cd.style.filter+=_2d0+"(Opacity=100) alpha()";
_2d1=_2cd.filters.alpha;
}
_2d1.opacity=_2cf;
}else{
if(_2cd.style.MozOpacity){
_2cd.style.MozOpacity=_2ce;
}
}
}
}};
var DragUtils={makeDragSource:function(_2d2,_2d3){
if(!_2d3){
_2d3=_2d2;
}
Drag.makeDraggable(_2d2);
if(_2d3!=_2d2){
_2d2.setDragHandle(_2d3);
}
_2d2.setDragThreshold(5);
_2d2.onDragStart=onDragStart;
_2d2.onDrag=onDrag;
_2d2.onDragEnd=onDragEnd;
_2d2.onDragSetCursor=onDragSetCursor;
StyleUtils.addClass(_2d2,"drag-source");
StyleUtils.addClass(_2d3,"drag-handle");
},makeDragSourceCloned:function(_2d4,_2d5){
if(!_2d5){
_2d5=_2d4;
}
EventUtils.addEvent(_2d5,"mousedown",DragUtils.startDragClone);
_2d5.dragSource=_2d4;
StyleUtils.addClass(_2d5,"drag-handle");
},startDragClone:function(_2d6){
var _2d7=EventUtils.getElement(_2d6);
var _2d8=_2d7.dragSource;
var _2d9=_2d8.cloneNode(true);
_2d8.parentNode.appendChild(_2d9);
_2d9.dragSource=_2d8;
mousePos=getMouseCoordinates(_2d6);
var dim=DragUtils.dimension(_2d8);
_2d9.style.position="absolute";
_2d9.style.left=(mousePos.x-10)+"px";
_2d9.style.right=(dim.x+dim.w)+"px";
var top=mousePos.y-10;
_2d9.style.top=top+"px";
StyleUtils.setOpacity(_2d8,0.5);
Drag.makeDraggable(_2d9);
_2d9.setDragThreshold(5);
_2d9.onDragStart=onDragStart;
_2d9.onDrag=onDrag;
_2d9.onDragEnd=onDragEnd;
_2d9.onDragSetCursor=onDragSetCursor;
_2d9.onDragCleanUp=DragUtils.endDrag;
if(document.selection){
document.selection.empty();
}
Drag.startDrag(_2d9,_2d6);
},endDrag:function(){
var _2dc=this;
if(_2dc.parentNode){
_2dc.parentNode.removeChild(_2dc);
}
StyleUtils.setOpacity(_2dc.dragSource,1);
_2dc.dragSource=null;
},DU_ATTRIBUTES:function(){
return " minx, miny, maxx, maxy, threshold, thresholdy, thresholdx,";
},isDragAttribute:function(_2dd){
return this.DU_ATTRIBUTES().indexOf(" "+_2dd+",")!=-1;
},dimension:function(_2de){
var dim={};
dim.x=-1;
dim.y=-1;
dim.w=0;
dim.h=0;
if(_2de==document){
dim.x=_2de.body.scrollLeft;
dim.y=_2de.body.scrollTop;
dim.w=_2de.body.clientWidth;
dim.h=_2de.body.clientHeight;
}else{
if(_2de){
var el=_2de;
var left=el.offsetLeft;
while((el=el.offsetParent)){
left+=el.offsetLeft;
}
el=_2de;
var top=el.offsetTop;
while((el=el.offsetParent)){
top+=el.offsetTop;
}
dim.x=left;
dim.y=top;
dim.w=_2de.offsetWidth;
dim.h=_2de.offsetHeight;
}
}
return dim;
}};
function getMouseCoordinates(_2e3){
var posx=0;
var posy=0;
if(_2e3.pageX||_2e3.pageY){
posx=_2e3.pageX;
posy=_2e3.pageY;
}else{
if(_2e3.clientX||_2e3.clientY){
var _2e6=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;
var _2e7=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
posx=_2e3.clientX+_2e6;
posy=_2e3.clientY+_2e7;
}
}
return new Coordinate(posx,posy);
}
function mouseY(evt){
if(evt.pageY){
return evt.pageY;
}else{
if(evt.clientY){
return evt.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop);
}else{
return null;
}
}
}
function mouseX(evt){
if(evt.pageX){
return evt.pageX;
}else{
if(evt.clientX){
return evt.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft);
}else{
return null;
}
}
}
var DateUtils={ONE_YEAR:365*24*60*60*1000,addPeriod:function(_2ea,_2eb){
var then=new Date();
then.setTime(then.getTime()+_2eb);
return then;
}};
var CookieUtils={getValue:function(_2ed,_2ee){
var _2ef=document.cookie;
var _2f0=_2ed+"=";
var _2f1=_2ef.indexOf("; "+_2f0)+2;
if(_2f1==1){
_2f1=_2ef.indexOf(_2f0);
if(_2f1!==0){
return _2ee?_2ee:"";
}
}
_2f1+=_2f0.length;
toPos=_2ef.indexOf(";",_2f1);
if(toPos==-1){
toPos=_2ef.length;
}
var _2f2=_2ef.substring(_2f1,toPos);
return unescape(_2f2);
},setValue:function(_2f3,_2f4,_2f5){
var _2f6=_2f5?_2f5:DateUtils.addPeriod(new Date(),DateUtils.ONE_YEAR);
var _2f7=_2f3+"="+escape(_2f4)+"; expires="+_2f6.toGMTString();
document.cookie=_2f7;
}};
var alerts_=[];
var splitStartingX_=-1;
var splitStartingY_=-1;
var splitVertical_;
var splitter_=null;
var ratioPrevious;
var ratioNext;
var rectPrev;
var rectNext;
var disabledButtons_=[];
var actionGroups_=[];
var calendarsParams_=[];
var calendarOnLoadEventAttached=false;
var currentTimeInput;
var currentTimeInputInterval;
var currentTimeInputTimeout;
function qfValidateEnterKeyPressed(evt,_2f9){
var _2fa=13;
evt=(evt)?evt:window.event;
var _2fb=getEventElement(evt);
if(_2fb.value&&evt.keyCode==_2fa){
var form=_2fb.form;
theInput=form[_2f9+".event"];
if(theInput.value=="valueChanged"){
theInput.value="find";
resetModalReturnedValueHF(_2f9);
form.submit();
}
return false;
}
return true;
}
function qfFieldContentChange(evt,_2fe){
evt=(evt)?evt:window.event;
var _2ff=getEventElement(evt);
var form=_2ff.form;
var _301=form[_2fe+".event"];
var _302=form[_2fe+".initialValue"];
_2ff.value=trimAll(_2ff.value);
if(_302!=null&&_2ff.value==_302.value){
_301.value="";
}else{
if(_2ff.value!=null&&_2ff.value!=""){
_301.value="valueChanged";
}else{
_301.value="emptiedField";
}
}
resetModalReturnedValueHF(_2fe);
}
function qfButtonClick(evt,_304){
var _305=getEventElement(evt);
var form=_305.form;
var _307=window.document.jsfForm()[_304+".event"];
var _308=window.document.jsfForm()[_304+".disValid"];
if(_308){
_308.value="false";
}
if(_307.value=="valueChanged"){
_307.value="find";
}else{
if(_307.value=="emptiedField"){
_307.value="emptiedFieldClick";
}else{
_307.value="openSelector";
}
}
resetModalReturnedValueHF(_304);
return true;
}
function manageQFSelWinReturnedValues(_309){
var qfHf=null;
var _30b=findElementsEndingWithId(null,".event",null,false);
for(i=0;i<_30b.length;i++){
if(_30b[i].tagName.toLowerCase()=="input"){
if(_30b[i].value=="selectorWindowOpened"){
qfHf=_30b[i];
}
}
}
var qfId=null;
if(qfHf){
qfId=qfHf.id.substring(0,qfHf.id.length-".event".length);
}
if(qfId){
window.document.getElementById(qfId+".swcrv").value=_309[0];
window.document.getElementById(qfId).value=_309[1];
}
}
function resetModalReturnedValueHF(_30d){
var _30e=window.document.jsfForm()[_30d+".modalResult"];
if(_30e){
_30e.value="";
}
}
function getWindowTop(_30f,_310){
try{
if(_30f.parent==_30f){
return _30f;
}
if(_30f.parent.location.hostname!=_310){
return _30f;
}
}
catch(e){
return _30f;
}
return getWindowTop(_30f.parent,_310);
}
function findAlert(_311){
for(var i=0;i<alerts_.length;i++){
var _313=alerts_[i];
if(_313.alertClientId==_311){
return _313;
}
}
return null;
}
function AlertWindow(_314,_315,_316,_317,_318,_319,_31a,_31b,_31c){
this.alertClientId=_314;
this.messageTitle=_315;
this.message=_316;
this.type=_317;
this.formHtmlId=_318;
this.commands=[];
this.addCommand=addCommand;
this.processClick=true;
this.hasFacetMessage=_319;
this.opener=_31a;
this.embeddedDialog=!_31b||_31c?new EmbeddedDialog(_314,_31c):null;
}
function addCommand(_31d,_31e,_31f,_320){
this.commands.push(new AlertCommand(_31d,_31e,_31f,_320));
}
function AlertCommand(_321,_322,_323,_324){
this.text=_321;
this.cmdId=_322;
this.onClickFunction=_323;
this.noActionToPerform=_324;
}
function createAlert(_325,_326,_327,_328,_329,_32a,_32b,_32c){
if(_32c=="null"){
_32c=null;
}
if(_32b==null||_32b=="null"){
_32b=false;
}else{
if(_32b=="true"){
_32b=true;
}else{
_32b=false;
}
}
var _32d=new AlertWindow(_325,_326,_327,_328,_329,_32a,window,_32b,_32c);
alerts_.push(_32d);
return _32d;
}
function overrideEmbeddedAlertCommandClick(_32e){
var _32f=findAlert(_32e);
var _330=_32f.embeddedDialog;
if(!_330.initialized){
initEmbeddedDialog(_330.dialogId);
}
for(var i=0;i<_32f.commands.length;i++){
var cmd=_32f.commands[i];
overrideCommandClick(_330,cmd);
}
_330.commandsOverrided=true;
}
function overrideCommandClick(_333,cmd){
var _335=findElementsEndingWithId(_333.dialogContent,cmd.cmdId,null,true)[0];
if(_335==null){
_335=findElementsEndingWithName(_333.dialogContent,cmd.cmdId,null,true)[0];
}
if(cmd.noActionToPerform){
_335.onclick=function(){
hideEmbeddedDialog(_333,cmd);
return false;
};
}else{
if(cmd.onClickFunction==null){
cmd.onClickFunction=_335.onclick;
}
_335.onclick=function(){
hideEmbeddedDialog(_333,cmd);
if(_333.openerHaveActionToExecute&&_333.onCloseFnc){
_333.onCloseFnc();
}else{
cmd.onClickFunction();
}
return false;
};
}
}
function showModalAlert(sURL,_337,_338){
var _339=getWindowTop(window,window.location.hostname);
if(_339.showModalDialog){
var _33a="dialogWidth:400px;dialogHeight:0px;center:yes;resizable:no;scroll:yes;help:no;status:yes";
var _33b;
var _33c;
var pos=sURL.indexOf("alertClientId=");
if(pos>=0){
pos=pos+"alertClientId=".length;
var pos2=sURL.indexOf("&",pos);
if(pos2>=0){
_33c=sURL.substr(pos,pos2-pos);
}else{
_33c=sURL.substr(pos);
}
var _33f=findAlert(_33c);
_33f.innerHTML=_33f.htmlContent;
}
if(_338){
logViewInfo("showModalAlert: pre-windowtop.showModelessDialog");
_33b=_339.showModelessDialog(sURL,_337,_33a);
logViewInfo("showModalAlert: post-windowtop.showModelessDialog");
}else{
logViewInfo("showModalAlert: pre-windowtop.showModalDialog");
_33b=_339.showModalDialog(sURL,_337,_33a);
logViewInfo("showModalAlert: post-windowtop.showModalDialog");
}
return _33b;
}else{
var _33a="top=200,left=140,width=400,height=200,directories=no,location=no,menubar=no,toolbar=no,resizable=no,scrollbars=yes,status=yes,center=yes;";
logViewInfo("showModalAlert: pre-window.open");
var _33c;
var pos=sURL.indexOf("alertClientId=");
if(pos>=0){
pos=pos+"alertClientId=".length;
var pos2=sURL.indexOf("&",pos);
if(pos2>=0){
_33c=sURL.substr(pos,pos2-pos);
}else{
_33c=sURL.substr(pos);
}
var _33f=findAlert(_33c);
_33f.innerHTML=_33f.htmlContent;
}
currentAlert_=_339.open(sURL,"_blank",_33a);
logViewInfo("showModalAlert: post-window.open");
if(currentAlert_){
currentAlert_.dialogArguments=_337;
currentAlert_.simulateModal=true;
}
return currentAlert_;
}
}
function showEmbeddedAlert(sURL,_341,_342,_343){
if(!document.createElement){
return true;
}
if(document.createElement){
try{
var _344=document.createElement("iframe");
_344.setAttribute("id","RSIFrame");
_344.style.border="0px";
_344.style.width="0px";
_344.style.height="0px";
_344.style.display="none";
_344.style.visibility="hidden";
_344.title="";
_344.src=sURL;
_344.name="alertIFrame";
alertIFrame=document.body.appendChild(_344);
if(document.frames){
alertIFrame=document.frames["RSIFrame"];
}
}
catch(exception){
iframeHTML="<iframe id=\"RSIFrame\" name=\"alertIFrame\" title=\"\" style=\"";
iframeHTML+="border:0px;";
iframeHTML+="width:0px;";
iframeHTML+="height:0px;";
iframeHTML+="display:none;";
iframeHTML+="visibility:hidden;";
iframeHTML+="\"></iframe>";
document.body.innerHTML+=iframeHTML;
alertIFrame={};
alertIFrame.document={};
alertIFrame.document.location={};
alertIFrame.document.location.iframe=document.getElementById("RSIFrame");
alertIFrame.document.location.replace=function(_345){
this.iframe.src=_345;
};
}
}
if(navigator.userAgent.indexOf("Gecko")!=-1&&!alertIFrame.contentDocument){
var func="showModalAlert('"+sURL+"', '"+_341+"', "+showAsModeless+")";
setTimeout(func,10);
return false;
}
var _347=getIFrameDoc(alertIFrame);
if(_347==null){
return true;
}
addEvent(alertIFrame,"load",function(){
processEmbeddedAlert(alertIFrame,_342);
if(_343){
_343();
}
});
return false;
}
function processEmbeddedAlert(_348,_349){
var _34a=getIFrameDoc(_348);
var _34b=findElementsEndingWithId(_34a,_349.alertClientId+"-fr",null,true)[0];
if(_34b){
var _34c=document.createElement("DIV");
_34c.id=_34b.id;
_34c.style.display="none";
_34c.innerHTML=_34b.innerHTML;
_34b.parentNode.removeChild(_34b);
document.body.appendChild(_34c);
showEmbeddedDialog(_349.embeddedDialog);
}
}
function EmbeddedDialog(_34d,_34e){
this.pageTitle=null;
this.dialogId=_34d;
if(_34e!="null"){
this.pageContentId=_34e;
}
this.parentNode=null;
this.originalContent=null;
this.dialogContent=null;
this.pageContent=null;
this.fullPageAlert=false;
this.onCloseFnc=null;
this.initialized=false;
this.commandsOverrided=false;
this.openerHaveActionToExecute=true;
this.fadeTimer=null;
this.bgOpacity=0;
this.dialogBG=null;
this.resizeFnc=null;
this.opened=false;
this.checkboxesStates=[];
this.disabledInputs=[];
this.positionPadder=null;
this.adjustPositionTimer=null;
this.keydownFnc=null;
}
function isAnEmbeddedDialogOpened(){
for(i=0;i<alerts_.length;i++){
var al=alerts_[i];
if(al.embeddedDialog){
if(al.embeddedDialog.opened==true){
return true;
}
}
}
return false;
}
function keepFocusInEmbeddedDialog(_350,_351){
}
function hideEmbeddedDialog(_352,cmd){
_352.parentNode.removeChild(_352.dialogContent);
if(!_352.fullPageAlert){
_352.parentNode.appendChild(_352.pageContent);
}
if(_352.dialogBG){
_352.dialogBG.parentNode.removeChild(_352.dialogBG);
_352.dialogBG=null;
removeEvent(window,"resize",_352.resizeFnc);
_352.resizeFnc=null;
_352.bgOpacity=0;
}
_352.parentNode=null;
_352.pageContent=null;
for(var i=0;i<window.document.jsfForm().elements.length;i++){
if(window.document.jsfForm().elements[i].type=="checkbox"){
if(_352.checkboxesStates[i]){
window.document.jsfForm().elements[i].checked=_352.checkboxesStates[i];
}
}
}
while(_352.disabledInputs.length>0){
var _355=_352.disabledInputs.pop();
_355.disabled=false;
_355.style.visibility="visible";
}
if(_352.fadeTimer){
clearInterval(_352.fadeTimer);
_352.fadeTimer=null;
}
_352.bgOpacity=0;
if(_352.adjustPositionTimer){
clearInterval(_352.adjustPositionTimer);
_352.adjustPositionTimer=null;
}
var _356=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
removeEvent(_356,"keydown",_352.keydownFnc);
_352.opened=false;
window.document.title=_352.pageTitle;
window.location="#";
}
function adjustEmbeddedDialogPosition(_357){
var _358=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
_357.positionPadder.style.height=_358.scrollTop+"px";
}
function resizeEmbeddedDialogBackground(_359){
var _35a=_359.pageContent;
if(_359.dialogBG&&_359.fullPageAlert&&_35a.scrollWidth){
_359.dialogContent.style.width=_35a.scrollWidth>_35a.clientWidth?_35a.scrollWidth+"px":_35a.clientWidth+"px";
_359.dialogContent.style.height=_35a.scrollHeight>_35a.clientHeight?_35a.scrollHeight+"px":_35a.clientHeight+"px";
_359.dialogBG.style.width=_359.dialogContent.style.width;
_359.dialogBG.style.height=_359.dialogContent.style.height;
}
}
function showModal(sURL,_35c,_35d,_35e,_35f,_360,_361){
var _362=getWindowTop(window,window.location.hostname);
if(_360&&_361){
sURL=escape(sURL+"&"+_360+"="+_361);
}
var _363=contextPath_+"/akira/pub/modalFrameset.jsp?modalUrl="+escape(sURL)+"&title="+_35c;
if(_362.showModalDialog){
var _364="dialogWidth:"+_35e+";dialogHeight:"+_35f+";center:yes;resizable:yes;scroll:yes;help:no;status:yes";
logViewInfo("showModal: pre-windowtop.showModalDialog");
var _365=_362.showModalDialog(_363,_35d,_364);
logViewInfo("showModal: post-windowtop.showModalDialog");
return _365;
}else{
var _364="top=200,left=140,width="+_35e+",height="+_35f+",directories=no,location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,status=yes,center=yes;";
logViewInfo("showModal: pre-windowtop.open");
currentModal=_362.open(_363,"_blank",_364);
logViewInfo("showModal: post-windowtop.open");
if(currentModal){
currentModal.dialogArguments=_35d;
currentModal.simulateModal=true;
}
}
}
function openModal(sURL,_367,_368,_369,_36a){
window.document.jsfForm().modalClientId.value=_368;
var _36b=getWindowTop(window,window.location.hostname);
var _36c=contextPath_+"/akira/pub/modalFrameset.jsp?modalUrl="+escape(sURL)+"&title="+_367;
if(_36b.showModalDialog){
var _36d="dialogWidth:"+_369+";dialogHeight:"+_36a+";center:yes;resizable:yes;scroll:yes;help:no;status:yes";
logViewInfo("openModal: pre-windowtop.showModalDialog");
var _36e=_36b.showModalDialog(_36c,window,_36d);
logViewInfo("openModal: post-windowtop.showModalDialog");
return _36e;
}else{
var _36d="top=200,left=140,width="+_369+",height="+_36a+",directories=no,location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,status=yes,center=yes;";
logViewInfo("openModal: pre-windowtop.open");
currentModal=_36b.open(_36c,"_blank",_36d);
logViewInfo("openModal: post-windowtop.open");
if(currentModal){
currentModal.dialogArguments=window;
currentModal.simulateModal=true;
}
}
}
function openWindow(sURL,_370,_371,_372){
var left=(screen.width-_371)/2;
var top=(screen.height-_372)/2;
var f="left="+left+",top="+top+",width="+_371+"px,height="+_372+"px,center=yes,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no";
logViewInfo("openWindow: pre-window.open");
var _376=window.open(sURL,_370,f,false);
logViewInfo("openWindow: post-window.open");
return _376;
}
function adjustWindowWidth(){
if((/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent))||(/msie 5\.0/i.test(navigator.userAgent)&&(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)))){
var _377=parseInt(window.dialogWidth.substring(0,window.dialogWidth.length-2));
var _378=window.document.body.scrollWidth+40;
var _379=top.screen.width;
if(_378>_379){
_378=_379;
}
window.dialogWidth=_378+"px";
var _37a=(_379/2)-(_378/2);
window.dialogLeft=_37a+"px";
}
}
function adjustWindowHeight(){
if((/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent))||(/msie 5\.0/i.test(navigator.userAgent)&&(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent)))){
var _37b=parseInt(window.dialogHeight.substring(0,window.dialogHeight.length-2));
var _37c=window.document.body.scrollHeight;
var _37d=window.document.body.bottomMargin;
var _37e=_37b+((_37c+parseInt(_37d))-_37b)+40;
var _37f=top.screen.height;
if(_37e>_37f){
_37e=_37f;
}
window.dialogHeight=_37e+"px";
var _380=(_37f/2)-(_37e/2);
window.dialogTop=_380+"px";
}
}
function showSource(pEvt){
pEvt=(pEvt)?pEvt:window.event;
if(pEvt.altKey&&pEvt.shiftKey){
var _382=null;
try{
_382=window.open("about:blank","_blank","location=0, menubar=1, resizable=1, scrollbars=1, status=0, titlebar=1, toolbar=0");
}
catch(exception){
_382=top.open("about:blank","_blank","location=0, menubar=1, resizable=1, scrollbars=1, status=0, titlebar=1, toolbar=0");
}
if(_382){
var _383=null;
var _384=window.document.childNodes;
for(var i=0;i<_384.length;i++){
if(_383==null){
_383="";
}else{
_383+="\r\n";
}
_383+=_384[i].outerHTML;
}
_382.document.writeln("<html>");
_382.document.writeln("<head>");
_382.document.writeln("</head>");
_382.document.writeln("<body style=\"background-color: white; font-family: monospace; font-size: 12px;\">");
_382.document.writeln("</body>");
_382.document.writeln("</html>");
_382.document.body.innerText=_383;
}
}
}
function sendUIMessage(_386){
var _387=open(contextPath_+"/UIMessageReceiver.jss?msg="+_386,"messenger","top="+screen.availHeight+", left="+screen.availWidth+", width=100, height=100, resizable=no, scrollbars=no, menubar=no, toolbar=no, directories=no, location=no, status=no");
if(_387){
_387.close();
}
}
function prepareSplitter2(_388){
var _389=window.document.getElementById(_388);
var _38a=_389.previousSibling;
var next=nextSiblingWithoutTag(_389,"script");
var _38c=eval("document.jsfForm()['"+_388+"prevSize'];");
_38a.runtimeStyle.width=_38c.value;
_38c=eval("document.jsfForm()['"+_388+"nextSize'];");
next.runtimeStyle.width=_38c.value;
}
function onSplitterMouseDown(pEvt,_38e){
pEvt=(pEvt)?pEvt:window.event;
splitStartingX_=pEvt.clientX;
splitStartingY_=pEvt.clientY;
splitVertical_=_38e;
splitter_=getEventElement(pEvt);
splitter_.setCapture();
var _38f=splitter_.previousSibling;
var next=nextSiblingWithoutTag(splitter_,"script");
var _391=_38f.currentStyle.width;
var _392=next.currentStyle.width;
ratioPrevious=parseFloat(_391.substring(0,_391.length-1));
ratioNext=parseFloat(_392.substring(0,_392.length-1));
rectPrev=_38f.getBoundingClientRect();
rectNext=next.getBoundingClientRect();
addEvent(document,"mousemove",onSplitterMouseMove);
addEvent(document,"mouseup",onSplitterMouseUp);
}
function onSplitterMouseUp(pEvt){
pEvt=(pEvt)?pEvt:window.event;
removeEvent(document,"mousemove",onSplitterMouseMove);
removeEvent(document,"mouseup",onSplitterMouseUp);
var _394=splitter_.previousSibling;
var next=nextSiblingWithoutTag(splitter_,"script");
var _396=eval("document.jsfForm()['"+splitter_.id+"prevSize'];");
_396.value=_394.currentStyle.width;
_396=eval("document.jsfForm()['"+splitter_.id+"nextSize'];");
_396.value=next.currentStyle.width;
splitter_.releaseCapture();
splitStartingX_=-1;
splitStartingY_=-1;
splitter_=null;
}
function onSplitterMouseMove(pEvt){
pEvt=(pEvt)?pEvt:window.event;
if(pEvt.button){
var _398=splitter_.previousSibling;
var next=nextSiblingWithoutTag(splitter_,"script");
if(splitVertical_){
var diff=pEvt.clientX-splitStartingX_;
var _39b=ratioPrevious+ratioNext;
var _39c=(rectPrev.right-rectPrev.left)+diff;
var _39d=(rectNext.right-rectNext.left)-diff;
var _39e=_39c+_39d;
var _39f=(_39c/_39e*_39b);
var _3a0=(ratioPrevious+ratioNext)-_39f;
if(_39f>=0&&_39f<=100&&_3a0>=0&&_3a0<=100){
var _3a1=_398.currentStyle.width;
var _3a2=next.currentStyle.width;
_398.runtimeStyle.width=_39f+"%";
next.runtimeStyle.width=_3a0+"%";
var _3a3=_398.getBoundingClientRect();
var _3a4=next.getBoundingClientRect();
if((rectPrev.top==rectNext.top)&&(_3a3.top!=rectPrev.top||_3a4.top!=rectNext.top)){
_398.runtimeStyle.width=_3a1;
next.runtimeStyle.width=_3a2;
}
}
}else{
}
}
}
function onModalWindowUnload(pEvt){
pEvt=(pEvt)?pEvt:window.event;
if(pEvt.clientY<0||pEvt.altKey==true){
sendUIMessage("modCloAbr");
}
}
function installDialogRequiredEvents(){
addEvent(window.document,"click",showSource);
if(window.name=="__MODAL_FRAME_CONTENT"){
addEvent(window,"beforeunload",onModalWindowUnload);
}
}
installDialogRequiredEvents();
function addActionGroup(_3a6,_3a7){
actionGroups_[_3a6]=new ActionGroup(_3a6,_3a7);
return actionGroups_[_3a6];
}
function findActionGroup(_3a8){
return actionGroups_[_3a8];
}
function ActionGroup(_3a9,_3aa){
this.sActionGroupClientId=_3a9;
this.dropDown=_3aa;
this.actionGroupCommands=[];
this.addActionGroupCommand=addActionGroupCommand;
this.findActionGroupCommand=findActionGroupCommand;
}
function addActionGroupCommand(_3ab,_3ac,_3ad,_3ae){
this.actionGroupCommands.push(new ActionGroupCommand(_3ab,_3ac,_3ad,_3ae));
}
function findActionGroupCommand(_3af){
for(i=0;i<this.actionGroupCommands.length;i++){
if(this.actionGroupCommands[i].sActionGroupCommandClientId==_3af){
return this.actionGroupCommands[i];
}
}
return null;
}
function ActionGroupCommand(_3b0,_3b1,_3b2,_3b3){
this.sActionGroupCommandClientId=_3b0;
this.sJavascript=_3b1;
this.bIsInDropDown=_3b2;
this.bIsInitiallyDisabled=_3b3;
this.execute=executeActionGroupCommand;
}
function executeActionGroupCommand(){
eval(this.sJavascript);
return false;
}
function actionGroupDropDownChange(_3b4,_3b5){
if(_3b5.options[_3b5.selectedIndex].value!=-1){
result=findActionGroup(_3b4).findActionGroupCommand(_3b5.options[_3b5.selectedIndex].value).execute();
if(result==false){
_3b5.selectedIndex=0;
}
}else{
_3b5.selectedIndex=0;
}
return false;
}
function disableCommandButton(_3b6,_3b7,_3b8,_3b9){
var _3ba=window.document.getElementById(_3b6);
var _3bb=(_3b8!=null&&_3b8==true);
if(_3b7==1){
disableTagWithDisabledAttribute(_3b6,_3bb,_3b9);
}else{
if(_3b7==2){
disableNiceCommandButton(_3b6,_3bb,_3b9);
}else{
if(_3b7==3){
disableActionGroup(_3b6,_3bb,_3b9);
}else{
if(_3b7==4){
disableQuickFinder(_3b6,_3bb,_3b9);
}else{
if(_3b7==5){
disableInputDateTime(_3b6,_3bb,_3b9);
}else{
if(_3b7==6){
disableInputTime(_3b6,_3bb,_3b9);
}
}
}
}
}
}
}
function addDisablerEvent(_3bc,_3bd,_3be){
var _3bf;
if(_3bc.tagName=="INPUT"&&(_3bc.type=="checkbox"||_3bc.type=="radio")){
_3bf=window.document.getElementsByName(_3bc.name);
}else{
_3bf=[_3bc];
}
for(var i=0;i<_3bf.length;i++){
var item=_3bf[i];
addEvent(item,_3bd,_3be);
}
}
function disableTagWithDisabledAttribute(_3c2,_3c3,_3c4){
var _3c5=window.document.getElementById(_3c2);
var _3c6;
if(_3c5.tagName=="INPUT"&&(_3c5.type=="checkbox"||_3c5.type=="radio")){
_3c6=window.document.getElementsByName(_3c5.name);
}else{
_3c6=[_3c5];
}
for(var i=0;i<_3c6.length;i++){
var item=_3c6[i];
if(_3c4==null&&_3c3==true){
item.disabled=!item.disabled;
}else{
if(_3c4!=null){
item.disabled=_3c4;
}else{
item.disabled=true;
}
}
}
}
function disableNiceCommandButton(_3c9,_3ca,_3cb){
var _3cc=window.document.getElementById(_3c9);
var _3cd=_3cc.getAttribute("originalState")!=null;
var _3ce=window.document.getElementById(_3c9+"_img");
var _3cf=_3cc.className.split(" ");
if(_3cb==null&&_3ca==true){
if(_3cf[0].lastIndexOf("-off")==(_3cf[0].length-4)&&!_3cd){
_3cf[0]=_3cf[0].substr(0,(_3cf[0].length-4));
_3cc.disabled=false;
if(_3ce!=null){
var _3d0=_3ce.src;
_3ce.src=_3d0.substr(0,_3d0.lastIndexOf("-off"))+_3d0.substr(_3d0.lastIndexOf("."),_3d0.length);
}
}else{
_3cf[0]=_3cf[0]+"-off";
_3cc.disabled=true;
if(_3ce!=null){
var _3d0=_3ce.src;
_3ce.src=_3d0.substr(0,_3d0.lastIndexOf("."))+"-off"+_3d0.substr(_3d0.lastIndexOf("."),_3d0.length);
}
}
}else{
if(_3cb!=null){
if(_3cb==true){
if(_3cf[0].lastIndexOf("-off")!=(_3cf[0].length-4)){
_3cf[0]=_3cf[0]+"-off";
_3cc.disabled=true;
if(_3ce!=null){
var _3d0=_3ce.src;
_3ce.src=_3d0.substr(0,_3d0.lastIndexOf("."))+"-off"+_3d0.substr(_3d0.lastIndexOf("."),_3d0.length);
}
}
}else{
if((_3cf[0].lastIndexOf("-off")==(_3cf[0].length-4)||_3cc.disabled==true)&&!_3cd){
_3cf[0]=_3cf[0].substr(0,(_3cf[0].length-4));
_3cc.disabled=false;
if(_3ce!=null){
var _3d0=_3ce.src;
_3ce.src=_3d0.substr(0,_3d0.lastIndexOf("-off"))+_3d0.substr(_3d0.lastIndexOf("."),_3d0.length);
}
}
}
}else{
if(_3cf[0].lastIndexOf("-off")!=(_3cf[0].length-4)){
_3cf[0]=_3cf[0]+"-off";
_3cc.disabled=true;
if(_3ce!=null){
var _3d0=_3ce.src;
_3ce.src=_3d0.substr(0,_3d0.lastIndexOf("."))+"-off"+_3d0.substr(_3d0.lastIndexOf("."),_3d0.length);
}
}
}
}
_3cc.className=_3cf.join(" ");
if(_3cc.tagName=="A"){
if(_3cc.className.lastIndexOf("-off")>-1){
if(disabledButtons_[_3cc.id]==null){
var _3d1=HTMLUtils.addSpan(null,null);
_3d1.className=_3cc.className;
for(var i=0;i<_3cc.childNodes.length;i++){
var _3d3=_3cc.childNodes[i].cloneNode(true);
_3d3.id=_3d3.id+"-cln";
_3d1.appendChild(_3d3);
}
addSuffixToId(_3d1,"-cln",true);
_3cc.parentNode.insertBefore(_3d1,_3cc);
var _3d4=HTMLUtils.addSpan(_3d1,AccessibilityRes.disabled);
StyleUtils.addClasses(_3d4,"hidden-audible");
_3cc.style.display="none";
disabledButtons_[_3cc.id]=_3d1;
}
}else{
var _3d5=disabledButtons_[_3cc.id];
if(_3d5!=null){
_3cc.parentNode.removeChild(_3d5);
_3cc.style.display="";
disabledButtons_[_3cc.id]=null;
}
}
}
}
function addSuffixToId(_3d6,_3d7,_3d8){
if(_3d6.id){
_3d6.id=_3d6.id+_3d7;
}
if(_3d8==true){
for(var i=0;i<_3d6.childNodes.length;i++){
addSuffixToId(_3d6.childNodes[i],_3d7,_3d8);
}
}
}
function disableTimeSpinner(_3da,_3db,_3dc){
var _3dd=window.document.getElementById(_3da+"-s");
var _3de=_3dd.className.split(" ");
var _3df=_3de[0].lastIndexOf("-off");
if(_3dc==null&&_3db){
if(_3df==(_3de[0].length-4)){
_3de[0]=_3de[0].substr(0,(_3de[0].length-4));
}else{
_3de[0]=_3de[0]+"-off";
}
}else{
if(_3dc!=null){
if(_3dc){
if(_3df!=(_3de[0].length-4)){
_3de[0]=_3de[0]+"-off";
}
}else{
if(_3df==(_3de[0].length-4)){
_3de[0]=_3de[0].substr(0,(_3de[0].length-4));
}
}
}else{
if(_3df!=(_3de[0].length-4)){
_3de[0]=_3de[0]+"-off";
}
}
}
_3dd.className=_3de.join(" ");
}
function disableActionGroup(_3e0,_3e1,_3e2){
var _3e3=window.document.getElementById(_3e0);
var _3e4=findActionGroup(_3e0);
var _3e5=window.document.getElementById(_3e4.sActionGroupClientId);
if(_3e2==null&&_3e1==true){
_3e5.disabled=!_3e5.disabled;
if(_3e4.dropDown!=null){
_3e4.dropDown.disabled=!_3e4.dropDown.disabled;
}
}else{
if(_3e2!=null){
_3e5.disabled=_3e2;
if(_3e4.dropDown!=null){
_3e4.dropDown.disabled=_3e2;
}
}else{
_3e5.disabled=true;
if(_3e4.dropDown!=null){
_3e4.dropDown.disabled=true;
}
}
}
var _3e6=_3e4.actionGroupCommands.length;
for(i=0;i<_3e6;i++){
var _3e7=_3e4.actionGroupCommands[i];
if(_3e7.bIsInDropDown==false){
disableNiceCommandButton(_3e7.sActionGroupCommandClientId,_3e1,_3e4.dropDown!=null?_3e4.dropDown.disabled:_3e2);
}
}
}
function disableQuickFinder(_3e8,_3e9,_3ea){
disableTagWithDisabledAttribute(_3e8,_3e9,_3ea);
disableNiceCommandButton(_3e8+".action",_3e9,_3ea);
}
function disableInputDateTime(_3eb,_3ec,_3ed){
disableTagWithDisabledAttribute(_3eb+".display",_3ec,_3ed);
}
function disableInputTime(_3ee,_3ef,_3f0){
disableTagWithDisabledAttribute(_3ee+"-h",_3ef,_3f0);
disableTagWithDisabledAttribute(_3ee+"-m",_3ef,_3f0);
disableTagWithDisabledAttribute(_3ee+"-a",_3ef,_3f0);
disableTimeSpinner(_3ee,_3ef,_3f0);
}
function CalendarParam(_3f1,_3f2,_3f3,_3f4,_3f5,_3f6,_3f7){
this.componentID=_3f1;
this.hiddenFieldID=_3f2;
this.spanID=_3f3;
this.ifEmptyFacetID=_3f4;
this.daFormat=_3f5;
this.ifFormat=_3f6;
this.params=_3f7;
}
function addCalendarParams(_3f8,_3f9,_3fa,_3fb,_3fc,_3fd,_3fe){
var _3ff=new CalendarParam(_3f8,_3f9,_3fa,_3fb,_3fc,_3fd,_3fe);
calendarsParams_.push(_3ff);
if(!calendarOnLoadEventAttached){
addEvent(window,"load",initCalendars);
calendarOnLoadEventAttached=true;
}
}
function initCalendars(){
for(i=0;i<calendarsParams_.length;i++){
Calendar.setup(calendarsParams_[i].params);
}
}
function findCalendarByID(_400){
for(var i=0;i<calendarsParams_.length;i++){
if(calendarsParams_[i].componentID.lastIndexOf(_400)!=-1){
return calendarsParams_[i];
}
}
return null;
}
function showInputDateIfEmptyFacet(_402){
var _403=findCalendarByID(_402);
window.document.getElementById(_403.spanID).innerHTML=window.document.getElementById(_403.ifEmptyFacetID).innerHTML;
}
function setInputTime(_404,_405,_406,_407){
var date=new Date();
date.setHours(_405);
date.setMinutes(_406);
date.setSeconds(_407);
setInputDate(_404,date.getYear(),date.getMonth(),date.getDate(),_405,_406,_407);
}
function adjustTextArea(_409){
if(_409){
var _40a=2;
var _40b=2;
var _40c=18;
var _40d=9;
var _40e=escape(_409.value).split("%0D%0A");
if(_40e){
_40a=_40e.length;
}
if(_40a>document.body.clientHeight/_40c){
_40a=document.body.clientHeight/_40c;
}
if(_40e){
var _40f=document.body.clientWidth-computeWindowOffsetLeft(_409);
for(n=0;n<(_40e.length);n++){
var _410=unescape(_40e[n]);
if(_40b<_410.length){
_40b=_410.length;
}
if(_40b>_40f/_40d){
_40b=_40f/_40d;
_40a+=_410.length/(_40f/_40d);
}
}
}else{
_40b=_409.value.length;
}
if((_40b+1)>=_409.initialCols){
_409.cols=(_40b+1);
}else{
_409.cols=_409.initialCols;
}
if((_40a+1)>=_409.initialRows){
_409.rows=(_40a+1);
}else{
_409.rows=_409.initialRows;
}
}
}
function prepareTextArea(){
tas=document.getElementsByTagName("TEXTAREA");
for(var uli=0;uli<tas.length;uli++){
var ta=tas[uli];
if(ta.onkeyup!=null&&ta.onkeydown!=null){
ta.initialCols=ta.cols;
ta.initialRows=ta.rows;
adjustTextArea(ta);
}
}
}
function changeTimeMouseDown(pEvt,_414,_415,_416,_417){
pEvt=(pEvt)?pEvt:window.event;
var _418=getEventElement(pEvt);
var _419=_418.offsetHeight/2;
var _41a=_418;
while(_41a){
_419+=_41a.offsetTop;
if(!_41a.offsetParent){
break;
}
_41a=_41a.offsetParent;
}
var up=pEvt.clientY<_419;
if(currentTimeInput==null||currentTimeInput==undefined||!isOurTimeInput(_414,currentTimeInput)){
currentTimeInput=window.document.getElementById(_414+"-h");
}
if(currentTimeInput!=null&&currentTimeInput!=undefined){
if(pEvt.type=="dblclick"){
changeTime(up,_416,_417);
}else{
var _41c=_418.className;
if(_41c.lastIndexOf("-off")==-1){
_418.setAttribute("akOldClass",_41c);
_418.className=up?_415+"-up":_415+"-down";
changeTime(up,_416,_417);
window.clearTimeout(currentTimeInputTimeout);
currentTimeInputTimeout=setTimeout(function(){
startRollingTime(up,_416,_417);
},400);
}
}
}
}
function isOurTimeInput(_41d,_41e){
var id=currentTimeInput.id;
return id==_41d+"-h"||id==_41d+"-m"||id==_41d+"-a";
}
function startRollingTime(pUp,_421,_422){
if(currentTimeInput!=null){
window.clearInterval(currentTimeInputInterval);
currentTimeInputInterval=window.setInterval(function(){
changeTime(pUp,_421,_422);
},110);
}
}
function changeTime(pUp,_424,_425){
if(currentTimeInput!=null){
if(currentTimeInput.id.lastIndexOf("-a")==currentTimeInput.id.length-2){
currentTimeInput.value=currentTimeInput.value=="am"?"pm":"am";
}else{
var _426=parseInt(removeHeadingZero(currentTimeInput.value));
if(isNaN(_426)){
currentTimeInput.value="1";
}else{
if(currentTimeInput.id.lastIndexOf("-m")==currentTimeInput.id.length-2){
_426=pUp?_426+_424:_426-_424;
if(pUp){
_426=Math.floor(_426/_424)*_424;
}else{
_426=Math.ceil(_426/_424)*_424;
}
if(_426<0){
currentTimeInput.value=""+(60-_424);
}else{
if(_426>=60){
currentTimeInput.value="00";
}else{
var _427=_426<10?"0":"";
currentTimeInput.value=_427+_426;
}
}
}else{
if(currentTimeInput.id.lastIndexOf("-h")==currentTimeInput.id.length-2){
var _428=_426;
_426=pUp?_426+1:_426-1;
if(_425){
if(_426<0){
currentTimeInput.value="23";
}else{
if(_426>=24){
currentTimeInput.value="0";
}else{
currentTimeInput.value=""+_426;
}
}
}else{
if(_426<=0){
currentTimeInput.value="12";
}else{
if(_426>=13){
currentTimeInput.value="1";
}else{
currentTimeInput.value=""+_426;
}
}
}
}
}
}
}
currentTimeInput.select();
}
}
function removeHeadingZero(val){
if(val.length>1&&val.charAt(0)=="0"){
return val.substring(1,val.length);
}
return val;
}
function changeTimeMouseUp(pEvt){
pEvt=(pEvt)?pEvt:window.event;
window.clearTimeout(currentTimeInputTimeout);
window.clearInterval(currentTimeInputInterval);
var _42b=getEventElement(pEvt);
var _42c=_42b.getAttribute("akOldClass");
if(_42c!=undefined&&_42c!=null&&_42c!=""){
_42b.className=_42c;
_42b.setAttribute("akOldClass","");
currentTimeInput.select();
}
}
function prepareTimeInput(pEvt){
pEvt=(pEvt)?pEvt:window.event;
currentTimeInput=getEventElement(pEvt);
currentTimeInput.select();
}
function onkeypressTimeInput(pEvt){
pEvt=(pEvt)?pEvt:window.event;
var elem=getEventElement(pEvt);
elem.setAttribute("akOldValue",elem.value);
var _430=String.fromCharCode(pEvt.keyCode);
if(_430.match(/^\d+$/)==null){
pEvt.cancelBubble=true;
pEvt.returnValue=false;
return false;
}
return true;
}
function onkeydownTimeInput(pEvt){
pEvt=(pEvt)?pEvt:window.event;
var elem=getEventElement(pEvt);
elem.setAttribute("akOldValue",elem.value);
}
function validateHourKeyUp(pEvt,_434){
pEvt=(pEvt)?pEvt:window.event;
var elem=getEventElement(pEvt);
var _436=elem.getAttribute("akOldValue");
if(_436!=null){
var _437=parseInt(removeHeadingZero(elem.value));
if(isNaN(_437)||(_434&&(_437<0||_437>23))||(!_434&&(_437<1||_437>12))){
elem.value=_436;
elem.setAttribute("akOldValue",null);
elem.select();
}
}
}
function adjustMinute(pEvt){
pEvt=(pEvt)?pEvt:window.event;
var elem=getEventElement(pEvt);
if(elem.value.length==1){
elem.value="0"+elem.value;
}
}
function validateMinuteKeyUp(pEvt,_43b,_43c){
pEvt=(pEvt)?pEvt:window.event;
var elem=getEventElement(pEvt);
var _43e=elem.getAttribute("akOldValue");
if(_43e!=undefined&&_43e!=null){
var _43f=parseInt(removeHeadingZero(elem.value));
if(isNaN(_43f)||_43f<0||_43f>59||(_43c&&_43f%_43b!=0)){
if(!isNaN(_43f)&&_43c&&_43f%_43b!=0){
if(_43f<10){
_43f*=10;
}
_43f=Math.min(Math.ceil(_43f/_43b)*_43b,60-_43b);
elem.value=_43f+"";
elem.select();
}else{
elem.value=_43e;
elem.select();
}
}
elem.setAttribute("akOldValue",null);
}
}
function onkeypressTimeInputAmPm(pEvt){
pEvt=(pEvt)?pEvt:window.event;
var elem=getEventElement(pEvt);
var _442=String.fromCharCode(pEvt.keyCode);
if(_442=="a"||_442=="A"){
elem.value="am";
}else{
if(_442=="p"||_442=="P"){
elem.value="pm";
}
}
elem.select();
pEvt.cancelBubble=true;
pEvt.returnValue=false;
return false;
}
function prepareSelectableDataTable(_443,_444,_445){
if(_444!=null){
var _446=findElementsEndingWithId(null,_444,null,true)[0];
var _447=window.document.getElementById(_443+"._selCountFmt");
_447.value=_446.innerHTML;
}
var _448=window.document.getElementById(_443+"._selCount");
updateTableSelCount(_443,_448.value,_444,_445);
}
function updateTableSelCount(_449,_44a,_44b,_44c){
var _44d=window.document.getElementById(_449+"._selCount");
var _44e=parseInt(_44d.value);
_44d.value=_44a;
if(_44b!=null){
var _44f=findElementsEndingWithId(null,_44b,null,true)[0];
var _450=window.document.getElementById(_449+"._selCountFmt").value;
_44f.innerHTML=_450.replace(/\{0\}/,_44a);
}
if(_44c!=null){
eval(_44c+"('"+_449+"', "+_44a+", "+_44e+");");
}
}
function manageTableSelCount2(pEvt,_452,_453,_454){
pEvt=(pEvt)?pEvt:window.event;
var src=getEventElement(pEvt);
if(src.tagName!="INPUT"||(src.type!="checkbox"&&src.type!="radio")){
return;
}
var _456=window.document.getElementById(_452+"._total");
var _457=window.document.getElementById(_452+"._selmode");
var _458=window.document.getElementById(_452+"._selCountFmt");
var _459=getSelectedRowCount(src);
var _45a=parseInt(window.document.getElementById(_452+"._selCount").value);
var _45b=findParentOfType(src,"THEAD");
if(_45b!=null){
if(src.type=="checkbox"){
if(src.checked){
var _45c=parseInt(_456.value)+parseInt(_45a)-parseInt(_459.nbSelectedRows);
_459.value=_456.value;
updateTableSelCount(_452,_45c.toString(),_453,_454);
_457.value="2";
}else{
var _45c=parseInt(_45a)-(parseInt(_456.value)-(parseInt(_456.value)-parseInt(_459.nbSelectedRows)));
_459.value=0;
updateTableSelCount(_452,_45c.toString(),_453,_454);
_457.value="2";
}
formCheckAll(src);
}
}else{
var _45d=findParentOfType(src,"TBODY");
if(_45d!=null&&src.type=="checkbox"){
_45a=src.checked?_45a+1:_45a-1;
_459.value=src.checked?parseInt(_459.value)+1:parseInt(_459.value)-1;
updateTableSelCount(_452,_45a.toString(),_453,_454);
formSyncCheckAll2(src,false);
}else{
if(src.type=="radio"){
updateTableSelCount(_452,"1",_453,_454);
}
}
}
}
function initEmbeddedDialog(_45e){
var _45f=findAlert(_45e);
var _460=_45f.embeddedDialog;
if(!_460.initialized){
var _461=findElementsEndingWithId(document,_460.dialogId+"-fr",null,true)[0];
_460.originalContent=document.createElement("DIV");
if(_460.htmlContent!=null){
_460.originalContent.innerHTML=_460.htmlContent;
}else{
_460.originalContent.innerHTML=_461.innerHTML;
}
_460.positionPadder=document.createElement("DIV");
_460.originalContent.insertBefore(_460.positionPadder,_460.originalContent.childNodes[0]);
if(_460.originalContent!=null){
if(_460.originalContent.parentNode!=null){
_460.originalContent.parentNode.removeChild(_460.originalContent);
}
_460.initialized=true;
}
}
}
function showEmbeddedDialog(_462){
for(i=0;i<alerts_.length;i++){
var _464=alerts_[i];
var _465=_464.embeddedDialog;
if(_465!=null&&_465.opened){
hideEmbeddedDialog(_465,null);
}
}
for(var i=0;i<window.document.jsfForm().elements.length;i++){
if(window.document.jsfForm().elements[i].type=="checkbox"){
_462.checkboxesStates[i]=window.document.jsfForm().elements[i].checked;
}
}
if(!_462.initialized){
initEmbeddedDialog(_462.dialogId);
}
if(_462.pageContentId!=null){
_462.pageContent=findElementsEndingWithId(window.document.body,_462.pageContentId,null,true)[0];
}else{
_462.pageContent=window.document.body;
}
if(_462.pageContent.tagName=="BODY"){
_462.parentNode=window.document.body;
}else{
_462.parentNode=_462.pageContent.parentNode;
}
if(_462.pageContent.tagName=="BODY"){
var _466=document.createElement("DIV");
_466.className="alert-full-page";
_462.fullPageAlert=true;
var _466=document.createElement("DIV");
_466.className="alert-full-page-container";
var _467=HTMLUtils.addAnchor(_466,"");
_467.id="alertAnchor";
_467.href="#";
_467.tabIndex=0;
_466.appendChild(_467);
_466.appendChild(_462.originalContent);
_462.dialogContent=_466;
var bg=document.createElement("DIV");
bg.className="alert-full-page-bg";
_466.appendChild(bg);
_462.dialogBG=bg;
resizeEmbeddedDialogBackground(_462);
adjustEmbeddedDialogPosition(_462);
_462.fadeTimer=setInterval(function(){
fadeEmbeddedDialogBG(_462,60);
},5);
var _469=document.getElementsByTagName("INPUT");
for(var i=0;i<_469.length;i++){
var _46a=_469[i];
if(!_46a.disabled&&_46a.type!="hidden"){
_46a.style.visibility="hidden";
_462.disabledInputs.push(_46a);
}
}
var _46b=document.getElementsByTagName("SELECT");
for(var i=0;i<_46b.length;i++){
var _46c=_46b[i];
_46c.style.visibility="hidden";
_462.disabledInputs.push(_46c);
}
var _46d=document.getElementsByTagName("TEXTAREA");
for(var i=0;i<_46d.length;i++){
var _46e=_46d[i];
_46e.style.visibility="hidden";
_462.disabledInputs.push(_46e);
}
}else{
_462.parentNode.removeChild(_462.pageContent);
}
_462.parentNode.appendChild(_462.dialogContent);
_462.opened=true;
if(!_462.commandsOverrided){
overrideEmbeddedAlertCommandClick(_462.dialogId);
}
if(typeof _hasFocus!="undefined"&&!_hasFocus&&_462.dialogId=="sessionWarning"){
var winl=(screen.width-400)/2;
var wint=(screen.height-200)/2;
var a=window.open(contextPath_+"/akira/pub/offFocusBeaconAlert.jsp?alertClientId=sessionWarningModal"+"&formId="+document.jsfForm().id+"&msgResGroupId="+messagesResGroupId_,"","top="+wint+",left="+winl+",width=400,height=200,directories=no,location=no,menubar=no,toolbar=no,resizable=no,scrollbars=no,status=no,center=yes;");
}
var _472=ElementUtils.getChildrenElementsByClassName(_462.dialogContent,"alert-title");
if(_472!=null&&_472.length>0){
_462.pageTitle=window.document.title;
window.document.title=_472[0].innerHTML;
}
var _473=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
_462.keydownFnc=function(_474){
keepFocusInEmbeddedDialog(_474,_462);
};
addEvent(_473,"keydown",_462.keydownFnc);
setTimeout(function(){
window.location="#alertAnchor";
},100);
var _475=document.getElementById("alertAnchor");
if(_475!=null){
_475.focus();
}
}
function fadeEmbeddedDialogBG(_476,_477){
_476.bgOpacity+=1;
if(_476.bgOpacity<_477){
var bg=_476.dialogBG;
if(bg!=null){
if(typeof (bg.filters)!="undefined"&&typeof (bg.filters.alpha)!="undefined"){
bg.filters.alpha.opacity=_476.bgOpacity;
}else{
if(typeof (bg.style.MozOpacity)!="undefined"){
bg.style.MozOpacity=_476.bgOpacity/100;
}else{
if(typeof (bg.style.KHTMLOpacity)!="undefined"){
bg.style.KHTMLOpacity=_476.bgOpacity/100;
}else{
bg.style.opacity=_476.bgOpacity/100;
}
}
}
}
}else{
if(_476.fadeTimer!=null){
clearInterval(_476.fadeTimer);
_476.fadeTimer=null;
}
_476.bgOpacity=0;
}
}
var BalloonRenderer={TIP_WIDTH:20,TIP_HEIGHT:25,TIP_XOFFSET:27,TIP_YOFFSET:6,DEFAULT_HIDE_DELAY:350,DEFAULT_SHOW_DELAY:500,TIP_SUFFIX:"_tip",MIDDLE_SUFFIX:"_middle",BLOCKER_SUFFIX:"_blocker",BALLOON_SUFFIX:"_balloon",INITIALIZING:1,INITIALIZED:2,SHOW_REQUESTED:3,SHOWN:4,HIDE_REQUESTED:5,HIDING:6,HIDDEN:7,show:function(_479,_47a,_47b){
_479=(_479)?_479:window.event;
var _47c=_47a+this.BALLOON_SUFFIX;
var _47d=document.getElementById(_47c);
if(_47d==null){
_47d=HTMLUtils.addDiv(window.document.body);
_47d.id=_47c;
_47d.balloonInfo=new BalloonRenderer.BalloonInfo(this.INITIALIZING,mouseX(_479),mouseY(_479));
_47d.balloonInfo.initialContent=document.getElementById(_47a);
_47d.balloonInfo.initialContentParent=_47d.balloonInfo.initialContent.parentNode;
}else{
if(_47d.balloonInfo.state==this.HIDE_REQUESTED||_47d.balloonInfo.state==this.HIDING||_47d.balloonInfo.state==this.SHOW_REQUESTED){
return;
}
}
_47d.balloonInfo.state=this.SHOW_REQUESTED;
setTimeout("BalloonRenderer._show('"+_47c+"', "+_47b+");",this.DEFAULT_SHOW_DELAY);
},_show:function(_47e,_47f){
var _480=document.getElementById(_47e);
if(_480.balloonInfo.state==this.SHOW_REQUESTED){
if(!_480.balloonInfo.fullyInitialized){
this.buildBalloon(_480.id);
}
BalloonRenderer.positionBalloon(_480,_480.balloonInfo.initialContent);
_480.balloonInfo.state=this.SHOWN;
if(_47f!=null){
_47f();
}
}
},buildBalloon:function(_481){
var _482=document.getElementById(_481);
addClass(_482,"balloon");
var _483=HTMLUtils.addDiv(_482);
addClass(_483,"balloon-top");
HTMLUtils.addSpan(_483);
var _484=HTMLUtils.addDiv(_482);
addClass(_484,"balloon-middle");
_484.id=_481+this.MIDDLE_SUFFIX;
addClass(HTMLUtils.addDiv(_482),"balloon-bottom");
addEvent(_482,"mouseover",function(){
BalloonRenderer.mouseOverBalloon(_481);
});
addEvent(_482,"mouseout",function(){
BalloonRenderer.mouseOutBalloon(_481);
});
_482.balloonInfo.state=this.INITIALIZED;
_482.balloonInfo.fullyInitialized=true;
},buildTip:function(_485){
var _486=document.getElementById(_485+this.TIP_SUFFIX);
if(_486==null){
_486=HTMLUtils.addDiv(window.document.body);
_486.id=_485+this.TIP_SUFFIX;
addClass(_486,"balloon-tip");
addEvent(_486,"mouseover",function(){
BalloonRenderer.mouseOverBalloon(_485);
});
addEvent(_486,"mouseout",function(){
BalloonRenderer.mouseOutBalloon(_485);
});
}
return _486;
},mouseOverBalloon:function(_487){
var _488=document.getElementById(_487);
_488.balloonInfo.isOverBalloon=true;
_488.balloonInfo.state=this.SHOWN;
},mouseOutBalloon:function(_489){
var _48a=document.getElementById(_489);
_48a.balloonInfo.isOverBalloon=false;
this.hide(_489.substr(0,_489.length-this.BALLOON_SUFFIX.length));
},positionBalloon:function(_48b,_48c){
var _48d=this.buildTip(_48b.id);
var _48e=document.getElementById(_48b.id+this.MIDDLE_SUFFIX);
if(_48e.firstChild!=null){
_48e.removeChild(_48e.firstChild);
}
_48e.appendChild(_48c);
_48c.style.display="block";
_48b.style.display="block";
var _48f=_48b.offsetHeight;
var _490=_48b.offsetWidth;
var _491=window.scrollY||document.documentElement.scrollTop;
var _492=document.body.offsetWidth;
var xPos=_48b.balloonInfo.initialPosX;
var yPos=_48b.balloonInfo.initialPosY;
var _495=xPos-this.TIP_XOFFSET;
var _496=yPos-_48f-this.TIP_HEIGHT;
removeClass(_48d,"balloon-tip-topL");
removeClass(_48d,"balloon-tip-topR");
removeClass(_48d,"balloon-tip-bottomL");
removeClass(_48d,"balloon-tip-bottomR");
_48d.style.display="block";
if(_496>_491){
_48b.style.top=_496+"px";
_48d.style.top=_496+_48f-this.TIP_YOFFSET+"px";
if(_495+_490<_492){
addClass(_48d,"balloon-tip-bottomL");
_48b.style.left=_495+"px";
_48d.style.left=_495+this.TIP_XOFFSET+"px";
}else{
_495=xPos;
addClass(_48d,"balloon-tip-bottomR");
_48b.style.left=_495-_490+this.TIP_XOFFSET+"px";
_48d.style.left=_495-this.TIP_XOFFSET+"px";
}
}else{
_496=yPos+this.TIP_HEIGHT+this.TIP_YOFFSET;
_48b.style.top=_496+"px";
_48d.style.top=_496-this.TIP_HEIGHT+"px";
if(_495+_490<_492){
addClass(_48d,"balloon-tip-topL");
_48b.style.left=_495+"px";
_48d.style.left=_495+this.TIP_XOFFSET+"px";
}else{
_495=xPos;
addClass(_48d,"balloon-tip-topR");
_48b.style.left=_495-_490+this.TIP_XOFFSET+"px";
_48d.style.left=_495-this.TIP_XOFFSET+"px";
}
}
Core.hideShowCovered(_48b);
},hide:function(_497){
var _498=document.getElementById(_497+this.BALLOON_SUFFIX);
_498.balloonInfo.state=this.HIDE_REQUESTED;
setTimeout("BalloonRenderer._hide('"+_497+"');",this.DEFAULT_HIDE_DELAY);
},_hide:function(_499){
var _49a=document.getElementById(_499+this.BALLOON_SUFFIX);
if(_49a.balloonInfo.state==this.HIDE_REQUESTED){
_49a.balloonInfo.state=this.HIDING;
var _49b=document.getElementById(_49a.id+this.TIP_SUFFIX);
var _49c=document.getElementById(_49a.id+this.MIDDLE_SUFFIX);
if(_49c!=null&&_49c.firstChild!=null){
_49c.removeChild(_49c.firstChild);
}
_49a.style.display="none";
if(_49b!=null){
_49b.style.display="none";
}
if(_49a.balloonInfo.initialContent!=null){
_49a.balloonInfo.initialContent.style.display="none";
_49a.balloonInfo.initialContentParent.appendChild(_49a.balloonInfo.initialContent);
}
Core.hideShowCovered(_49a);
_49a.balloonInfo.state=this.HIDDEN;
}
},contentReady:function(_49d,_49e){
var _49f=document.getElementById(_49d+this.BALLOON_SUFFIX);
if(_49f.balloonInfo.state==this.INITIALIZED||_49f.balloonInfo.state==this.SHOWN||_49f.balloonInfo.state==this.SHOW_REQUESTED){
BalloonRenderer.positionBalloon(_49f,_49e);
_49f.balloonInfo.state=this.SHOWN;
}
},BalloonInfo:function(_4a0,_4a1,_4a2){
this.state=_4a0;
this.initialPosX=_4a1;
this.initialPosY=_4a2;
this.fullyInitialized=false;
this.isOverBalloon=false;
this.initialContent=null;
this.initialContentParent=null;
}};
var DataTrainRenderer={SPEED:25,DELAY:10,moveTrainTo:function(_4a3,_4a4){
var _4a5=document.getElementById(_4a3);
if(_4a5.trainWidth<=_4a5.windowWidth){
_4a5.style.left=(_4a5.windowWidth-_4a5.trainWidth-15)/2+"px";
_4a5.style.padding="0";
_4a5.leftShifter.src=_4a5.leftShifterDisabledImage;
_4a5.rightShifter.src=_4a5.rightShifterDisabledImage;
}else{
if(_4a4+_4a5.offsetWidth<=_4a5.windowWidth){
_4a5.style.left=(-1*_4a5.offsetWidth)+_4a5.windowWidth+"px";
_4a5.leftShifter.src=_4a5.leftShifterEnabledImage;
_4a5.rightShifter.src=_4a5.rightShifterDisabledImage;
}else{
if(_4a4<0){
_4a5.style.left=_4a4+"px";
_4a5.leftShifter.src=_4a5.leftShifterEnabledImage;
_4a5.rightShifter.src=_4a5.rightShifterEnabledImage;
return true;
}else{
_4a5.style.left="0px";
_4a5.leftShifter.src=_4a5.leftShifterDisabledImage;
_4a5.rightShifter.src=_4a5.rightShifterEnabledImage;
}
}
}
return false;
},move:function(_4a6,_4a7){
var _4a8=document.getElementById(_4a6);
var _4a9=Math.abs(DataTrainRenderer.SPEED/_4a7)<=1?DataTrainRenderer.SPEED*(_4a7>0?1:-1):_4a7;
if(_4a9==0){
return;
}
if(DataTrainRenderer.moveTrainTo(_4a6,parseInt(_4a8.style.left)+_4a9)==true){
setTimeout("DataTrainRenderer.move('"+_4a6+"', "+(_4a7-_4a9)+")",DataTrainRenderer.DELAY);
}
},shiftLeft:function(_4aa){
var _4ab=document.getElementById(_4aa);
DataTrainRenderer.move(_4ab.id,_4ab.windowWidth-_4ab.wagonWidth);
},shiftRight:function(_4ac){
var _4ad=document.getElementById(_4ac);
DataTrainRenderer.move(_4ad.id,-1*(_4ad.windowWidth-_4ad.wagonWidth));
},initTrain:function(_4ae,_4af,vwc,_4b1,_4b2,_4b3,_4b4,_4b5,_4b6){
var _4b7=document.getElementById(_4ae);
var _4b8=_4b7.parentNode;
var _4b9=findElementsEndingWithId(null,_4ae+"-wagon",null,false);
var _4ba=_4b9.length;
var _4bb=0;
if(_4ba>0){
_4bb=_4b9[0].parentNode.parentNode.childNodes[0].offsetWidth+_4b9[0].parentNode.parentNode.childNodes[1].offsetWidth+_4b9[0].parentNode.parentNode.childNodes[2].offsetWidth;
}
for(i=0;i<_4b9.length;i++){
var cur=_4b9[i];
cur.childNodes[0].style.top=(cur.offsetHeight-cur.childNodes[0].offsetHeight)/2+"px";
}
_4b7.trainWidth=_4ba*_4bb;
_4b7.style.width=_4b7.trainWidth+15+"px";
_4b7.windowWidth=_4b8.offsetWidth;
_4b7.wagonWidth=_4bb;
_4b7.styleClassRoot=_4b1;
_4b7.leftShifter=document.getElementById(_4ae+"-ls");
_4b7.rightShifter=document.getElementById(_4ae+"-rs");
_4b7.leftShifterEnabledImage=_4b6+"/"+_4b2;
_4b7.rightShifterEnabledImage=_4b6+"/"+_4b4;
_4b7.leftShifterDisabledImage=_4b6+"/"+_4b3;
_4b7.rightShifterDisabledImage=_4b6+"/"+_4b5;
DataTrainRenderer.moveTrainTo(_4b7.id,(-1*_4af*_4bb));
}};
var MenuHierarchyRenderer={HIERARCHIES:[],updateMenu:function(_4bd,_4be){
var menu=EventUtils.getElement(_4bd);
var _4c0=document.getElementById("hierarchyStatus"+"-"+menu.id.substring(0,menu.id.lastIndexOf("-")));
if(menu){
var _4c1=_4c0.value.indexOf(menu.id);
if(_4c1!=-1){
var _4c2=_4c1+menu.id.length+1;
var _4c3=_4c0.value.indexOf(";",_4c2);
var _4c4=_4c0.value.indexOf(",",_4c3);
var _4c5=_4c0.value.substring(_4c1,_4c4);
var _4c6=_4c0.value.substring(_4c2,_4c3);
var _4c7=menu.id+"="+_4c6+";"+menu.selectedIndex;
_4c0.value=_4c0.value.replace(_4c5,_4c7);
}
}
if(menu&&menu.dependency){
this.clearMenu(menu.dependency,_4be);
var _4c8=menu.options[menu.selectedIndex].value;
var _4c9=_4c0.value.indexOf(menu.dependency.id);
if(_4c9==-1){
_4c0.value=_4c0.value.concat(menu.dependency.id+"="+_4c8+";"+menu.dependency.selectedIndex+",");
}else{
var _4ca=menu.dependency.id+"="+_4c8+";"+menu.dependency.selectedIndex;
var pos=_4c0.value.indexOf(menu.dependency.id);
var pos2=pos+menu.dependency.id.length+1;
var pos3=_4c0.value.indexOf(";",pos2);
var pos4=_4c0.value.indexOf(",",pos3);
var _4cf=_4c0.value.substring(pos,pos4);
_4c0.value=_4c0.value.replace(_4cf,_4ca);
}
var _4d0=this.HIERARCHIES[_4be][_4c8];
if(_4d0){
for(i=0;i<_4d0.length;i++){
menu.dependency.options[i]=new Option(_4d0[i].text,_4d0[i].value);
}
if(menu.dependency.options.length>1){
removeClass(menu.dependency.parentNode,"hidden-audible");
menu.dependency.disabled=false;
}
}else{
var _4d1=document.jsfForm()[_4be+"-r"];
var url=_4d1.value;
url=addParameter(url,"q",_4c8);
var _4d3=new HTTPClient();
_4d3.init(url);
_4d3.asyncGET(new MenuHierarchyHandler(menu.dependency,_4be,_4c8));
}
}
},refreshMenu:function(_4d4,_4d5){
var menu=document.getElementById(_4d4);
var _4d7=document.getElementById("hierarchyStatus"+"-"+_4d4.substring(0,_4d4.lastIndexOf("-")));
if(_4d7.value!=""){
var pos=_4d7.value.indexOf(_4d4);
if(pos==-1){
return;
}
var pos2=pos+_4d4.length+1;
var _4da=_4d7.value.substring(pos2,_4d7.value.indexOf(";",pos2));
var _4db=document.jsfForm()[_4d5+"-r"];
var url=_4db.value;
url=addParameter(url,"q",_4da);
var _4dd=new HTTPClient();
_4dd.init(url);
_4dd.asyncGET(new MenuHierarchyHandler(menu,_4d5,_4da));
}
},clearMenu:function(_4de,_4df){
while(_4de.options.length>0){
_4de.options[0]=null;
}
var _4e0=this.HIERARCHIES[_4df]["-1000"];
_4de.options[0]=new Option(_4e0[0].text,_4e0[0].value);
if(_4de.dependency){
this.clearMenu(_4de.dependency,_4df);
}
addClass(_4de.parentNode,"hidden-audible");
_4de.disabled=true;
},cloneOptions:function(_4e1){
var _4e2=new Array(_4e1.length);
for(i=0;i<_4e1.length;i++){
_4e2[i]=new Option(_4e1[i].text,_4e1[i].value);
}
return _4e2;
},loadOptions:function(_4e3,_4e4,_4e5,_4e6){
var _4e7=_4e6.documentElement.childNodes;
var _4e8=1;
for(var i=0;i<_4e7.length;i++){
var item=_4e7.item(i);
if(item.nodeName!="option"){
continue;
}
var _4eb=item.childNodes[0].childNodes[0].nodeValue;
var _4ec=item.childNodes[1].childNodes[0].nodeValue;
_4e3.options[_4e8++]=new Option(_4ec,_4eb);
}
this.HIERARCHIES[_4e4][_4e5]=this.cloneOptions(_4e3.options);
var _4ed=document.getElementById("hierarchyStatus"+"-"+_4e3.id.substring(0,_4e3.id.lastIndexOf("-")));
var pos=_4ed.value.indexOf(_4e3.id);
if(pos!=-1){
var pos2=_4ed.value.indexOf(";",pos);
var pos3=_4ed.value.indexOf(",",pos2);
var _4f1=_4ed.value.substring(pos2+1,pos3);
_4e3.selectedIndex=_4f1;
}
if(_4e3.options.length>1){
removeClass(_4e3.parentNode,"hidden-audible");
_4e3.disabled=false;
}
}};
function MenuHierarchyHandler(_4f2,_4f3,_4f4){
this.menu=_4f2;
this.hierarchyId=_4f3;
this.parentValue=_4f4;
}
MenuHierarchyHandler.prototype.onInit=function(){
};
MenuHierarchyHandler.prototype.onError=function(){
};
MenuHierarchyHandler.prototype.onProgress=function(){
};
MenuHierarchyHandler.prototype.onLoad=function(_4f5){
MenuHierarchyRenderer.loadOptions(this.menu,this.hierarchyId,this.parentValue,_4f5);
};
var SuggestiveInputRenderer={KEYUP:38,KEYDOWN:40,KEYENTER:13,KEYTAB:9,DELAY:100,CACHES:[],initSuggestiveInput:function(_4f6,_4f7,_4f8){
var _4f9=document.getElementById(_4f6);
var _4fa=[];
_4fa[""]=[];
this.CACHES[_4f6]=_4fa;
_4f9.queryURL=_4f8;
_4f9.styleClassRoot=_4f7;
_4f9.autocomplete="off";
addEvent(_4f9,"keydown",this.keydownHandler);
addEvent(_4f9,"change",this.changeHandler);
addEvent(_4f9,"blur",this.blurHandler);
var _4fb=document.getElementById(_4f6+"-hidden");
if(_4fb.value){
_4fb.inputValue=_4f9.value;
}
},changeHandler:function(_4fc){
theEvent=_4fc?_4fc:event;
SuggestiveInputRenderer._changeHandler(getEventElement(theEvent));
},_changeHandler:function(_4fd){
this.unselect(_4fd);
},blurHandler:function(_4fe){
theEvent=_4fe?_4fe:event;
SuggestiveInputRenderer._blurHandler(getEventElement(theEvent));
},_blurHandler:function(_4ff){
SuggestiveInputRenderer.hideSuggestions(_4ff);
},keydownHandler:function(_500){
theEvent=_500?_500:event;
SuggestiveInputRenderer._keydownHandler(theEvent,getEventElement(theEvent));
},_keydownHandler:function(_501,_502){
var _503=SuggestiveInputRenderer.getSuggestionsDiv(_502);
var key=getKeyPressed(_501);
if(_503.style.visibility=="hidden"&&key!=this.KEYTAB||(key!=this.KEYUP&&key!=this.KEYDOWN&&key!=this.KEYENTER&&key!=this.KEYTAB)){
window.clearTimeout(_502.timeoutID);
_502.timeoutID=window.setTimeout("SuggestiveInputRenderer.showSuggestions(\""+_502.id+"\");",this.DELAY);
return true;
}
var _505=this.getSelectedDivIndex(_503);
if((key==this.KEYENTER)||(key==this.KEYTAB)){
if(_505>=0){
var _506=this.setSelectedDiv(_503,_505);
SuggestiveInputRenderer._selectResult(_506);
}
return false;
}else{
if(key==this.KEYUP){
this.setSelectedDiv(_503,_505-1);
}else{
if(key==this.KEYDOWN){
this.setSelectedDiv(_503,_505+1);
}
}
}
return true;
},showSuggestions:function(_507){
var _508=document.getElementById(_507);
var _509=_508.value.toLowerCase();
var _50a=SuggestiveInputRenderer.CACHES[_508.id][_509.toUpperCase()];
if(!this.unselect(_508)){
return;
}
if(!_50a){
window.clearTimeout(_508.timeoutID);
_508.timeoutID=window.setTimeout("SuggestiveInputRenderer.doQuery(\""+_508.id+"\");",this.DELAY);
}else{
var _50b=SuggestiveInputRenderer.getSuggestionsDiv(_508);
var x=_508.offsetLeft;
var y=_508.offsetTop+_508.offsetHeight;
var _50e=_508;
while(_50e.offsetParent){
_50e=_50e.offsetParent;
x+=_50e.offsetLeft;
y+=_50e.offsetTop;
}
_50b.style.left=x+"px";
_50b.style.top=y+"px";
while(_50b.childNodes.length>0){
_50b.removeChild(_50b.childNodes[0]);
}
for(var i=0;i<_50a.length;i++){
var _510=HTMLUtils.addDiv(_50b);
addClass(_510,_508.styleClassRoot+"-sug-div");
_510.id="test";
_510.onmousedown=SuggestiveInputRenderer.selectResult;
_510.onmousemove=SuggestiveInputRenderer.highlightResult;
_510.onmouseout=SuggestiveInputRenderer.unhighlightResult;
_510.inputID=_507;
var _511=HTMLUtils.addSpan(_510);
addClass(_511,_508.styleClassRoot+"-sug-span");
_511.key=_50a[i][0];
_511.innerHTML=_50a[i][1];
_511.id="suggestion";
_511.inputID=_507;
}
if(_50a.length==1&&_50a[0][1].length==_509.length){
this._selectResult(this.setSelectedDiv(_50b,0));
_50b.style.visibility="hidden";
}else{
_50b.style.visibility=_50a.length>0?"visible":"hidden";
}
Core.hideShowCovered(_50b);
}
},hideSuggestions:function(_512){
var _513=SuggestiveInputRenderer.getSuggestionsDiv(_512);
_513.style.visibility="hidden";
Core.hideShowCovered(_513);
},getSuggestionsDiv:function(_514){
if(!_514.suggestionsDiv){
_514.suggestionsDiv=HTMLUtils.addDiv(document.body);
addClass(_514.suggestionsDiv,_514.styleClassRoot+"-sug");
}
return _514.suggestionsDiv;
},selectResult:function(){
SuggestiveInputRenderer._selectResult(this);
},_selectResult:function(_515){
var _516=_515.getElementsByTagName("span");
if(_516){
for(var i=0;i<_516.length;i++){
if(_516[i].id=="suggestion"){
var _518=document.getElementById(_516[i].inputID);
var _519=document.getElementById(_516[i].inputID+"-hidden");
_518.value=_516[i].innerText?_516[i].innerText:_516[i].textContent;
addClass(_518,_518.styleClassRoot+"-input-selected");
_519.value=_516[i].key;
_519.inputValue=_518.value;
_518.focus();
SuggestiveInputRenderer.hideSuggestions(_518);
return;
}
}
}
},unselect:function(_51a){
var _51b=document.getElementById(_51a.id+"-hidden");
if(_51a.value==_51b.inputValue){
return false;
}
removeClass(_51a,_51a.styleClassRoot+"-input-selected");
_51b.value="";
_51b.inputValue="";
return true;
},getSelectedDivIndex:function(pDiv){
var divs=pDiv.getElementsByTagName("div");
if(divs){
for(var i=0;i<divs.length;i++){
if(divs[i].selected){
return i;
}
}
}
return -1;
},setSelectedDiv:function(pDiv,_520){
var _521=this.getSelectedDivIndex(pDiv);
var _522;
var divs=pDiv.getElementsByTagName("div");
if(divs&&divs.length>0){
if(_520>=divs.length){
_520=0;
}else{
if(_520<0){
_520=divs.length-1;
}
}
if(_521!=-1){
divs[_521].selected=false;
this._unhighlightResult(divs[_521]);
}
this._highlightResult(divs[_520]);
divs[_520].selected=true;
_522=divs[_520];
}
return _522;
},highlightResult:function(){
SuggestiveInputRenderer._highlightResult(this);
},_highlightResult:function(pDiv){
var _525=document.getElementById(pDiv.inputID);
addClass(pDiv,_525.styleClassRoot+"-sug-div-over");
},unhighlightResult:function(){
SuggestiveInputRenderer._unhighlightResult(this);
},_unhighlightResult:function(pDiv){
if(!pDiv.selected){
var _527=document.getElementById(pDiv.inputID);
removeClass(pDiv,_527.styleClassRoot+"-sug-div-over");
}
},doQuery:function(_528){
var _529=document.getElementById(_528);
var _52a=_529.value;
var url=_529.queryURL;
url=addParameter(url,"q",_52a);
var _52c=new HTTPClient();
_52c.init(url);
_52c.asyncGET(new SuggestiveInputHandler(_528,_52a));
},loadSuggestions:function(_52d,_52e,_52f){
var _530=_52f.getElementsByTagName("suggestion");
var _531=[];
for(var i=0;i<_530.length;i++){
var tmp=[];
var _534=_530[i];
var _535=_534.getElementsByTagName("value")[0];
var _536=_534.getElementsByTagName("label")[0];
tmp[0]=_535.text||_535.textContent;
tmp[1]=_536.text||_536.textContent;
_531[i]=tmp;
}
SuggestiveInputRenderer.CACHES[_52d][_52e.toUpperCase()]=_531;
this.showSuggestions(_52d);
}};
function SuggestiveInputHandler(_537,_538){
this.inputID=_537;
this.queryString=_538;
}
SuggestiveInputHandler.prototype.onInit=function(){
};
SuggestiveInputHandler.prototype.onError=function(){
};
SuggestiveInputHandler.prototype.onProgress=function(){
};
SuggestiveInputHandler.prototype.onLoad=function(_539){
SuggestiveInputRenderer.loadSuggestions(this.inputID,this.queryString,_539);
};
function NullHandler(){
}
NullHandler.prototype.onInit=function(){
};
NullHandler.prototype.onError=function(_53a,_53b){
};
NullHandler.prototype.onProgress=function(_53c,_53d){
};
NullHandler.prototype.onLoad=function(_53e){
};
var AjaxActionRenderer={sendRequest:function(_53f,_540,_541,_542,_543,_544){
var _545=new HTTPClient();
var url=_540;
for(i=0,n=_541.length;i<n;i++){
url+="&"+_541[i][0];
url+="="+_541[i][1];
}
for(i=0,n=_542.length;i<n;i++){
var _547=document.getElementById(_542[i][1]);
url=addParameter(url,_542[i][0],_547.value);
}
for(i=0,n=_543.length;i<n;i++){
url+="&"+_543[i][0];
url+="="+eval(_543[i][1]);
}
if(_544!=null){
url+="&aaSrcComp";
url+="="+_544;
}
_545.init(url);
if(_53f.length==0){
_53f="NullHandler";
}
_545.asyncGET(eval("new "+_53f+"()"));
}};
var MessagesRenderer={moveMessages:function(_548,_549){
var _54a=document.getElementById(_548);
var _54b=findElementsEndingWithId(null,_549,null,true)[0];
if(_54b!=null){
_54a.appendChild(_54b);
StyleUtils.removeClass(_54b,"messagesWillMove");
}
}};
var StarRenderer={manageStarClicked:function(pEvt){
pEvt=(pEvt)?pEvt:window.event;
var _54d=getEventElement(pEvt);
var _54e=_54d.parentNode;
var _54f=_54e.parentNode;
var _550=window.document.getElementById(_54f.id+"-cr");
var _551=window.document.getElementById(_54f.id+"-iw");
var iw=parseInt(_551.value);
var _553=StarRenderer.getLIIndexInUL(_54e);
var _554=window.document.getElementById(_54f.id+"-hf");
if(parseInt(_554.value)==_553){
_553=0;
}
_554.value=_553;
_550.style.width=_553*iw+"px";
},getLIIndexInUL:function(_555){
var _556=_555.parentNode;
var _557=_556.childNodes;
var j=0;
for(var i=0;i<_557.length;i++){
if(/^li$/i.test(_557[i].tagName)){
if(_557[i]==_555){
return j;
}
j++;
}
}
return -1;
}};
var WindowRenderer={openWindow:function(sURL,_55b,_55c,_55d,_55e,_55f){
var wind=openWindow(sURL,_55b,_55c,_55d);
if(_55f!=""&&wind==null){
eval(_55f+"('"+_55e+"')");
}
return wind;
}};
var __FORM__=1;
var FORM_DATA_SNAPSHOT=new Array();
function FormDataSnapshot(_561){
this.form=_561;
this.data=new Array();
}
function ElementDataSnapshot(_562,_563){
this.element=_562;
this.data=_563;
}
function fillFormDataSnapshot(_564){
for(var i=0;i<_564.form.elements.length;i++){
var _566=_564.form.elements[i];
var _567=_566.type;
var _568=null;
var _569=false;
var _56a=false;
if(_566.id.indexOf("not_relevant")!=-1){
_569=true;
}else{
if(_566.id.indexOf("relevant")!=-1){
_56a=true;
}
}
if(!_569){
if(_567=="checkbox"||_567=="radio"){
_568=new ElementDataSnapshot(_566,_566.checked);
}else{
if(_567=="select-one"){
_568=new ElementDataSnapshot(_566,_566.selectedIndex);
}else{
if(_567=="select-multiple"){
var _56b=new Array();
for(var j=0;j<_566.length;j++){
_56b[_56b.length]=_566.options[j].selected;
}
_568=new ElementDataSnapshot(_566,_56b);
}else{
if(_567=="text"||_567=="textarea"){
_568=new ElementDataSnapshot(_566,_566.value);
}else{
if(_567=="hidden"&&_56a){
_568=new ElementDataSnapshot(_566,_566.value);
}
}
}
}
}
}
if(_568!=null){
_564.data[_564.data.length]=_568;
}
}
}
function findFormDataSnapshot(_56d){
var _56e=null;
for(var i=0;i<FORM_DATA_SNAPSHOT.length;i++){
if(FORM_DATA_SNAPSHOT[i].form==_56d){
_56e=FORM_DATA_SNAPSHOT[i];
break;
}
}
return _56e;
}
function takeFormDataSnapshotOnload(){
takeFormDataSnapshot(window.document.jsfForm());
}
function takeFormDataSnapshot(_570){
if(_570["formChanged"].value!="1"){
var _571=findFormDataSnapshot(_570);
if(_571==null){
_571=new FormDataSnapshot(_570);
FORM_DATA_SNAPSHOT[FORM_DATA_SNAPSHOT.length]=_571;
}
fillFormDataSnapshot(_571);
}
}
function isIgnoredElement(_572,_573){
var _574=false;
if(_573&&typeof (_573.length)=="number"){
for(var i=0;i<_573.length;i++){
if(_572==_573[i]){
_574=true;
break;
}
}
}else{
if(_572==_573){
_574=true;
}
}
return _574;
}
function checkFormDataChangesOnsubmit(_576){
if(isFormDataChanged(_576)){
_576["formChanged"].value="1";
}
}
function isFormDataChanged(_577,_578){
if(_577["formChanged"].value=="1"){
return true;
}
var _579=false;
var _57a=findFormDataSnapshot(_577);
if(_57a!=null){
for(var i=0;i<_57a.data.length;i++){
var _57c=_57a.data[i].element;
var _57d=_57c.type;
var _57e=_57a.data[i].data;
if(!isIgnoredElement(_57c,_578)){
if(_57d=="checkbox"||_57d=="radio"){
if(_57e!=_57c.checked){
_579=true;
break;
}
}else{
if(_57d=="select-one"){
if(_57e!=_57c.selectedIndex){
_579=true;
break;
}
}else{
if(_57d=="select-multiple"){
for(var j=0;j<_57c.length;j++){
if(_57e[j]!=_57c.options[j].selected){
_579=true;
break;
}
}
}else{
if(_57d=="hidden"||_57d=="text"||_57d=="textarea"){
if(_57e!=_57c.value){
_579=true;
break;
}
}
}
}
}
}
}
}
if(_579){
_577["formChanged"].value="1";
}
return _579;
}
function formCheckAll(_580){
var _581=_580.checked;
var _582=findParentOfType(_580,"TABLE");
if(_582==null){
return _581;
}
var _583=ElementUtils.getChildrenElementsByTagName(ElementUtils.getChildElementByTagName(_582,"TBODY"),"INPUT");
for(var i=0;i<_583.length;i++){
var chk=_583[i];
if(chk.type=="checkbox"&&!chk.disabled){
chk.checked=_581;
}
}
return _581;
}
function formSyncCheckAll(_586){
formSyncCheckAll2(_586,false);
}
function formSyncCheckAll2(_587,_588){
if(typeof _587=="string"){
_587=document.getElementById(_587);
if(_587==null){
return;
}
}
var _589=getSelectedRowCount(_587);
var _58a=(_589.nbSelectedRows==_589.totalNbRows);
if((_588&&!_58a)||!_588){
var _58b=findParentOfType(_587,"TABLE");
if(_58b==null){
return _589.nbSelectedRows>0;
}
var _58c=ElementUtils.getChildrenElementsByTagName(ElementUtils.getChildElementByTagName(_58b,"THEAD"),"INPUT");
for(var j=0;j<_58c.length;i++){
var chk=_58c[j];
if(chk.type=="checkbox"&&!chk.disabled){
chk.checked=_58a;
break;
}
}
}
return _589.nbSelectedRows>0;
}
function SelectedRowResult(_58f,_590){
this.nbSelectedRows=_58f;
this.totalNbRows=_590;
}
function getSelectedRowCount(_591){
var _592=0;
var _593=0;
var _594=findParentOfType(_591,"TABLE");
if(_594!=null){
var _595=ElementUtils.getChildrenElementsByTagName(ElementUtils.getChildElementByTagName(_594,"TBODY"),"INPUT");
for(var k=0;k<_595.length;k++){
var chk=_595[k];
if(chk.type=="checkbox"&&!chk.disabled){
if(chk.checked){
_592++;
}
_593++;
}
}
}
return new SelectedRowResult(_592,_593);
}
Calendar=function(_598,_599,_59a,_59b,_59c,_59d,_59e,_59f){
this.calendarID=_59f;
this.activeDiv=null;
this.currentDateEl=null;
this.getDateStatus=null;
this.timeout=null;
this.onSelected=_59a||null;
this.onClose=_59b||null;
this.onClear=_59c||null;
this.onDone=_59d||null;
this.onCancel=_59e||null;
this.dragging=false;
this.hidden=false;
this.minYear=1970;
this.maxYear=2050;
this.dateFormat=Calendar._TT["DEF_DATE_FORMAT"];
this.ttDateFormat=Calendar._TT["TT_DATE_FORMAT"];
this.isPopup=true;
this.weekNumbers=true;
this.firstDayOfWeek=_598;
this.showsOtherMonths=false;
this.dateStr=_599;
this.ar_days=null;
this.showsCalendar=true;
this.showsTime=false;
this.showsActionBar=this.showsTime;
this.time24=true;
this.yearStep=2;
this.table=null;
this.element=null;
this.tbody=null;
this.firstdayname=null;
this.monthsCombo=null;
this.yearsCombo=null;
this.hilitedMonth=null;
this.activeMonth=null;
this.hilitedYear=null;
this.activeYear=null;
this.dateClicked=false;
this.t12=null;
this.hourInput=null;
this.ampmInput=null;
this.minInput=null;
if(typeof Calendar._SDN=="undefined"){
if(typeof Calendar._SDN_len=="undefined"){
Calendar._SDN_len=3;
}
var ar=new Array();
for(var i=8;i>0;){
ar[--i]=Calendar._DN[i].substr(0,Calendar._SDN_len);
}
Calendar._SDN=ar;
if(typeof Calendar._SMN_len=="undefined"){
Calendar._SMN_len=3;
}
ar=new Array();
for(var i=12;i>0;){
ar[--i]=Calendar._MN[i].substr(0,Calendar._SMN_len);
}
Calendar._SMN=ar;
}
};
Calendar._C=null;
Calendar.is_ie=(/msie/i.test(navigator.userAgent)&&!/opera/i.test(navigator.userAgent));
Calendar.is_ie5=(Calendar.is_ie&&/msie 5\.0/i.test(navigator.userAgent));
Calendar.is_opera=/opera/i.test(navigator.userAgent);
Calendar.is_khtml=/Konqueror|Safari|KHTML/i.test(navigator.userAgent);
Calendar.getAbsolutePos=function(el){
var SL=0,ST=0;
var _5a5=/^div$/i.test(el.tagName);
if(_5a5&&el.scrollLeft){
SL=el.scrollLeft;
}
if(_5a5&&el.scrollTop){
ST=el.scrollTop;
}
var r={x:el.offsetLeft-SL,y:el.offsetTop-ST};
if(el.offsetParent){
var tmp=this.getAbsolutePos(el.offsetParent);
r.x+=tmp.x;
r.y+=tmp.y;
}
return r;
};
Calendar.isRelated=function(el,evt){
var _5aa=evt.relatedTarget;
if(!_5aa){
var type=evt.type;
if(type=="mouseover"){
_5aa=evt.fromElement;
}else{
if(type=="mouseout"){
_5aa=evt.toElement;
}
}
}
while(_5aa){
if(_5aa==el){
return true;
}
_5aa=_5aa.parentNode;
}
return false;
};
Calendar.removeClass=function(el,_5ad){
if(!(el&&el.className)){
return;
}
var cls=el.className.split(" ");
var ar=new Array();
for(var i=cls.length;i>0;){
if(cls[--i]!=_5ad){
ar[ar.length]=cls[i];
}
}
el.className=ar.join(" ");
};
Calendar.addClass=function(el,_5b2){
Calendar.removeClass(el,_5b2);
el.className+=" "+_5b2;
};
Calendar.getElement=function(ev){
var f=Calendar.is_ie?window.event.srcElement:ev.currentTarget;
while(f.nodeType!=1||/^div$/i.test(f.tagName)){
f=f.parentNode;
}
return f;
};
Calendar.getTargetElement=function(ev){
var f=Calendar.is_ie?window.event.srcElement:ev.target;
while(f.nodeType!=1){
f=f.parentNode;
}
return f;
};
Calendar.stopEvent=function(ev){
ev||(ev=window.event);
if(Calendar.is_ie){
ev.cancelBubble=true;
ev.returnValue=false;
}else{
ev.preventDefault();
ev.stopPropagation();
}
return false;
};
Calendar.addEvent=function(el,_5b9,func){
if(el.attachEvent){
el.attachEvent("on"+_5b9,func);
}else{
if(el.addEventListener){
el.addEventListener(_5b9,func,true);
}else{
el["on"+_5b9]=func;
}
}
};
Calendar.removeEvent=function(el,_5bc,func){
if(el.detachEvent){
el.detachEvent("on"+_5bc,func);
}else{
if(el.removeEventListener){
el.removeEventListener(_5bc,func,true);
}else{
el["on"+_5bc]=null;
}
}
};
Calendar.createElement=function(type,_5bf){
var el=null;
el=document.createElement(type);
if(typeof _5bf!="undefined"){
_5bf.appendChild(el);
}
return el;
};
Calendar._add_evs=function(el){
with(Calendar){
addEvent(el,"mouseover",dayMouseOver);
addEvent(el,"mousedown",dayMouseDown);
addEvent(el,"mouseout",dayMouseOut);
if(is_ie){
addEvent(el,"dblclick",dayMouseDblClick);
el.setAttribute("unselectable",true);
}
}
};
Calendar.findMonth=function(el){
if(typeof el.month!="undefined"){
return el;
}else{
if(typeof el.parentNode.month!="undefined"){
return el.parentNode;
}
}
return null;
};
Calendar.findYear=function(el){
if(typeof el.year!="undefined"){
return el;
}else{
if(typeof el.parentNode.year!="undefined"){
return el.parentNode;
}
}
return null;
};
Calendar.showMonthsCombo=function(){
var cal=Calendar._C;
if(!cal){
return false;
}
var cal=cal;
var cd=cal.activeDiv;
var mc=cal.monthsCombo;
if(cal.hilitedMonth){
Calendar.removeClass(cal.hilitedMonth,"hilite");
}
if(cal.activeMonth){
Calendar.removeClass(cal.activeMonth,"active");
}
var mon=cal.monthsCombo.getElementsByTagName("div")[cal.date.getMonth()];
Calendar.addClass(mon,"active");
cal.activeMonth=mon;
var opts=cd.navtype<0?"Bl":"Br";
showAtElement2(mc,cd,opts,cal.element);
};
Calendar.showYearsCombo=function(fwd,_5ca){
var cal=Calendar._C;
if(!cal){
return false;
}
var cal=cal;
var cd=cal.activeDiv;
var yc=cal.yearsCombo;
if(cal.hilitedYear){
Calendar.removeClass(cal.hilitedYear,"hilite");
}
if(cal.activeYear){
Calendar.removeClass(cal.activeYear,"active");
}
cal.activeYear=null;
var Y=_5ca==20?(fwd?cal.date.getFullYear()-5:cal.date.getFullYear()+5):cal.date.getFullYear()+(fwd?1:-1);
if(fwd&&Y<cal.minYear){
Y=cal.minYear;
}else{
if(!fwd&&Y>cal.maxYear){
Y=cal.maxYear;
}
}
var yr=yc.firstChild;
var show=false;
for(var i=12;i>0;--i){
if(Y>=cal.minYear&&Y<=cal.maxYear){
yr.innerHTML=Y;
yr.year=Y;
yr.style.display="block";
show=true;
}else{
yr.style.display="none";
}
yr=yr.nextSibling;
Y+=fwd?cal.yearStep:-cal.yearStep;
}
if(show){
var opts=cd.navtype<0?"Bl":"Br";
showAtElement2(yc,cd,opts,cal.element);
}
};
Calendar.tableMouseUp=function(ev){
var cal=Calendar._C;
if(!cal){
return false;
}
if(cal.timeout){
clearTimeout(cal.timeout);
}
var el=cal.activeDiv;
if(!el){
return false;
}
var _5d6=Calendar.getTargetElement(ev);
ev||(ev=window.event);
Calendar.removeClass(el,"active");
if(_5d6==el||_5d6.parentNode==el){
Calendar.cellClick(el,ev);
}
var mon=Calendar.findMonth(_5d6);
var date=null;
if(mon){
date=new Date(cal.date);
if(mon.month!=date.getMonth()){
date.setMonth(mon.month);
cal.setDate(date);
cal.dateClicked=false;
cal.callHandler();
}
}else{
var year=Calendar.findYear(_5d6);
if(year){
date=new Date(cal.date);
if(year.year!=date.getFullYear()){
date.setFullYear(year.year);
cal.setDate(date);
cal.dateClicked=false;
cal.callHandler();
}
}
}
with(Calendar){
removeEvent(document,"mouseup",tableMouseUp);
removeEvent(document,"mouseover",tableMouseOver);
removeEvent(document,"mousemove",tableMouseOver);
cal._hideCombos();
_C=null;
return stopEvent(ev);
}
};
Calendar.tableMouseOver=function(ev){
var cal=Calendar._C;
if(!cal){
return;
}
var el=cal.activeDiv;
var _5dd=Calendar.getTargetElement(ev);
if(_5dd==el||_5dd.parentNode==el){
Calendar.addClass(el,"hilite active");
Calendar.addClass(el.parentNode,"rowhilite");
}else{
if(typeof el.navtype=="undefined"||(el.navtype!=50&&(el.navtype==0||Math.abs(el.navtype)>2))){
Calendar.removeClass(el,"active");
}
Calendar.removeClass(el,"hilite");
Calendar.removeClass(el.parentNode,"rowhilite");
}
ev||(ev=window.event);
if(el.navtype==50&&_5dd!=el){
var pos=Calendar.getAbsolutePos(el);
var w=el.offsetWidth;
var x=ev.clientX;
var dx;
var _5e2=true;
if(x>pos.x+w){
dx=x-pos.x-w;
_5e2=false;
}else{
dx=pos.x-x;
}
if(dx<0){
dx=0;
}
var _5e3=el._range;
var _5e4=el._current;
var _5e5=Math.floor(dx/10)%_5e3.length;
for(var i=_5e3.length;--i>=0;){
if(_5e3[i]==_5e4){
break;
}
}
while(_5e5-->0){
if(_5e2){
if(--i<0){
i=_5e3.length-1;
}
}else{
if(++i>=_5e3.length){
i=0;
}
}
}
var _5e7=_5e3[i];
el.innerHTML=_5e7;
cal.onUpdateTime();
}
var mon=Calendar.findMonth(_5dd);
if(mon){
if(mon.month!=cal.date.getMonth()){
if(cal.hilitedMonth){
Calendar.removeClass(cal.hilitedMonth,"hilite");
}
Calendar.addClass(mon,"hilite");
cal.hilitedMonth=mon;
}else{
if(cal.hilitedMonth){
Calendar.removeClass(cal.hilitedMonth,"hilite");
}
}
}else{
if(cal.hilitedMonth){
Calendar.removeClass(cal.hilitedMonth,"hilite");
}
var year=Calendar.findYear(_5dd);
if(year){
if(year.year!=cal.date.getFullYear()){
if(cal.hilitedYear){
Calendar.removeClass(cal.hilitedYear,"hilite");
}
Calendar.addClass(year,"hilite");
cal.hilitedYear=year;
}else{
if(cal.hilitedYear){
Calendar.removeClass(cal.hilitedYear,"hilite");
}
}
}
}
return Calendar.stopEvent(ev);
};
Calendar.tableMouseDown=function(ev){
if(Calendar.getTargetElement(ev)==Calendar.getElement(ev)){
return Calendar.stopEvent(ev);
}
};
Calendar.calDragIt=function(ev){
var cal=Calendar._C;
if(!(cal&&cal.dragging)){
return false;
}
var posX;
var posY;
if(Calendar.is_ie){
posY=window.event.clientY+document.body.scrollTop;
posX=window.event.clientX+document.body.scrollLeft;
}else{
posX=ev.pageX;
posY=ev.pageY;
}
cal.hideShowCovered();
var st=cal.element.style;
st.left=(posX-cal.xOffs)+"px";
st.top=(posY-cal.yOffs)+"px";
return Calendar.stopEvent(ev);
};
Calendar.calDragEnd=function(ev){
var cal=Calendar._C;
if(!cal){
return false;
}
cal.dragging=false;
with(Calendar){
removeEvent(document,"mousemove",calDragIt);
removeEvent(document,"mouseup",calDragEnd);
tableMouseUp(ev);
}
cal.hideShowCovered();
};
Calendar.dayMouseDown=function(ev){
var el=Calendar.getElement(ev);
if(el.disabled){
return false;
}
var cal=el.calendar;
cal.activeDiv=el;
Calendar._C=cal;
if(el.navtype!=300){
with(Calendar){
if(el.navtype==50){
el._current=el.innerHTML;
addEvent(document,"mousemove",tableMouseOver);
}else{
addEvent(document,Calendar.is_ie5?"mousemove":"mouseover",tableMouseOver);
}
addClass(el,"hilite active");
addEvent(document,"mouseup",tableMouseUp);
}
}else{
if(cal.isPopup){
cal._dragStart(ev);
}
}
if(el.navtype==-1||el.navtype==1||el.navtype==10){
if(cal.timeout){
clearTimeout(cal.timeout);
}
cal.timeout=setTimeout("Calendar.showMonthsCombo()",250);
}else{
if(el.navtype==-2||el.navtype==2||el.navtype==20){
if(cal.timeout){
clearTimeout(cal.timeout);
}
cal.timeout=setTimeout((el.navtype>0)?"Calendar.showYearsCombo(true, "+el.navtype+")":"Calendar.showYearsCombo(false, "+el.navtype+")",250);
}else{
cal.timeout=null;
}
}
return Calendar.stopEvent(ev);
};
Calendar.dayMouseDblClick=function(ev){
Calendar.cellClick(Calendar.getElement(ev),ev||window.event);
if(Calendar.is_ie){
document.selection.empty();
}
};
Calendar.dayMouseOver=function(ev){
var el=Calendar.getElement(ev);
if(Calendar.isRelated(el,ev)||Calendar._C||el.disabled){
return false;
}
if(el.ttip){
if(el.ttip.substr(0,1)=="_"){
el.ttip=el.caldate.print(el.calendar.ttDateFormat)+el.ttip.substr(1);
}
el.calendar.tooltips.innerHTML=el.ttip;
}
if(el.navtype!=300){
Calendar.addClass(el,"hilite");
if(el.caldate){
Calendar.addClass(el.parentNode,"rowhilite");
}
}
return Calendar.stopEvent(ev);
};
Calendar.dayMouseOut=function(ev){
with(Calendar){
var el=getElement(ev);
if(isRelated(el,ev)||_C||el.disabled){
return false;
}
removeClass(el,"hilite");
if(el.caldate){
removeClass(el.parentNode,"rowhilite");
}
el.calendar.tooltips.innerHTML=_TT["SEL_DATE"];
return stopEvent(ev);
}
};
Calendar.cellClick=function(el,ev){
var cal=el.calendar;
var _5fd=false;
var _5fe=false;
var date=null;
if(typeof el.navtype=="undefined"){
Calendar.removeClass(cal.currentDateEl,"selected");
Calendar.addClass(el,"selected");
_5fd=(cal.currentDateEl==el);
if(!_5fd){
cal.currentDateEl=el;
}
var _600=new Date(el.caldate);
var _601=el.otherMonth;
copyTime(_600,cal.date);
cal.setDate(_600);
_5fe=true;
cal.dateClicked=!_601;
}else{
if(el.navtype==200){
Calendar.removeClass(el,"hilite");
cal.callCloseHandler();
return;
}
date=(el.navtype==0)?new Date():new Date(cal.date);
cal.dateClicked=false;
var year=date.getFullYear();
var mon=date.getMonth();
function setMonth(m){
var day=date.getDate();
var max=date.getMonthDays(m);
if(day>max){
date.setDate(max);
}
date.setMonth(m);
}
switch(el.navtype){
case 400:
Calendar.removeClass(el,"hilite");
var text=Calendar._TT["ABOUT"];
if(typeof text!="undefined"){
text+=cal.showsTime?Calendar._TT["ABOUT_TIME"]:"";
}else{
text="Help and about box text is not translated into this language.\n"+"If you know this language and you feel generous please update\n"+"the corresponding file in \"lang\" subdir to match calendar-en.js\n"+"and send it back to <mishoo@infoiasi.ro> to get it into the distribution  ;-)\n\n"+"Thank you!\n"+"http://dynarch.com/mishoo/calendar.epl\n";
}
alert(text);
return;
case -2:
if(year>cal.minYear){
date.setFullYear(year-1);
}
break;
case -1:
if(mon>0){
setMonth(mon-1);
}else{
if(year-->cal.minYear){
date.setFullYear(year);
setMonth(11);
}
}
break;
case 1:
if(mon<11){
setMonth(mon+1);
}else{
if(year<cal.maxYear){
date.setFullYear(year+1);
setMonth(0);
}
}
break;
case 2:
if(year<cal.maxYear){
date.setFullYear(year+1);
}
break;
case 100:
cal.setFirstDayOfWeek(el.fdow);
return;
case 50:
var _608=el._range;
var _609=el.innerHTML;
for(var i=_608.length;--i>=0;){
if(_608[i]==_609){
break;
}
}
if(ev&&ev.shiftKey){
if(--i<0){
i=_608.length-1;
}
}else{
if(++i>=_608.length){
i=0;
}
}
var _60b=_608[i];
el.innerHTML=_60b;
cal.onUpdateTime();
return;
case 0:
if((typeof cal.getDateStatus=="function")&&cal.getDateStatus(date,date.getFullYear(),date.getMonth(),date.getDate())){
return false;
}
break;
}
if(!date.equalsTo(cal.date)){
cal.setDate(date);
_5fe=true;
}
}
if(_5fe){
ev&&cal.callHandler();
}
if(_5fd){
Calendar.removeClass(el,"hilite");
ev&&cal.callCloseHandler();
}
};
Calendar.onUpdateTime=function(pEvt){
var h=parseInt(hourInput.value,10);
var h=parseInt(hourInput.value,10);
if(t12){
if(/pm/i.test(ampmInput.value)&&h<12){
h+=12;
}else{
if(/am/i.test(ampmInput.value)&&h==12){
h=0;
}
}
}
var d=calendar.date.getDate();
var m=calendar.date.getMonth();
var y=calendar.date.getFullYear();
calendar.date.setHours(h);
calendar.date.setMinutes(parseInt(minInput.value,10));
calendar.date.setFullYear(y);
calendar.date.setMonth(m);
calendar.date.setDate(d);
this.dateClicked=false;
calendar.callHandler();
};
Calendar.prototype.create=function(_par){
var _612=null;
if(!_par){
_612=document.getElementsByTagName("body")[0];
this.isPopup=true;
}else{
_612=_par;
this.isPopup=false;
}
this.date=this.dateStr?new Date(this.dateStr):new Date();
var _613=Calendar.createElement("table");
_613.id=this.calendarID+"-table";
this.table=_613;
_613.cellSpacing=0;
_613.cellPadding=0;
_613.calendar=this;
Calendar.addEvent(_613,"mousedown",Calendar.tableMouseDown);
var div=Calendar.createElement("div");
div.id=this.calendarID+"-mainDIV";
this.element=div;
div.className="calendar";
if(this.isPopup){
div.style.position="absolute";
div.style.display="none";
}
div.appendChild(_613);
var _615=Calendar.createElement("thead",_613);
var cell=null;
var row=null;
var cal=this;
var hh=function(text,cs,_61c,_61d){
cell=Calendar.createElement("td",row);
cell.id=_61d;
cell.colSpan=cs;
cell.className="button";
if(_61c!=0&&Math.abs(_61c)<=2){
cell.className+=" nav";
}
Calendar._add_evs(cell);
cell.calendar=cal;
cell.navtype=_61c;
cell.innerHTML="<div unselectable='on'>"+text+"</div>";
return cell;
};
row=Calendar.createElement("tr",_615);
var _61e=6;
(this.isPopup)&&--_61e;
(this.weekNumbers)&&++_61e;
hh("?",1,400,this.calendarID+"-help").ttip=Calendar._TT["INFO"];
this.title=hh("",_61e,300,this.calendarID+"-title");
this.title.className="title";
this.monthSpan=Calendar.createElement("span",this.title,this.calendarID+"-title-month");
this.monthSpan.className="title_month";
this.monthSpan.calendar=cal;
this.monthSpan.navtype=10;
Calendar._add_evs(this.monthSpan);
this.yearSpan=Calendar.createElement("span",this.title,this.calendarID+"-title-year");
this.yearSpan.className="title_year";
this.yearSpan.calendar=cal;
this.yearSpan.navtype=20;
Calendar._add_evs(this.yearSpan);
if(this.isPopup){
this.title.ttip=Calendar._TT["DRAG_TO_MOVE"];
this.title.style.cursor="move";
hh("&#x00d7;",1,200,this.calendarID+"-close").ttip=Calendar._TT["CLOSE"];
}
if(this.showsCalendar){
row=Calendar.createElement("tr",_615);
row.id=this.calendarID+"-head-row";
row.className="headrow";
this._nav_py=hh("&#x00ab;",1,-2,this.calendarID+"-prev-year");
this._nav_py.ttip=Calendar._TT["PREV_YEAR"];
this._nav_pm=hh("&#x2039;",1,-1,this.calendarID+"-prev-month");
this._nav_pm.ttip=Calendar._TT["PREV_MONTH"];
this._nav_now=hh(Calendar._TT["TODAY"],this.weekNumbers?4:3,0,this.calendarID+"-today");
this._nav_now.ttip=Calendar._TT["GO_TODAY"];
this._nav_nm=hh("&#x203a;",1,1,this.calendarID+"-next-month");
this._nav_nm.ttip=Calendar._TT["NEXT_MONTH"];
this._nav_ny=hh("&#x00bb;",1,2,this.calendarID+"-next-year");
this._nav_ny.ttip=Calendar._TT["NEXT_YEAR"];
row=Calendar.createElement("tr",_615);
row.className="daynames";
if(this.weekNumbers){
cell=Calendar.createElement("td",row);
cell.id=this.calendarID+"-week-num-header";
cell.className="name wn";
cell.innerHTML=Calendar._TT["WK"];
}
for(var i=7;i>0;--i){
cell=Calendar.createElement("td",row);
cell.id=this.calendarID+"-day-names-"+i;
if(!i){
cell.navtype=100;
cell.calendar=this;
Calendar._add_evs(cell);
}
}
this.firstdayname=(this.weekNumbers)?row.firstChild.nextSibling:row.firstChild;
this._displayWeekdays();
}
var _620=Calendar.createElement("tbody",_613);
this.tbody=_620;
if(this.showsCalendar){
for(i=6;i>0;--i){
row=Calendar.createElement("tr",_620);
if(this.weekNumbers){
cell=Calendar.createElement("td",row);
cell.id=this.calendarID+"-week-num-"+i;
}
for(var j=7;j>0;--j){
cell=Calendar.createElement("td",row);
cell.id=this.calendarID+"-day-"+i+"-"+j;
cell.calendar=this;
Calendar._add_evs(cell);
}
}
}
if(this.showsTime){
row=Calendar.createElement("tr",_620);
row.id=this.calendarID+"-time-tr";
row.className="time";
cell=Calendar.createElement("td",row);
cell.id=this.calendarID+"-time-td";
cell.className="time";
cell.colSpan=this.weekNumbers?8:7;
var _622=Calendar.createElement("span",cell);
_622=this.calendarID+"-time-label";
_622.className="time";
_622.innerHTML=Calendar._TT["TIME"]||"&nbsp;";
(function(){
var _623="calId";
var hrs=cal.date.getHours();
var mins=cal.date.getMinutes();
var t12=!cal.time24;
var _627=dateHourToNormalizedHour(t12,hrs);
var _628=Calendar.createElement("INPUT",cell);
_628.value=_627.hours;
_628.className="inputTime-input";
_628.rs_formrelevant=true;
_628.name=_623+"-h";
_628.id=_623+"-h";
_628.maxLength=2;
if(Calendar.is_ie){
_628.onkeypress=onkeypressTimeInput;
_628.onkeydown=onkeydownTimeInput;
_628.onkeyup=function(){
validateHourKeyUp(null,!t12);
cal.onUpdateTime();
};
_628.onfocus=prepareTimeInput;
}else{
Calendar.addEvent(_628,"keypress",onkeypressTimeInput);
Calendar.addEvent(_628,"keydown",onkeypressTimeInput);
Calendar.addEvent(_628,"keyup",Calendar.changeTimeMouseDown);
Calendar.addEvent(_628,"focus",prepareTimeInput);
}
var span=Calendar.createElement("span",cell);
span.innerHTML=":";
span.className="colon";
minInput=Calendar.createElement("INPUT",cell);
minInput.value=mins;
minInput.className="inputTime-input";
minInput.rs_formrelevant=true;
minInput.name=_623+"-m";
minInput.id=_623+"-m";
minInput.maxLength=2;
if(Calendar.is_ie){
minInput.onblur=adjustMinute;
minInput.onkeypress=onkeypressTimeInput;
minInput.onkeydown=onkeydownTimeInput;
minInput.onkeyup=function(){
validateMinuteKeyUp(null,cal.minIncr,cal.strictMinIncr);
cal.onUpdateTime();
};
minInput.onfocus=prepareTimeInput;
}else{
Calendar.addEvent(minInput,"blur",adjustMinute);
Calendar.addEvent(minInput,"keypress",onkeypressTimeInput);
Calendar.addEvent(minInput,"keydown",onkeypressTimeInput);
Calendar.addEvent(minInput,"keyup",Calendar.changeTimeMouseDown);
Calendar.addEvent(minInput,"focus",prepareTimeInput);
}
if(t12){
var _62a=Calendar.createElement("INPUT",cell);
_62a.value=_627.isPm?"pm":"am";
_62a.className="inputTime-input";
_62a.rs_formrelevant=true;
_62a.name=_623+"-a";
_62a.id=_623+"-a";
_62a.maxLength=2;
if(Calendar.is_ie){
_62a.onkeypress=onkeypressTimeInputAmPm;
_62a.onkeyup=function(){
cal.onUpdateTime();
};
_62a.onfocus=prepareTimeInput;
}else{
Calendar.addEvent(_62a,"keypress",onkeypressTimeInputAmPm);
Calendar.addEvent(_62a,"keyup",Calendar.onUpdateTime);
Calendar.addEvent(_62a,"focus",prepareTimeInput);
}
}
var _62b=Calendar.createElement("SPAN",cell);
_62b.className="inputTime-spinner";
_62b.id=_623+"-s";
if(Calendar.is_ie){
_62b.onmouseout=_62b.onmouseup=function(){
changeTimeMouseUp();
cal.onUpdateTime();
};
_62b.onmousedown=function(){
changeTimeMouseDown(null,_623,"inputTime-spinner",cal.minIncr,!t12);
};
}else{
Calendar.addEvent(_62b,"mouseout",Calendar.changeTimeMouseUp);
Calendar.addEvent(_62b,"mouseup",Calendar.changeTimeMouseUp);
Calendar.addEvent(_62b,"mousedown",Calendar.changeTimeMouseDown);
}
_62b.ondblclick=_62b.onmousedown;
cal.onSetTime=function(){
var hrs=this.date.getHours();
var _62d=dateHourToNormalizedHour(t12,hrs);
hrs=_62d.hours;
var mins=this.date.getMinutes();
_628.value=hrs;
minInput.value=(mins<10)?("0"+mins):mins;
if(t12){
_62a.value=_62d.isPm?"pm":"am";
}
};
cal.onUpdateTime=function(){
var date=this.date;
var h=parseInt(_628.value,10);
if(t12){
if(/pm/i.test(_62a.value)&&h<12){
h+=12;
}else{
if(/am/i.test(_62a.value)&&h==12){
h=0;
}
}
}
var d=date.getDate();
var m=date.getMonth();
var y=date.getFullYear();
date.setHours(h);
date.setMinutes(parseInt(minInput.value,10));
date.setFullYear(y);
date.setMonth(m);
date.setDate(d);
this.dateClicked=false;
this.callHandler();
};
})();
}else{
this.onSetTime=this.onUpdateTime=function(){
};
}
if(this.showsActionBar){
row=Calendar.createElement("tr",_620);
row.className="action-bar";
cell=Calendar.createElement("td",row);
cell.className="action-bar";
cell.colSpan=this.weekNumbers?8:7;
function addAction(_634,name,text,_637,_638,_639,_63a){
var _63b=Calendar.createElement("a",_634);
_63b.id=_63a;
_63b.href="#";
_63b.className="action";
Calendar.addClass(_63b,_638);
Calendar.addEvent(_63b,"click",_637);
var node=_63b;
for(i=0;i<_639;i++){
var span=Calendar.createElement("span",node);
span.className=_638+(i+2);
node=span;
}
node.appendChild(document.createTextNode(text));
return _63b;
}
addAction(cell,"clear",Calendar._TT["CLEAR"],function(){
cal.callClearHandler();
},"nav-btn-dark-gray",4,this.calendarID+"-clear");
addAction(cell,"done",Calendar._TT["DONE"],function(){
cal.callDoneHandler();
},"nav-btn-dark-gray",4,this.calendarID+"-done");
addAction(cell,"cancel",Calendar._TT["CANCEL"],function(){
cal.callCancelHandler();
},"nav-btn-dark-gray",4,this.calendarID+"-cancel");
}
var _63e=Calendar.createElement("tfoot",_613);
row=Calendar.createElement("tr",_63e);
row.className="footrow";
cell=hh(Calendar._TT["SEL_DATE"],this.weekNumbers?8:7,300);
cell.className="ttip";
if(this.isPopup){
cell.ttip=Calendar._TT["DRAG_TO_MOVE"];
cell.style.cursor="move";
}
this.tooltips=cell;
div=Calendar.createElement("div",this.element);
div.id=this.calendarID+"-month-combo";
this.monthsCombo=div;
div.className="combo";
for(i=0;i<Calendar._MN.length;++i){
var mn=Calendar.createElement("div");
mn.className=Calendar.is_ie?"label-IEfix":"label";
mn.month=i;
mn.innerHTML=Calendar._SMN[i];
div.appendChild(mn);
}
div=Calendar.createElement("div",this.element);
div.id=this.calendarID+"-year-combo";
this.yearsCombo=div;
div.className="combo";
for(i=12;i>0;--i){
var yr=Calendar.createElement("div");
yr.className=Calendar.is_ie?"label-IEfix":"label";
div.appendChild(yr);
}
this._init(this.firstDayOfWeek,this.date);
_612.appendChild(this.element);
};
Calendar.changeTimeMouseUp=function(pEv){
changeTimeMouseUp(pEv);
Calendar.onUpdateTime(pEv);
};
Calendar.changeTimeMouseDown=function(pEvt){
var cal=this;
if(Calendar.is_ie){
changeTimeMouseDown(null,pEvt.target.id,"inputTime-spinner",cal.minIncr,cal.time24);
}else{
changeTimeMouseDown(pEvt,pEvt.target.id.replace("-s",""),"inputTime-spinner",1,cal.time24);
}
};
Calendar.validateHourKeyUp=function(pEvt){
validateHourKeyUp(pEvt,cal.time24);
};
Calendar._keyEvent=function(ev){
if(!window.calendar){
return false;
}
(Calendar.is_ie)&&(ev=window.event);
if(Calendar.is_ie){
if(ev.srcElement&&ev.srcElement.tagName=="INPUT"){
return true;
}
}else{
if(ev.target&&ev.target.tagName=="INPUT"){
return true;
}
}
var cal=window.calendar;
var act=(Calendar.is_ie||ev.type=="keypress");
if(ev.ctrlKey){
switch(ev.keyCode){
case 37:
act&&Calendar.cellClick(cal._nav_pm);
break;
case 38:
act&&Calendar.cellClick(cal._nav_py);
break;
case 39:
act&&Calendar.cellClick(cal._nav_nm);
break;
case 40:
act&&Calendar.cellClick(cal._nav_ny);
break;
default:
return false;
}
}else{
switch(ev.keyCode){
case 9:
var _648=window.document.getElementById(cal.calendarID+"-h");
_648&&_648.select();
break;
case 32:
Calendar.cellClick(cal._nav_now);
break;
case 27:
act&&cal.callCloseHandler();
break;
case 37:
case 38:
case 39:
case 40:
if(act){
var K=ev.keyCode;
var prev,x,y,ne,el,step;
prev=K==37||K==38;
step=(K==37||K==39)?1:7;
function setVars(){
el=cal.currentDateEl;
var p=el.pos;
x=p&15;
y=p>>4;
ne=cal.ar_days[y][x];
}
setVars();
function prevMonth(){
var date=new Date(cal.date);
date.setDate(date.getDate()-step);
cal.setDate(date);
}
function nextMonth(){
var date=new Date(cal.date);
date.setDate(date.getDate()+step);
cal.setDate(date);
}
while(1){
switch(K){
case 37:
if(--x>=0){
ne=cal.ar_days[y][x];
}else{
x=6;
K=38;
continue;
}
break;
case 38:
if(--y>=0){
ne=cal.ar_days[y][x];
}else{
prevMonth();
setVars();
}
break;
case 39:
if(++x<7){
ne=cal.ar_days[y][x];
}else{
x=0;
K=40;
continue;
}
break;
case 40:
if(++y<cal.ar_days.length){
ne=cal.ar_days[y][x];
}else{
nextMonth();
setVars();
}
break;
}
break;
}
if(ne){
if(!ne.disabled){
Calendar.cellClick(ne);
}else{
if(prev){
prevMonth();
}else{
nextMonth();
}
}
}
}
break;
case 13:
if(act){
Calendar.cellClick(cal.currentDateEl,ev);
}
break;
default:
return false;
}
}
return Calendar.stopEvent(ev);
};
Calendar.prototype._init=function(_653,date){
var _655=new Date();
this.table.style.visibility="hidden";
var year=date.getFullYear();
if(year<this.minYear){
year=this.minYear;
date.setFullYear(year);
}else{
if(year>this.maxYear){
year=this.maxYear;
date.setFullYear(year);
}
}
this.firstDayOfWeek=_653;
this.date=new Date(date);
var _657=date.getMonth();
var _658=navigator.appName;
if(_658=="Netscape"){
this.title.innerHTML=Calendar._MN[_657]+", "+year;
}
var mday=date.getDate();
var _65a=date.getMonthDays();
date.setDate(1);
var day1=(date.getDay()-this.firstDayOfWeek)%7;
if(day1<0){
day1+=7;
}
date.setDate(-day1);
date.setDate(date.getDate()+1);
if(this.showsCalendar){
var row=this.tbody.firstChild;
var MN=Calendar._SMN[_657];
var _65e=[];
var _65f=Calendar._TT["WEEKEND"];
for(var i=0;i<6;++i,row=row.nextSibling){
var cell=row.firstChild;
if(this.weekNumbers){
cell.className="day wn";
cell.innerHTML=date.getWeekNumber();
cell=cell.nextSibling;
}
row.className="daysrow";
var _662=false;
var dpos=_65e[i]=[];
for(var j=0;j<7;++j,cell=cell.nextSibling,date.setDate(date.getDate()+1)){
var iday=date.getDate();
var wday=date.getDay();
cell.className="day";
cell.pos=i<<4|j;
dpos[j]=cell;
var _667=(date.getMonth()==_657);
if(!_667){
if(this.showsOtherMonths){
cell.className+=" othermonth";
cell.otherMonth=true;
}else{
cell.className="emptycell";
cell.innerHTML="&nbsp;";
cell.disabled=true;
continue;
}
}else{
cell.otherMonth=false;
_662=true;
}
cell.disabled=false;
cell.innerHTML=this.getDateText?this.getDateText(date,iday):iday;
if(typeof this.getDateStatus=="function"){
var _668=this.getDateStatus(date,year,_657,iday);
if(_668===true){
cell.className+=" disabled";
cell.disabled=true;
}else{
if(/disabled/i.test(_668)){
cell.disabled=true;
}
cell.className+=" "+_668;
}
}
if(!cell.disabled){
cell.caldate=new Date(date);
cell.ttip="_";
if(_667&&iday==mday){
cell.className+=" selected";
this.currentDateEl=cell;
}
if(date.getFullYear()==_655.getFullYear()&&date.getMonth()==_655.getMonth()&&iday==_655.getDate()){
cell.className+=" today";
cell.ttip+=Calendar._TT["PART_TODAY"];
}
if(_65f.indexOf(wday.toString())!=-1){
cell.className+=cell.otherMonth?" oweekend":" weekend";
}
}
}
if(!(_662||this.showsOtherMonths)){
row.className="emptyrow";
}
}
this.ar_days=_65e;
this.monthSpan.innerText=Calendar._MN[_657]+",";
this.yearSpan.innerText=year;
}
this.onSetTime();
this.table.style.visibility="visible";
};
Calendar.prototype.setDate=function(date){
if(!date.equalsTo(this.date)){
this._init(this.firstDayOfWeek,date);
}
};
Calendar.prototype.refresh=function(){
this._init(this.firstDayOfWeek,this.date);
};
Calendar.prototype.setFirstDayOfWeek=function(_66a){
this._init(_66a,this.date);
this._displayWeekdays();
};
Calendar.prototype.setDateStatusHandler=Calendar.prototype.setDisabledHandler=function(_66b){
this.getDateStatus=_66b;
};
Calendar.prototype.setRange=function(a,z){
this.minYear=a;
this.maxYear=z;
};
Calendar.prototype.callHandler=function(){
if(this.onSelected){
this.onSelected(this,this.date.print(this.dateFormat));
}
};
Calendar.prototype.callCloseHandler=function(){
if(this.onClose){
this.onClose(this);
}
this.hideShowCovered();
};
Calendar.prototype.callClearHandler=function(){
if(this.onClear){
this.onClear(this);
}
this.hideShowCovered();
};
Calendar.prototype.callDoneHandler=function(){
if(this.onDone){
this.onDone(this);
}
this.hideShowCovered();
};
Calendar.prototype.callCancelHandler=function(){
if(this.onCancel){
this.onCancel(this);
}
this.hideShowCovered();
};
Calendar.prototype.destroy=function(){
var el=this.element.parentNode;
el.removeChild(this.element);
Calendar._C=null;
window.calendar=null;
};
Calendar.prototype.reparent=function(_66f){
var el=this.element;
el.parentNode.removeChild(el);
_66f.appendChild(el);
};
Calendar._checkCalendar=function(ev){
if(!window.calendar){
return false;
}
var el=Calendar.is_ie?Calendar.getElement(ev):Calendar.getTargetElement(ev);
for(;el!=null&&el!=calendar.element;el=el.parentNode){
}
if(el==null){
window.calendar.callCloseHandler();
return Calendar.stopEvent(ev);
}
};
Calendar.prototype.show=function(){
var rows=this.table.getElementsByTagName("tr");
for(var i=rows.length;i>0;){
var row=rows[--i];
Calendar.removeClass(row,"rowhilite");
var _676=row.getElementsByTagName("td");
for(var j=_676.length;j>0;){
var cell=_676[--j];
Calendar.removeClass(cell,"hilite");
Calendar.removeClass(cell,"active");
}
}
this.element.style.display="block";
this.hidden=false;
if(this.isPopup){
window.calendar=this;
Calendar.addEvent(document,"keydown",Calendar._keyEvent);
Calendar.addEvent(document,"keypress",Calendar._keyEvent);
Calendar.addEvent(document,"mousedown",Calendar._checkCalendar);
}
this.hideShowCovered();
};
Calendar.prototype.hide=function(){
if(this.isPopup){
Calendar.removeEvent(document,"keydown",Calendar._keyEvent);
Calendar.removeEvent(document,"keypress",Calendar._keyEvent);
Calendar.removeEvent(document,"mousedown",Calendar._checkCalendar);
}
this.element.style.display="none";
this.hidden=true;
this.hideShowCovered();
};
Calendar.prototype.showAt=function(x,y){
var s=this.element.style;
s.left=x+"px";
s.top=y+"px";
this.show();
};
Calendar.prototype.showAtElement=function(el,opts){
var self=this;
var p=Calendar.getAbsolutePos(el);
if(!opts||typeof opts!="string"){
this.showAt(p.x,p.y+el.offsetHeight);
return true;
}
this.element.style.display="block";
Calendar.continuation_for_the_khtml_browser=function(){
var w=self.element.offsetWidth;
var h=self.element.offsetHeight;
self.element.style.display="none";
var _682=opts.substr(0,1);
var _683="l";
if(opts.length>1){
_683=opts.substr(1,1);
}
switch(_682){
case "T":
p.y-=h;
break;
case "B":
p.y+=el.offsetHeight;
break;
case "C":
p.y+=(el.offsetHeight-h)/2;
break;
case "t":
p.y+=el.offsetHeight-h;
break;
case "b":
break;
}
switch(_683){
case "L":
p.x-=w;
break;
case "R":
p.x+=el.offsetWidth;
break;
case "C":
p.x+=(el.offsetWidth-w)/2;
break;
case "r":
p.x+=el.offsetWidth-w;
break;
case "l":
break;
}
p.width=w;
p.height=h+40;
self.monthsCombo.style.display="none";
fixPosition(p);
self.showAt(p.x,p.y);
};
if(Calendar.is_khtml){
setTimeout("Calendar.continuation_for_the_khtml_browser()",10);
}else{
Calendar.continuation_for_the_khtml_browser();
}
};
Calendar.prototype.setDateFormat=function(str){
this.dateFormat=str;
};
Calendar.prototype.setTtDateFormat=function(str){
this.ttDateFormat=str;
};
Calendar.prototype.parseDate=function(str,fmt){
if(!fmt){
fmt=this.dateFormat;
}
var _688=new Object();
this.setDate(parseDate(str,fmt,_688));
return _688.nbf>0;
};
function parseDate(str,fmt,_68b){
var y=0;
var m=-1;
var d=0;
var a=str.split(/\W+/);
var b=fmt.match(/%./g);
var i=0,j=0;
var hr=0;
var min=0;
var nbf=0;
for(i=0;i<a.length;++i){
if(!a[i]){
continue;
}
nbf++;
switch(b[i]){
case "%d":
case "%e":
d=parseInt(a[i],10);
break;
case "%m":
m=parseInt(a[i],10)-1;
break;
case "%Y":
case "%y":
y=parseInt(a[i],10);
(y<100)&&(y+=(y>29)?1900:2000);
break;
case "%b":
case "%B":
for(j=0;j<12;++j){
if(Calendar._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){
m=j;
break;
}
}
break;
case "%H":
case "%I":
case "%k":
case "%l":
hr=parseInt(a[i],10);
break;
case "%P":
case "%p":
if(/pm/i.test(a[i])&&hr<12){
hr+=12;
}
break;
case "%M":
min=parseInt(a[i],10);
break;
}
}
if(y!=0&&m!=-1&&d!=0){
_68b.nbf=nbf;
return new Date(y,m,d,hr,min,0);
}
y=0;
m=-1;
d=0;
for(i=0;i<a.length;++i){
if(a[i].search(/[a-zA-Z]+/)!=-1){
var t=-1;
for(j=0;j<12;++j){
if(Calendar._MN[j].substr(0,a[i].length).toLowerCase()==a[i].toLowerCase()){
t=j;
break;
}
}
if(t!=-1){
if(m!=-1){
nbf++;
d=m+1;
}
nbf++;
m=t;
}
}else{
if(parseInt(a[i],10)<=12&&m==-1){
nbf++;
m=a[i]-1;
}else{
if(parseInt(a[i],10)>31&&y==0){
nbf++;
y=parseInt(a[i],10);
(y<100)&&(y+=(y>29)?1900:2000);
}else{
if(d==0&&a[i]!=0){
nbf++;
d=a[i];
}
}
}
}
}
if(y==0||m==-1||d==0){
var _697=new Date();
if(y==0){
y=_697.getFullYear();
}
if(m==-1){
m=_697.getMonth();
}
if(d==0){
d=_697.getDate();
}
}
_68b.nbf=nbf;
return new Date(y,m,d,hr,min,0);
}
Calendar.prototype.hideShowCovered=function(){
var self=this;
Calendar.continuation_for_the_khtml_browser=function(){
function getVisib(obj){
var _69a=obj.style.visibility;
if(!_69a){
if(document.defaultView&&typeof (document.defaultView.getComputedStyle)=="function"){
if(!Calendar.is_khtml){
_69a=document.defaultView.getComputedStyle(obj,"").getPropertyValue("visibility");
}else{
_69a="";
}
}else{
if(obj.currentStyle){
_69a=obj.currentStyle.visibility;
}else{
_69a="";
}
}
}
return _69a;
}
var tags=new Array("applet","iframe","select");
var el=self.element;
var p=Calendar.getAbsolutePos(el);
var EX1=p.x;
var EX2=el.offsetWidth+EX1;
var EY1=p.y;
var EY2=el.offsetHeight+EY1;
for(var k=tags.length;k>0;){
var ar=document.getElementsByTagName(tags[--k]);
var cc=null;
for(var i=ar.length;i>0;){
cc=ar[--i];
p=Calendar.getAbsolutePos(cc);
var CX1=p.x;
var CX2=cc.offsetWidth+CX1;
var CY1=p.y;
var CY2=cc.offsetHeight+CY1;
if(self.hidden||(CX1>EX2)||(CX2<EX1)||(CY1>EY2)||(CY2<EY1)){
if(!cc.__msh_save_visibility){
cc.__msh_save_visibility=getVisib(cc);
}
cc.style.visibility=cc.__msh_save_visibility;
}else{
if(!cc.__msh_save_visibility){
cc.__msh_save_visibility=getVisib(cc);
}
cc.style.visibility="hidden";
}
}
}
};
if(Calendar.is_khtml){
setTimeout("Calendar.continuation_for_the_khtml_browser()",10);
}else{
Calendar.continuation_for_the_khtml_browser();
}
};
Calendar.prototype._displayWeekdays=function(){
var fdow=this.firstDayOfWeek;
var cell=this.firstdayname;
var _6ac=Calendar._TT["WEEKEND"];
for(var i=0;i<7;++i){
cell.className="day name";
var _6ae=(i+fdow)%7;
if(i){
cell.ttip=Calendar._TT["DAY_FIRST"].replace("%s",Calendar._DN[_6ae]);
cell.navtype=100;
cell.calendar=this;
cell.fdow=_6ae;
Calendar._add_evs(cell);
}
if(_6ac.indexOf(_6ae.toString())!=-1){
Calendar.addClass(cell,"weekend");
}
cell.innerHTML=Calendar._SDN[(i+fdow)%7];
cell=cell.nextSibling;
}
};
Calendar.prototype._hideCombos=function(){
this.monthsCombo.style.display="none";
this.yearsCombo.style.display="none";
};
Calendar.prototype._dragStart=function(ev){
if(this.dragging){
return;
}
this.dragging=true;
var posX;
var posY;
if(Calendar.is_ie){
posY=window.event.clientY+document.body.scrollTop;
posX=window.event.clientX+document.body.scrollLeft;
}else{
posY=ev.clientY+window.scrollY;
posX=ev.clientX+window.scrollX;
}
var st=this.element.style;
this.xOffs=posX-parseInt(st.left);
this.yOffs=posY-parseInt(st.top);
with(Calendar){
addEvent(document,"mousemove",calDragIt);
addEvent(document,"mouseup",calDragEnd);
}
};
Date._MD=new Array(31,28,31,30,31,30,31,31,30,31,30,31);
Date.SECOND=1000;
Date.MINUTE=60*Date.SECOND;
Date.HOUR=60*Date.MINUTE;
Date.DAY=24*Date.HOUR;
Date.WEEK=7*Date.DAY;
Date.prototype.getMonthDays=function(_6b3){
var year=this.getFullYear();
if(typeof _6b3=="undefined"){
_6b3=this.getMonth();
}
if(((0==(year%4))&&((0!=(year%100))||(0==(year%400))))&&_6b3==1){
return 29;
}else{
return Date._MD[_6b3];
}
};
Date.prototype.getDayOfYear=function(){
var now=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);
var then=new Date(this.getFullYear(),0,0,0,0,0);
var time=now-then;
return Math.floor(time/Date.DAY);
};
Date.prototype.getWeekNumber=function(){
var d=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);
var DoW=d.getDay();
d.setDate(d.getDate()-(DoW+6)%7+3);
var ms=d.valueOf();
d.setMonth(0);
d.setDate(4);
return Math.round((ms-d.valueOf())/(7*86400000))+1;
};
Date.prototype.equalsTo=function(date){
return ((this.getFullYear()==date.getFullYear())&&(this.getMonth()==date.getMonth())&&(this.getDate()==date.getDate())&&(this.getHours()==date.getHours())&&(this.getMinutes()==date.getMinutes()));
};
Date.prototype.print=function(str){
var m=this.getMonth();
var d=this.getDate();
var y=this.getFullYear();
var wn=this.getWeekNumber();
var w=this.getDay();
var s={};
var hr=this.getHours();
var pm=(hr>=12);
var ir=(pm)?(hr-12):hr;
var dy=this.getDayOfYear();
if(ir==0){
ir=12;
}
var min=this.getMinutes();
var sec=this.getSeconds();
s["%a"]=Calendar._SDN[w];
s["%A"]=Calendar._DN[w];
s["%b"]=Calendar._SMN[m];
s["%B"]=Calendar._MN[m];
s["%C"]=1+Math.floor(y/100);
s["%d"]=(d<10)?("0"+d):d;
s["%e"]=d;
s["%H"]=(hr<10)?("0"+hr):hr;
s["%I"]=(ir<10)?("0"+ir):ir;
s["%j"]=(dy<100)?((dy<10)?("00"+dy):("0"+dy)):dy;
s["%k"]=hr;
s["%l"]=ir;
s["%m"]=(m<9)?("0"+(1+m)):(1+m);
s["%M"]=(min<10)?("0"+min):min;
s["%n"]="\n";
s["%o"]=1+m;
s["%p"]=pm?"PM":"AM";
s["%P"]=pm?"pm":"am";
s["%s"]=Math.floor(this.getTime()/1000);
s["%S"]=(sec<10)?("0"+sec):sec;
s["%t"]="\t";
s["%U"]=s["%W"]=s["%V"]=(wn<10)?("0"+wn):wn;
s["%u"]=w+1;
s["%w"]=w;
s["%y"]=(""+y).substr(2,2);
s["%Y"]=y;
s["%%"]="%";
var re=/%./g;
if(!Calendar.is_ie5&&!Calendar.is_khtml){
return str.replace(re,function(par){
return s[par]||par;
});
}
var a=str.match(re);
for(var i=0;i<a.length;i++){
var tmp=s[a[i]];
if(tmp){
re=new RegExp(a[i],"g");
str=str.replace(re,tmp);
}
}
return str;
};
Date.prototype.__msh_oldSetFullYear=Date.prototype.setFullYear;
Date.prototype.setFullYear=function(y){
var d=new Date(this);
d.__msh_oldSetFullYear(y);
if(d.getMonth()!=this.getMonth()){
this.setDate(28);
}
this.__msh_oldSetFullYear(y);
};
function showAtElement2(_6d0,_6d1,_6d2,_6d3){
var p=Calendar.getAbsolutePos(_6d1);
if(!_6d2||typeof _6d2!="string"){
_6d0.showAt(p.x,p.y+_6d1.offsetHeight);
return true;
}
showAtElement2_=function(){
_6d0.style.display="block";
var w=_6d0.offsetWidth;
var h=_6d0.offsetHeight;
var _6d7=_6d2.substr(0,1);
var _6d8="l";
if(_6d2.length>1){
_6d8=_6d2.substr(1,1);
}
switch(_6d7){
case "T":
p.y-=h;
break;
case "B":
p.y+=_6d1.offsetHeight;
break;
case "C":
p.y+=(_6d1.offsetHeight-h)/2;
break;
case "t":
p.y+=_6d1.offsetHeight-h;
break;
case "b":
break;
}
switch(_6d8){
case "L":
p.x-=w;
break;
case "R":
p.x+=_6d1.offsetWidth;
break;
case "C":
p.x+=(_6d1.offsetWidth-w)/2;
break;
case "r":
p.x+=_6d1.offsetWidth-w;
break;
case "l":
break;
}
p.width=w;
p.height=h;
fixPosition(p);
if(_6d3!=null){
var _6d9=Calendar.getAbsolutePos(_6d3);
p.x-=_6d9.x;
p.y-=_6d9.y;
}
_6d0.style.left=p.x+"px";
_6d0.style.top=p.y+"px";
};
if(Calendar.is_khtml){
setTimeout("showAtElement2_()",10);
}else{
showAtElement2_();
}
}
function getScrollXY(){
var x=0,y=0;
if(typeof (window.pageYOffset)=="number"){
y=window.pageYOffset;
x=window.pageXOffset;
}else{
if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){
y=document.body.scrollTop;
x=document.body.scrollLeft;
}else{
if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){
y=document.documentElement.scrollTop;
x=document.documentElement.scrollLeft;
}
}
}
return {x:x,y:y};
}
function fixPosition(box){
if(box.x<0){
box.x=0;
}
if(box.y<0){
box.y=0;
}
var cp=document.createElement("div");
var s=cp.style;
s.position="absolute";
s.right=s.bottom=s.width=s.height="0px";
document.body.appendChild(cp);
var br=Calendar.getAbsolutePos(cp);
document.body.removeChild(cp);
var sp=getScrollXY();
br.x+=sp.x;
br.y+=sp.y;
var tmp=box.x+box.width-br.x;
if(tmp>0){
box.x-=tmp;
}
tmp=box.y+box.height-br.y;
if(tmp>0){
box.y-=tmp;
}
}
function copyTime(_6e2,_6e3){
_6e2.setHours(_6e3.getHours());
_6e2.setMinutes(_6e3.getMinutes());
}
function dateHourToNormalizedHour(_6e4,_6e5){
var pm=false;
if(_6e4){
var pm=(_6e5>=12);
if(_6e5>12){
_6e5-=12;
}
if(_6e5==0){
_6e5=12;
}
}
return new NormalizedHour(_6e5,pm);
}
function normalizedHourToDateHour(_6e7,_6e8,_6e9){
if(_6e7){
if(_6e9){
_6e8+=12;
if(_6e8==24){
_6e8=12;
}
}else{
if(_6e8==12){
_6e8=0;
}
}
}
return _6e8;
}
function NormalizedHour(_6ea,_6eb){
this.isPm=_6eb;
this.hours=_6ea;
}
window.calendar=null;
var HTTP_INIT=1;
var HTTP_CONNECTED=2;
var HTTP_IN_PROGRESS=3;
var HTTP_COMPLETE=4;
var HTTP_OK=200;
var HTTP_FORBIDDEN=403;
var HTTP_NOT_FOUND=404;
function HTTPClient(){
this.url=null;
this.xmlhttp=null;
this.callinprogress=false;
this.userhandler=null;
}
HTTPClient.prototype.init=function(url){
this.url=url;
if(window.XMLHttpRequest){
this.xmlhttp=new XMLHttpRequest();
}else{
if(window.ActiveXObject){
this.xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
}else{
throw "XMLHttpRequest not supported by "+navigator.userAgent+".";
}
}
};
HTTPClient.prototype.asyncGET=function(_6ed){
if(this.callinprogress){
throw "Call in progress";
}
this.userhandler=_6ed;
this.xmlhttp.open("GET",this.url,true);
var self=this;
this.xmlhttp.onreadystatechange=function(){
self.stateChangeCallback(self);
};
this.xmlhttp.send(null);
};
HTTPClient.prototype.stateChangeCallback=function(_6ef){
switch(_6ef.xmlhttp.readyState){
case HTTP_INIT:
try{
_6ef.userhandler.onInit();
}
catch(e){
}
break;
case HTTP_CONNECTED:
try{
if(_6ef.xmlhttp.status!=HTTP_OK){
_6ef.userhandler.onError(_6ef.xmlhttp.status,_6ef.xmlhttp.statusText);
_6ef.xmlhttp.abort();
_6ef.callinprogress=false;
}
}
catch(e){
}
break;
case HTTP_IN_PROGRESS:
try{
var _6f0;
try{
_6f0=_6ef.xmlhttp.getResponseHeader("Content-Length");
}
catch(e){
_6f0=NaN;
}
_6ef.userhandler.onProgress(_6ef.xmlhttp.responseText,_6f0);
}
catch(e){
}
break;
case HTTP_COMPLETE:
try{
if(_6ef.xmlhttp.status==HTTP_OK){
_6ef.userhandler.onLoad(_6ef.xmlhttp.responseXML);
}else{
_6ef.userhandler.onError(_6ef.xmlhttp.status,_6ef.xmlhttp.statusText);
}
}
catch(e){
}
finally{
_6ef.callinprogress=false;
}
break;
}
};
function EchoHandler(){
}
EchoHandler.prototype.onInit=function(){
this.echo("About to send request<br>");
};
EchoHandler.prototype.onError=function(_6f1,_6f2){
this.echo("Error: "+_6f1+": "+_6f2+"<br>");
};
EchoHandler.prototype.onProgress=function(_6f3,_6f4){
this.echo("Downloaded "+_6f3.length+" of "+_6f4+"<br>");
};
EchoHandler.prototype.onLoad=function(_6f5){
this.echo("<pre>"+_6f5+"</pre>");
};
EchoHandler.prototype.echo=function(_6f6){
document.status=_6f6;
};
addEvent(window,"load",convertTrees);
function setDefault(name,val){
if(typeof (window[name])=="undefined"||window[name]==null){
window[name]=val;
}
}
function expandTree(_6f9){
var ul=document.getElementById(_6f9);
if(ul==null){
return false;
}
expandCollapseList(ul,nodeOpenClass,null,true);
}
function collapseTree(_6fb){
var ul=document.getElementById(_6fb);
if(ul==null){
return false;
}
expandCollapseList(ul,nodeClosedClass,null,true);
}
function expandToItem(_6fd,_6fe){
var ul=document.getElementById(_6fd);
if(ul==null){
return false;
}
var ret=expandCollapseList(ul,nodeOpenClass,_6fe,true);
if(ret){
var o=document.getElementById(_6fe);
if(o.scrollIntoView){
o.scrollIntoView(false);
}
}
}
function expandCollapseList(ul,_703,_704,_705){
if(!ul.childNodes||ul.childNodes.length==0){
return false;
}
for(var _706=0;_706<ul.childNodes.length;_706++){
var item=ul.childNodes[_706];
if(_704!=null&&item.id==_704){
return true;
}
if(item.nodeName=="LI"){
var _708=false;
for(var _709=0;_709<item.childNodes.length;_709++){
var _70a=item.childNodes[_709];
if(_70a.nodeName=="UL"){
_708=true;
var ret=expandCollapseList(_70a,_703,_704,_705);
if(_704!=null&&ret){
item.className=_703;
return _705;
}
}
}
if(_708&&_704==null){
item.className=_703;
}
}
}
}
function convertTrees(){
setDefault("treeClass","tree-root");
setDefault("nodeClosedClass","tree-node-more");
setDefault("nodeOpenClass","tree-node-less");
setDefault("nodeLeafClass","tree-node-leaf");
setDefault("nodeSignClass","tree-sign");
setDefault("nodeIconClass","tree-icon");
setDefault("nodeMoreClass","tree-more");
setDefault("nodeLabelClass","tree-label");
setDefault("nodeLabelSelectedClass","tree-label-selected");
if(!document.createElement){
return;
}
uls=document.getElementsByTagName("ul");
for(var uli=0;uli<uls.length;uli++){
var ul=uls[uli];
if(ul.className==treeClass){
convertTree(ul);
}
}
}
function convertTree(root){
var _70f=document.jsfForm()[root.id+"-s"];
if(_70f!=null&&_70f.value!=""){
var _710=_70f.value;
var _711=root.id+"-"+_710;
var _712=findItemLabel(root.id,_711);
addClass(_712,nodeLabelSelectedClass);
if(_712.scrollIntoView){
_712.scrollIntoView(false);
}
}
}
function processList(root,ul){
if(!ul.childNodes||ul.childNodes.length==0){
return;
}
for(var i=0;i<ul.childNodes.length;i++){
var item=ul.childNodes[i];
if(item.nodeName=="LI"){
processItem(root,item);
}
}
}
function processItem(root,item){
var _719=false;
for(var _71a=0;_71a<item.childNodes.length;_71a++){
var _71b=item.childNodes[_71a];
if(_71b.nodeName=="UL"){
_719=true;
processList(root,_71b);
}
}
var s=document.createElement("SPAN");
s.className=nodeSignClass;
if(_719||hasClass(item,nodeMoreClass)){
item.className=_719?nodeOpenClass:nodeClosedClass;
item.getItems=!_719;
s.onclick=onExpandCollapseClickSelf;
}else{
item.className=nodeLeafClass;
s.onclick=onClickReturnFalse;
}
s.appendChild(document.createTextNode("\xa0"));
item.insertBefore(s,item.firstChild);
var s2=document.createElement("SPAN");
s2.className=nodeIconClass;
s2.onclick=onClickReturnFalse;
s2.appendChild(document.createTextNode("\xa0"));
item.insertBefore(s2,s.nextSibling);
var s3=document.createElement("SPAN");
s3.className=nodeLabelClass;
if(isSelectedItem(root.id,item.id)){
addClass(s3,nodeLabelSelectedClass);
}
s3.onclick=onS3ClickSelf;
s3.onmouseover=onS3MouseOverSelf;
s3.onmouseout=onS3MouseOutSelf;
var _71f=s2.nextSibling;
item.removeChild(_71f);
s3.appendChild(_71f);
item.insertBefore(s3,s2.nextSibling);
}
function onExpandCollapseClick(_720){
var item=_720.parentNode;
var _722=item.className==nodeOpenClass;
item.className=_722?nodeClosedClass:nodeOpenClass;
var _723=findRootId(_720);
addItemState(_723,item.id,_722);
var _724=false;
for(var i=0;i<item.childNodes.length&&!_724;i++){
if(item.childNodes[i].nodeName=="UL"){
_724=true;
}
}
if(!_724){
item.getItems=false;
getItems(_723,item.id);
}
return false;
}
function onExpandCollapseClickSelf(){
onExpandCollapseClick(this);
}
function onClickReturnFalse(){
return false;
}
function onS3ClickSelf(){
return onS3Click(this);
}
function onS3Click(_726){
var _727=findRootId(_726);
selectItem(_727,_726.parentNode.id);
return false;
}
function onS3MouseOverSelf(){
return onS3MouseOver(this);
}
function onS3MouseOver(_728){
addClass(_728,"mouseover");
return false;
}
function onS3MouseOutSelf(){
return onS3MouseOut(this);
}
function onS3MouseOut(_729){
removeClass(_729,"mouseover");
return false;
}
function findRootId(_72a){
var _72b=_72a.parentNode;
while(_72b!=null&&(_72b.parentNode.nodeName=="UL"||_72b.parentNode.nodeName=="LI")){
_72b=_72b.parentNode;
}
return _72b.id;
}
function addItemState(_72c,_72d,_72e){
var _72f=document.jsfForm()[_72c+"-x"];
if(_72f!=null){
var _730=_72f.value;
var _731=_72d.substr(_72c.length+1);
_730=removeItemState(_730,_731);
_730+=(_730.length>0?" ":"")+(_72e?"-":"+")+_731;
_72f.value=_730;
}
}
function removeItemState(_732,_733){
var _734=" -"+_733+" ";
_732=" "+_732+" ";
var _735=_732.indexOf(_734);
if(_735!=-1){
_732=_732.substr(0,_735+1)+_732.substr(_735+_734.length);
}
_734=" +"+_733+" ";
_735=_732.indexOf(_734);
if(_735!=-1){
_732=_732.substr(0,_735+1)+_732.substr(_735+_734.length);
}
return _732.substr(1,_732.length-2);
}
function selectItem(_736,_737){
var _738=getSelectedItem(_736);
if(_738!=null){
var _739=findItemLabel(_736,_738);
removeClass(_739,nodeLabelSelectedClass);
}
setSelectedItem(_736,_737);
var _73a=findItemLabel(_736,_737);
addClass(_73a,nodeLabelSelectedClass);
}
function isSelectedItem(_73b,_73c){
var _73d=document.jsfForm()[_73b+"-s"];
if(_73d!=null){
var _73e=_73d.value;
return _73c==_73b+"-"+_73e;
}
return false;
}
function getSelectedItem(_73f){
var _740=document.jsfForm()[_73f+"-s"];
if(_740!=null){
var _741=_740.value;
if(_741.length>0){
return _73f+"-"+_741;
}
}
return null;
}
function setSelectedItem(_742,_743){
var _744=document.jsfForm()[_742+"-s"];
if(_744!=null){
var _745=_743.substr(_742.length+1);
_744.value=_745;
}
}
function findItemLabel(_746,_747){
var li=document.getElementById(_747);
if(li!=null){
var _749=li.firstChild;
for(var _74a=0;_749!=null;_749=_749.nextSibling){
if(_749.tagName=="SPAN"){
if(++_74a==3){
return _749;
}
}
}
}
return null;
}
function isChildItem(_74b,_74c){
if(_74c==null||_74c.length<=_74b.length){
return false;
}
return _74b==_74c.substr(0,_74b.length)&&_74c.charAt(_74b.length)=="-";
}
function getItems(_74d,_74e){
var _74f=document.jsfForm()[_74d+"-r"];
var url=_74f.value;
url=addParameter(url,"treeId",_74d);
url=addParameter(url,"nodeId",_74e.substr(_74d.length+1));
url=addParameter(url,"formId",window.document.jsfForm().id);
var _751=new TreeHandler(_74d,_74e);
var _752=new HTTPClient();
_752.init(url);
_752.asyncGET(_751);
}
function TreeHandler(_753,_754){
this.treeId=_753;
this.itemId=_754;
this.fallback=new EchoHandler();
}
TreeHandler.prototype.onInit=function(){
this.fallback.onInit();
};
TreeHandler.prototype.onError=function(_755,_756){
this.fallback.onError(_755,_756);
};
TreeHandler.prototype.onProgress=function(_757,_758){
this.fallback.onProgress(_757,_758);
};
TreeHandler.prototype.onLoad=function(_759){
loadItems(this.treeId,this.itemId,_759);
};
function loadItems(_75a,_75b,xml){
var _75d=xml.documentElement.childNodes;
for(var i=0;i<_75d.length;i++){
var item=_75d.item(i);
if(item.nodeType!=ElementUtils.ELEMENT_NODE){
continue;
}
var _75b=item.getAttribute("id");
var li=document.getElementById(_75b);
if(li!=null){
window.status="Loading item "+_75b+"...";
var _761=new Array();
var _762=new Array();
var _763=li.getElementsByTagName("INPUT");
for(var i=0;i<_763.length;i++){
if(typeof (_763[i].value)!="undefined"){
_761[_763[i].id]=_763[i].value;
}
if(typeof (_763[i].checked)!="undefined"){
_762[_763[i].id]=_763[i].checked;
}
}
loadItem(_75a,_75b,item,li);
var root=document.getElementById(_75a);
processItem(root,li);
var _765=li.getElementsByTagName("INPUT");
for(var i=0;i<_765.length;i++){
var _766=_761[_765[i].id];
if(_766!=null&&typeof (_765[i].value)!="undefined"){
_765[i].value=_766;
}
var _767=_762[_765[i].id];
if(_767!=null&&typeof (_765[i].checked)!="undefined"){
_765[i].checked=_767;
}
}
}else{
window.status="Invalid response: item "+_75b+" not found.";
}
}
}
function loadItem(_768,_769,_76a,_76b){
while(_76b.firstChild!=null){
removeEvent(_76b.firstChild,"click",_76b.firstChild.onclick);
removeEvent(_76b.firstChild,"mouseover",_76b.firstChild.onmouseover);
removeEvent(_76b.firstChild,"mouseout",_76b.firstChild.onmouseout);
_76b.removeChild(_76b.firstChild);
}
var _76c=null;
var _76d=_76a.firstChild;
for(;_76d!=null;_76d=_76d.nextSibling){
if(_76d.nodeType==DOM_ELEMENT_NODE&&_76d.tagName=="ul"){
_76c=_76d;
}else{
var _76e=ElementUtils.cloneItem(_76d);
if(_76e!=null){
_76b.innerHTML+=_76e.outerHTML;
}
}
}
if(_76c!=null){
var ul=cloneItem(_76c);
_76b.innerHTML+=ul.outerHTML;
}
var _770=_76b.getElementsByTagName("INPUT");
for(var i=0;i<_770.length;i++){
_770[i].name=_770[i].id;
}
}
EditorUtils=function(){
};
EditorUtils.createEditor=function(_772,_773){
var _774=this._setupEditor(_772,_773);
_774.Create();
};
EditorUtils.replaceTextarea=function(_775,_776){
var _777=this._setupEditor(_775,_776);
_777.ReplaceTextarea();
};
EditorUtils._setupEditor=function(_778,_779){
var _77a=new FCKeditor(_778);
var _77b=typeof contextPath_=="string";
var _77c;
if(useVerStatFiles_){
_77c=_77b?contextPath_+"/"+buildVersion_+"/akira/pub/":"../";
}else{
_77c=_77b?contextPath_+"/akira/pub/":"../";
}
_77a.BasePath=_77c+"fckeditor/";
var skin=(_779&&_779.skin)||"silver";
var _77e;
if(_77c.charAt(0)=="/"){
_77e=_77c+"fckeditor/editor/skins/"+skin+"/";
}else{
_77e="skins/"+skin+"/";
}
_77a.Config["SkinPath"]=_77e;
_77a.Width=(_779&&_779.width)||800;
_77a.Height=(_779&&_779.height)||500;
_77a.ToolbarSet=(_779&&_779.toolbarset)||"Basic";
_77a.Config["AutoDetectLanguage"]=false;
_77a.Config["DefaultLanguage"]=(_779&&_779.locale)||"en";
_77a.Config["SpellCheckerSkin"]=(_779&&_779.SpellCheckerSkin)||"liquid";
_77a.Config["LinkDlgHideTarget"]=(_779&&_779.LinkDlgHideTarget)||"false";
if(_779.SpellCheckerURL){
_77a.Config["SpellCheckerURL"]=_779.SpellCheckerURL;
}else{
var _77f=_77b?contextPath_+"/akira/pub/":"../";
_77a.Config["SpellCheckerURL"]=_77f+"spellCheck.jsf";
}
_77a.Config["debug"]=_779.debug;
_77a.Config["modeFullPage"]=_779.modeFullPage;
_77a.Config["formatOutput"]=_779.formatOutput;
_77a.Config["formatSource"]=_779.formatSource;
_77a.Config["hiddenButton"]=_779.hiddenButton;
return _77a;
};
EditorUtils.setHTMLText=function(_780,_781){
var _782=FCKeditorAPI.GetInstance(_780);
_782.SetHTML(_781,true);
};
EditorUtils.getHTMLText=function(_783){
var _784=FCKeditorAPI.GetInstance(_783);
return _784.GetXHTML(false);
};
EditorUtils.insertHtmlText=function(_785,_786){
var _787=FCKeditorAPI.GetInstance(_785);
return _787.InsertHtml(_786);
};
EditorUtils.addListener=function(_788,_789,_78a){
if(this.loaded){
try{
var _78b=FCKeditorAPI.GetInstance(_788);
_78b.Events.AttachEvent(_789,_78a);
}
catch(ex){
setTimeout(function(){
EditorUtils.addListener(_788,_789,_78a);
},10);
}
}else{
this.events[this.events.length]={editorId:_788,eventName:_789,listener:_78a};
}
};
EditorUtils.loaded=false;
EditorUtils.events=[];
function FCKeditor_OnComplete(){
EditorUtils.loaded=true;
for(var i=0,n=EditorUtils.events.length;i<n;i++){
var _78e=EditorUtils.events[i];
var _78f=FCKeditorAPI.GetInstance(_78e.editorId);
_78f.Events.AttachEvent(_78e.eventName,_78e.listener);
}
EditorUtils.events=[];
}
var _helpContexts=new Array();
var _helps=new Array();
var _defaultHelpContext=null;
var _activeHelpContext=null;
function HelpContext(pId,_791,_792,_793){
this.id=pId;
this.active=_791;
this.helpPageURL=_792;
if(_793!=null&&_793!=""&&_793!="null"){
this.forHelpId=_793;
}
}
function addNewHelpContext(pId,_795,_796,_797){
var _798=new HelpContext(pId,_795,_796,_797);
_helpContexts[pId]=_798;
if(_795){
_activeHelpContext=_798;
}
if(_defaultHelpContext==null){
_defaultHelpContext=_798;
}
}
function activateHelpContext(pId){
var _79a;
if(pId==null){
_79a=_defaultHelpContext;
}else{
_79a=_helpContexts[pId];
}
if(_79a!=null&&_79a!=_activeHelpContext){
_79a.active=true;
_activeHelpContext=_79a;
if(_79a.forHelpId==null){
_79a.forHelpId=_helps[0];
}
refreshHelpContent(_79a.forHelpId,_79a.helpPageURL);
}
}
function refreshHelpContent(_79b,_79c){
var _79d=findElementsEndingWithId(null,_79b+"_iframe",null,true)[0];
if(_79d!=null){
var _79e=null;
if(_79d.childNodes>0){
_79e=_79d.childNodes[0];
}
if(_79e==null){
try{
_79e=document.createElement("IFRAME");
_79e.id=_79b+"_frame";
_79e.title=AccessibilityRes.helpIFrameTitle;
_79e.name=AccessibilityRes.helpIFrameName;
_79e.frameborder="no";
_79d.appendChild(_79e);
}
catch(exception){
iframeHTML="<iframe id=\""+_79b+"_frame\" title=\""+AccessibilityRes.helpIFrameTitle+"\" name=\""+AccessibilityRes.helpIFrameName+"\" style=\"";
iframeHTML+="frameborder=\"no\"";
iframeHTML+="\"></iframe>";
_79d.innerHTML+=iframeHTML;
_79e=new Object();
_79e.document=new Object();
_79e.document.location=new Object();
_79e.document.location.iframe=document.getElementById(_79b+"_frame");
_79e.document.location.replace=function(_79f){
this.iframe.src=_79f;
};
}
}
if(navigator.userAgent.indexOf("Gecko")!=-1&&!_79e.contentDocument){
var func="sendUIMessage2('"+_79c+"')";
setTimeout(func,10);
return false;
}
var _7a1=getIFrameDoc(_79e);
if(_7a1==null){
return true;
}
_79e.src=_79c;
}
}
function addNewHelpComponent(_7a2){
_helps.push(_7a2);
}
Calendar.setup=function(_7a3){
function param_default(_7a4,def){
if(typeof _7a3[_7a4]=="undefined"){
_7a3[_7a4]=def;
}
}
param_default("inputField",null);
param_default("displayArea",null);
param_default("button",null);
param_default("clearField",null);
param_default("eventName","click");
param_default("ifFormat","%Y/%m/%d");
param_default("daFormat","%Y/%m/%d");
param_default("singleClick",true);
param_default("disableFunc",null);
param_default("dateStatusFunc",_7a3["disableFunc"]);
param_default("firstDay",0);
param_default("align","Br");
param_default("range",[1900,2999]);
param_default("weekNumbers",true);
param_default("flat",null);
param_default("flatCallback",null);
param_default("onSelect",null);
param_default("onClose",null);
param_default("onClear",null);
param_default("onDone",null);
param_default("onCancel",null);
param_default("onUpdate",null);
param_default("date",null);
param_default("cancelDate",_7a3["date"]);
param_default("showsCalendar",true);
param_default("showsTime",false);
param_default("showsActionBar",_7a3["showsTime"]);
param_default("minIncr",1);
param_default("strictMinIncr",true);
param_default("timeFormat","24");
param_default("electric",true);
param_default("step",2);
param_default("position",null);
param_default("cache",false);
param_default("showOthers",false);
var tmp=["inputField","displayArea","button","clearField"];
for(var i in tmp){
if(typeof _7a3[tmp[i]]=="string"){
_7a3[tmp[i]]=document.getElementById(_7a3[tmp[i]]);
}
}
if(!(_7a3.flat||_7a3.inputField||_7a3.displayArea||_7a3.button)){
alert("Calendar.setup:\n  Nothing to setup (no fields found).  Please check your code");
return false;
}
if(_7a3.displayArea){
var _7a8=_7a3.inputField||_7a3.displayArea;
var _7a9=_7a3.inputField?_7a3.ifFormat:_7a3.daFormat;
var _7aa=_7a8.value||_7a8.innerHTML;
if(_7aa=="emptied"){
_7aa="";
}
var _7ab={};
var date=parseDate(_7aa,_7a9,_7ab);
if(_7ab.nbf){
_7a3.displayArea.innerHTML=date.print(_7a3.daFormat);
}else{
var _7ad=_7a3.clearField?_7a3.clearField.value||_7a3.clearField.innerHTML:"";
_7a3.displayArea.innerHTML=_7ad;
}
}
function onSelect(cal){
var p=cal.params;
var _7b0=(cal.dateClicked||p.electric);
if(_7b0&&p.flat){
if(typeof p.flatCallback=="function"){
p.flatCallback(cal);
}else{
alert("No flatCallback given -- doing nothing.");
}
return false;
}
if(_7b0&&p.inputField){
p.inputField.value=cal.date.print(p.ifFormat);
if(typeof p.inputField.onchange=="function"){
p.inputField.onchange();
}
}
if(_7b0&&p.displayArea){
p.displayArea.innerHTML=cal.date.print(p.daFormat);
}
if(_7b0&&p.singleClick&&cal.dateClicked&&!cal.showsActionBar){
cal.callCloseHandler();
}
if(_7b0&&typeof p.onUpdate=="function"){
p.onUpdate(cal);
}
}
function onClear(cal){
var p=cal.params;
if(p.flat){
if(typeof p.flatCallback=="function"){
p.flatCallback(cal);
}else{
alert("No flatCallback given -- doing nothing.");
}
return false;
}
if(p.inputField){
p.inputField.value="emptied";
if(typeof p.inputField.onchange=="function"){
p.inputField.onchange();
}
}
if(p.displayArea){
p.displayArea.innerHTML=cal.clearText;
}
if(typeof p.onUpdate=="function"){
p.onUpdate(cal);
}
cal.hide();
}
function onDone(cal){
cal.hide();
}
function onCancel(cal){
if(cal.cancelDate){
cal.setDate(cal.cancelDate);
cal.callHandler();
}else{
cal.callClearHandler();
}
cal.hide();
}
if(_7a3.flat!=null){
if(typeof _7a3.flat=="string"){
_7a3.flat=document.getElementById(_7a3.flat);
}
if(!_7a3.flat){
alert("Calendar.setup:\n  Flat specified but can't find parent.");
return false;
}
var cal=new Calendar(_7a3.firstDay,_7a3.date,_7a3.onSelect||onSelect,_7a3.onClose||onDone,_7a3.onClear||onClear,_7a3.onDone||onDone,_7a3.onCancel||onCancel,_7a3.inputField.id.replace(".inputrelevant",""));
cal.showsCalendar=_7a3.showsCalendar;
cal.showsTime=_7a3.showsTime;
cal.showsActionBar=_7a3.showsActionBar;
cal.minIncr=_7a3.minIncr;
cal.strictMinIncr=_7a3.strictMinIncr;
cal.time24=(_7a3.timeFormat=="24");
cal.params=_7a3;
cal.weekNumbers=_7a3.weekNumbers;
cal.setRange(_7a3.range[0],_7a3.range[1]);
cal.setDateStatusHandler(_7a3.dateStatusFunc);
cal.create(_7a3.flat);
cal.show();
return false;
}
var _7b6=_7a3.button||_7a3.displayArea||_7a3.inputField;
_7b6["on"+_7a3.eventName]=function(){
if(typeof (_7b6.disabled)=="undefined"||_7b6.disabled==false){
var _7b7=_7a3.inputField||_7a3.displayArea;
var _7b8=_7a3.inputField?_7a3.ifFormat:_7a3.daFormat;
var _7b9=false;
var cal=window.calendar;
if(!(cal&&_7a3.cache)){
window.calendar=cal=new Calendar(_7a3.firstDay,_7a3.date,_7a3.onSelect||onSelect,_7a3.onClose||onDone,_7a3.onClear||onClear,_7a3.onDone||onDone,_7a3.onCancel||onCancel,_7a3.inputField.id.replace(".inputrelevant",""));
cal.showsCalendar=_7a3.showsCalendar;
cal.showsTime=_7a3.showsTime;
cal.showsActionBar=_7a3.showsActionBar;
cal.minIncr=_7a3.minIncr;
cal.strictMinIncr=_7a3.strictMinIncr;
cal.time24=(_7a3.timeFormat=="24");
cal.weekNumbers=_7a3.weekNumbers;
_7b9=true;
}else{
if(_7a3.date){
cal.setDate(_7a3.date);
}
cal.hide();
}
cal.showsOtherMonths=_7a3.showOthers;
cal.yearStep=_7a3.step;
cal.setRange(_7a3.range[0],_7a3.range[1]);
cal.params=_7a3;
cal.setDateStatusHandler(_7a3.dateStatusFunc);
cal.setDateFormat(_7b8);
if(_7b9){
cal.create();
}
var _7bb=_7b7.value||_7b7.innerHTML;
if(_7bb=="emptied"){
_7bb="";
}
var _7bc=cal.parseDate(_7bb);
cal.cancelDate=_7a3.cancelDate;
if(!_7a3.cancelDate&&_7bc){
cal.cancelDate=new Date(cal.date.getTime());
}
cal.clearText=_7a3.clearField?_7a3.clearField.value||_7a3.clearField.innerHTML:"";
cal.refresh();
if(!_7a3.position){
cal.showAtElement(_7a3.button||_7a3.displayArea||_7a3.inputField,_7a3.align);
}else{
cal.showAt(_7a3.position[0],_7a3.position[1]);
}
}
if(typeof event!="undefined"){
event.returnValue=false;
}
return false;
};
};
function createAccessibleAlert(_7bd,_7be,_7bf,_7c0,_7c1,_7c2,_7c3,_7c4){
var _7c5=createAlert(_7bd,_7be,_7bf,_7c0,_7c1,_7c2,_7c3,_7c4);
if(_7c5!=null){
if(_7c5.embeddedDialog!=null){
var _7c6=findElementsEndingWithId(document,_7c5.embeddedDialog.dialogId+"-fr",null,true)[0];
if(_7c6!=null){
_7c5.embeddedDialog.htmlContent=_7c6.innerHTML;
_7c6.innerHTML="";
}
}else{
var _7c6=findElementsEndingWithId(document,_7bd+".message",null,true)[0];
if(_7c6!=null){
_7c5.htmlContent=_7c6.innerHTML;
_7c6.innerHTML="";
}
}
}
return _7c5;
}

