var FCKeditor=function(B,D,A,C,E){this.InstanceName=B;
this.Width=D||"100%";
this.Height=A||"200";
this.ToolbarSet=C||"Default";
this.Value=E||"";
this.BasePath="/pub/fckeditor/";
this.CheckBrowser=true;
this.DisplayErrors=true;
this.EnableSafari=true;
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 B=this.Width.toString().indexOf("%")>0?this.Width:this.Width+"px";
var A=this.Height.toString().indexOf("%")>0?this.Height:this.Height+"px";
document.write('<textarea name="'+this.InstanceName+'" rows="4" cols="40" style="WIDTH: '+B+"; HEIGHT: "+A+'" wrap="virtual">'+this._HTMLEncode(this.Value)+"</textarea>")
}document.write("</div>")
};
FCKeditor.prototype.ReplaceTextarea=function(){if(!this.CheckBrowser||this._IsCompatibleBrowser()){var A=document.getElementById(this.InstanceName);
if(!A){A=document.getElementsByName(this.InstanceName)[0]
}if(!A||A.tagName!="TEXTAREA"){alert('Error: The TEXTAREA id "'+this.InstanceName+'" was not found');
return 
}A.style.display="none";
this._InsertHtmlBefore(this._GetConfigHtml(),A);
this._InsertHtmlBefore(this._GetIFrameHtml(),A)
}};
FCKeditor.prototype._InsertHtmlBefore=function(C,B){if(B.insertAdjacentHTML){B.insertAdjacentHTML("beforeBegin",C)
}else{var D=document.createRange();
D.setStartBefore(B);
var A=D.createContextualFragment(C);
B.parentNode.insertBefore(A,B)
}};
FCKeditor.prototype._GetConfigHtml=function(){var A="";
for(var B in this.Config){if(A.length>0){A+="&amp;"
}A+=escape(B)+"="+escape(this.Config[B])
}return'<input type="hidden" id="'+this.InstanceName+'___Config" value="'+A+'" />'
};
FCKeditor.prototype._GetIFrameHtml=function(){var C="fckeditor.compressed.html";
var A=this.BasePath+"editor/"+C+"?InstanceName="+this.InstanceName;
if(this.ToolbarSet){A+="&Toolbar="+this.ToolbarSet
}var B="Editor";
return'<iframe title="'+B+'" id="'+this.InstanceName+'___Frame" src="'+A+'" width="'+this.Width+'" height="'+this.Height+'" frameborder="no" scrolling="no"></iframe>'
};
FCKeditor.prototype._IsCompatibleBrowser=function(){var B=navigator.userAgent.toLowerCase();
if(B.indexOf("msie")!=-1&&B.indexOf("mac")==-1&&B.indexOf("opera")==-1){var A=navigator.appVersion.match(/MSIE (.\..)/)[1];
return(A>=5.5)
}else{if(navigator.product=="Gecko"&&navigator.productSub>=20030210){return true
}else{if(this.EnableSafari&&B.indexOf("safari")!=-1){return(B.match(/webkit\/(\d+)/)[1]>=312)
}else{return false
}}}};
FCKeditor.prototype._ThrowError=function(B,A){this.ErrorNumber=B;
this.ErrorDescription=A;
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,B,A)
}};
FCKeditor.prototype._HTMLEncode=function(A){if(typeof (A)!="string"){A=A.toString()
}A=A.replace(/&/g,"&amp;");
A=A.replace(/"/g,"&quot;");
A=A.replace(/</g,"&lt;");
A=A.replace(/>/g,"&gt;");
A=A.replace(/'/g,"&#39;");
return A
};
window.document.jsfForm=function(){if(this.forms.length==1){return this.forms[0]
}for(var A=0;
A<this.forms.length;
A++){if(this.forms[A]["bookmarkURLHF"]!=undefined){return this.forms[A]
}}return null
};
String.prototype.endsWith=function(A){var B=this.lastIndexOf(A);
return B!=-1&&B+A.length==this.length
};
String.prototype.trim=function(){return this.replace(/^\s\s*/,"").replace(/\s\s*$/,"")
};
function getEventElement(A){A=(A)?A:window.event;
return(A.target)?A.target:A.srcElement
}function forceSubmit(){stdSubmit(document.jsfForm())
}function forceCommandSubmit(A){subCmdSubmit(document.jsfForm().id,A,null)
}function dontKeepScrollPosition(){var A=document.jsfForm();
if(A.akPBDisabled!=undefined){A.akPBDisabled.value="1"
}return true
}function findParentOfType(B,A){var C=B;
while(C.parentNode!=null){if(C.parentNode.nodeName==A){return C.parentNode
}C=C.parentNode
}return null
}function findElementsEndingWithId(I,C,H,G){if(I==null){I=window.document
}if(H==null){H=new Array()
}var A=I.childNodes;
for(var D=0;
D<A.length;
D++){var B=A[D].id;
if(B!=null){var E=B.lastIndexOf(C);
if(E!=-1&&E+C.length==B.length){H.push(A[D]);
if(G){return H
}}}if(A[D].hasChildNodes()){var F=H.length;
findElementsEndingWithId(A[D],C,H,G);
if(F<H.length&&G){return H
}}}return H
}function findElementsEndingWithName(I,C,G,F){if(I==null){I=window.document
}if(G==null){G=new Array()
}var A=I.childNodes;
for(var D=0;
D<A.length;
D++){var H=A[D].name;
if(H!=null){var B=H.lastIndexOf(C);
if(B!=-1&&B+C.length==H.length){G.push(A[D]);
if(F){return G
}}}if(A[D].hasChildNodes()){var E=G.length;
findElementsEndingWithName(A[D],C,G,F);
if(E<G.length&&F){return G
}}}return G
}function findElementByClass(C,D){if(C==null){C=window.document
}var A=C.childNodes;
for(var B=0;
B<A.length;
B++){if(A[B].className==D){return A[B]
}}for(var B=0;
B<A.length;
B++){if(A[B].hasChildNodes()){elem=findElementByClass(A[B],D);
if(elem!=null){return elem
}}}return null
}function getElementHeight(A,B){elem=findElementByClass(A,B);
if(elem!=null){rect=elem.getBoundingClientRect();
return rect.bottom-rect.top
}return 0
}function previousSiblingWithTag(C,A){var B=C.previousSibling;
if(B!=null){if(B.tagName!=null&&B.tagName.toLowerCase()==A.toLowerCase()){return B
}else{return previousSiblingWithTag(B,A)
}}return null
}function nextSiblingWithTag(C,A){var B=C.nextSibling;
if(B!=null){if(B.tagName!=null&&B.tagName.toLowerCase()==A.toLowerCase()){return B
}else{return nextSiblingWithTag(B,A)
}}return null
}function nextSiblingWithoutTag(C,A){var B=C.nextSibling;
if(B!=null){if(B.tagName!=null&&B.tagName.toLowerCase()!=A.toLowerCase()){return B
}else{return nextSiblingWithoutTag(B,A)
}}return null
}function getCenterPanelHeight(A){var D=0;
var B=0;
var G=previousSiblingWithTag(A,"span");
var F=nextSiblingWithTag(A,"span");
if(G!=null){var E=G.getBoundingClientRect();
D=E.bottom-E.top
}if(F!=null){var C=F.getBoundingClientRect();
B=C.bottom-C.top
}return document.documentElement.clientHeight-D-B
}function bookmarkMe(){url=document.jsfForm()["bookmarkURLHF"].value;
name=document.jsfForm()["bookmarkNameHF"].value;
if(url!=null){window.external.AddFavorite(url,name)
}return false
}function execDefaultCmdOnEnterKeyPress(A){var D=getKeyPressed(A);
var C=13;
if(D==C){var B=findDefaultCmd(null);
if(B!=null){B.onclick()
}}}function getKeyPressed(A){var B;
if(window.event){B=A.keyCode
}else{if(A.which){B=A.which
}}return B
}function findDefaultCmd(A){var B=findElementsEndingWithId(null,"defaultCmd",null,true);
if(B.length>0){return B[0]
}return null
}function clearInputTime(A){var B=findElementsEndingWithId(null,A+"-h",null,true);
if(B.length>0){B[0].value="--"
}var B=findElementsEndingWithId(null,A+"-m",null,true);
if(B.length>0){B[0].value="--"
}var B=findElementsEndingWithId(null,A+"-a",null,true);
if(B.length>0){B[0].value="--"
}return false
}function clearInputDate(A){var B=findCalendarByID(A);
if(B!=null){document.jsfForm()[B.hiddenFieldID].value="emptied";
showInputDateIfEmptyFacet(A)
}return false
}function getInputDateDate(A){var B=findCalendarByID(A);
if(B!=null&&document.jsfForm()[B.hiddenFieldID].value.length>0){return parseDate(document.jsfForm()[B.hiddenFieldID].value,B.ifFormat,new Object())
}return null
}function setInputDateDate(B,A){var C=findCalendarByID(B);
if(C!=null){document.jsfForm()[C.hiddenFieldID].value=A.print(C.ifFormat);
window.document.getElementById(C.spanID).innerHTML=A.print(C.daFormat)
}}function getElementIntValue(A){var B=null;
var C=findElementsEndingWithId(null,A,null,true);
if(C.length>0){B=C[0]
}else{return -1
}if(B.tagName=="INPUT"){return parseInt(B.value)
}return parseInt(B.innerHTML)
}function manageTableSelCount(I,B,C,J){I=(I)?I:window.event;
var A=getEventElement(I);
if(A.tagName!="INPUT"||A.type!="checkbox"){return 
}var E=null;
var F=null;
var K=null;
if(B!=null){elements=findElementsEndingWithId(null,B,null,true);
if(elements.length>0){F=elements[0]
}}if(C!=null){elements=findElementsEndingWithId(null,C,null,true);
if(elements.length>0){K=elements[0]
}}elements=findElementsEndingWithId(null,J,null,true);
if(elements.length>0){E=elements[0]
}var H=findParentOfType(A,"THEAD");
if(H!=null){if(A.type=="checkbox"){if(A.checked){if(F!=null&&K!=null){K.innerHTML=F.value
}E.value="3"
}else{if(K!=null){K.innerHTML="0"
}E.value="2"
}formCheckAll(A)
}}else{if(K!=null){var D=findParentOfType(A,"TBODY");
if(D!=null&&A.type=="checkbox"){var G=parseInt(K.innerHTML);
G=A.checked?G+1:G-1;
K.innerHTML=G.toString();
formSyncCheckAll2(A,true)
}}}}function clearQuickFinder(C){var B=window.document.getElementById(C);
if(B){B.value="";
if(document.createEvent){var A=document.createEvent("HTMLEvents");
A.initEvent("change",true,true);
B.dispatchEvent(A)
}else{B.fireEvent("onchange")
}}}function activateQuickFinderValidation(C){var B=window.document.getElementById(C+".disValid");
if(B.length>0){var A=B[0];
A.value="false"
}}function reloadWindow(){window.location.reload(true)
}function getTableSelectionCount(C){var B=findElementsEndingWithId(null,C,null,true)[0];
var A=window.document.getElementById(B.id+"._selCount");
return parseInt(A.value)
}function disableCommand(B,C){var A=findElementsEndingWithId(null,B,null,true)[0];
disableCommandButton(A.id,2,false,C)
}function disableActionBar(B,C){var A=findElementsEndingWithId(null,B,null,true)[0];
disableCommandButton(A.id,3,false,C)
}function inputRichTextInsertHtml(B,A){var C=findElementsEndingWithId(null,B,null,true)[0];
EditorUtils.insertHtmlText(C.id,A)
}function getHelpPane(A){var B=findElementsEndingWithId(null,A,null,true);
if(B!=null&&B.length>0){return B[0]
}return null
}function displayHelp(B,A,D){if(A!=null){if(D==null){D="inline"
}var C=getHelpPane(A);
if(C!=null){C.style.display=D;
C.style.visibility=""
}}activateHelpContext(B);
return false
}function hideHelp(A){var B=getHelpPane(A);
if(B!=null){B.style.display="none";
B.style.visibility="hidden"
}return false
}function popupHelpWindow(B,A){helpWindow=B();
if(A!=null){getHelpPane(A);
helpIFrameDiv=findElementsEndingWithId(null,"iframe",null,true)[0];
if(helpIFrameDiv!=null){if(helpIFrameDiv.childNodes){var C=helpIFrameDiv.childNodes[0];
helpWindow.location=C.src
}}hideHelp(A)
}return false
}function isRichTextWithId(A,B){return A.id.endsWith(B+"___Frame")
}function createIFrame(A,F,I,J,D,G,B,H){try{var K=document.createElement("iframe");
K.className=H;
K.setAttribute("id","pId");
K.style.width=D;
K.style.height=G;
K.title=J;
K.setAttribute("frameBorder",B);
K.src=I;
myIFrame_=findElementsEndingWithId(null,A,null,true)[0].appendChild(K);
if(document.frames){try{myIFrame_=document.getElementById(A)[0].frames[F]
}catch(E){}}}catch(C){iframeHTML='<iframe id="'+F+'" title="" style="';
iframeHTML+="border:"+B+";";
iframeHTML+="width:"+D+";";
iframeHTML+="height:"+G+";";
iframeHTML+='"></iframe>';
document.body.innerHTML+=iframeHTML;
myIFrame_={};
myIFrame_.document={};
myIFrame_.document.location={};
myIFrame_.document.location.iframe=document.getElementById(F);
myIFrame_.document.location.replace=function(L){this.iframe.src=L
}
}}var BalloonComponent={changeContent:function(A,B){BalloonRenderer.contentReady(A,B)
}};
function BalloonAjaxHandler(){}BalloonAjaxHandler.prototype.onInit=function(){};
BalloonAjaxHandler.prototype.onError=function(A,B){};
BalloonAjaxHandler.prototype.onProgress=function(B,A){};
BalloonAjaxHandler.prototype.onLoad=function(A){var C=AjaxActionComponent.getContentElement(A);
var B=AjaxActionComponent.getCallerContextComponentId(A);
var D=ElementUtils.cloneItem(C);
BalloonComponent.changeContent(B,D)
};
var AjaxActionComponent={getContentElement:function(A){return A.getElementsByTagName("content")[0].firstChild
},getCallerContextElement:function(A){return A.getElementsByTagName("callerContext")[0]
},getCallerContextComponentId:function(A){return this.getCallerContextElement(A).getElementsByTagName("componentId")[0].firstChild.nodeValue
}};
var AKCore={messagesResGroupId_:-1,mainFlexControlId_:null,_hasFocus:false,adaptExternalLinks:function(){var D=document.jsfForm();
if(!D||!D.getElementsByTagName){return 
}var C=D.getElementsByTagName("a");
for(var B=0;
B<C.length;
B++){var A=C[B];
if(A.getAttribute("href")&&A.getAttribute("rel")=="external"){A.target="_blank"
}}},activeElements:[],maxActiveELements:2,trackActiveElements:function(){var B=this;
var F=function(H){B._trackActiveElement(H)
};
if(document.attachEvent){var D=document.jsfForm();
if(D&&D.length>0){var A=D.elements;
for(var C=0,G=D.length;
C<G;
C++){var E=A[C];
addEvent(E,"focus",F)
}}}else{var B=this;
addEvent(document,"focus",F)
}},_trackActiveElement:function(A){var D=EventUtils.getTargetElement(A);
var C=D==document?null:D;
if(C){var B=this.activeElements.unshift(C);
if(B>this.maxActiveElements){this.activeElements.splice(this.maxActiveElements,B-this.maxActiveElements)
}}},$last:null};
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(B,D,A,C,E){this.commandId=B;
this.url=D;
this.delay=A;
this.withCancel=C;
this.disabled=E;
waitingWindows_.push(this)
}function writeText(A,B){if("innerText" in A){A.innerText=B
}else{A.textContent=B
}}function findWaitingWindow(A){var B=null;
if(A){for(i=0;
B==null&&i<waitingWindows_.length;
i++){if(A.lastIndexOf(waitingWindows_[i].commandId)!=-1){B=waitingWindows_[i]
}}}for(i=0;
B==null&&i<waitingWindows_.length;
i++){if(waitingWindows_[i].commandId=="-1"){B=waitingWindows_[i]
}}if(B&&B.disabled){B=null
}return B
}function show(B,C){var A=document.getElementById(B);
if(A){A.style.visibility="visible";
if(C){if(A.style.display=="none"){A.style.display=""
}}}}function hide(B,C){var A=document.getElementById(B);
if(A){A.style.visibility="hidden";
if(C){A.style.display="none"
}}}function setFocusOn(){AKCore._hasFocus=true
}function setFocusOff(){AKCore._hasFocus=false
}function addEvent(A,C,B){if(A.attachEvent){A.attachEvent("on"+C,B)
}else{if(A.addEventListener){A.addEventListener(C,B,true)
}else{A["on"+C]=B
}}}function addEventByEndingID(D,C,A){var B=findElementsEndingWithId(null,D,null,false);
for(i=0;
i<B.length;
i++){addEvent(B[i],C,A)
}}function removeEvent(A,C,B){if(A.detachEvent){A.detachEvent("on"+C,B)
}else{if(A.removeEventListener){A.removeEventListener(C,B,true)
}else{A["on"+C]=null
}}}function hasClass(D,C){if(!(D&&D.className)){return false
}var A=D.className.split(" ");
for(var B=A.length;
B>0;
){if(A[--B]==C){return true
}}return false
}function removeClass(E,D){if(!(E&&E.className)){return 
}var A=E.className.split(" ");
var B=[];
for(var C=A.length;
C>0;
){if(A[--C]!=D){B[B.length]=A[C]
}}E.className=B.join(" ")
}function addClass(E,D){if(!E){return 
}if(!E.className){E.className=D;
return 
}var A=E.className.split(" ");
var B=[];
for(var C=A.length;
C>0;
){if(A[--C]!=D){B[B.length]=A[C]
}else{return 
}}B[B.length]=D;
E.className=B.join(" ")
}function addClasses(C,D){if(!C){return 
}if(!C.className){C.className=D;
return 
}var A=D.split(" ");
for(var B=A.length;
B>0;
){if(A[--B]!=""){addClass(C,A[B])
}}}function addParameter(B,A,C){B+=B.indexOf("?")==-1?"?":"&";
B+=A+"="+Core.encodeURIComponent(C);
return B
}function stopSubmit(A){if(A.stop){A.stop()
}else{A.document.execCommand("Stop")
}}function stdSubmit(B,C){if(typeof B.onsubmit=="function"){B.onsubmit()
}manageKeepScrollPos(B);
if(B.formChanged){checkFormDataChangesOnsubmit(B)
}setWaitCursorForSubmit(C);
var E=findWaitingWindow(C);
if(E){setTimeout(function(){openWaitingWindow(E)
},E.delay)
}var F=0;
var A=new Date();
if(A.getTimezoneOffset){F=A.getTimezoneOffset()
}B.tz.value=formatTimezone(F);
try{logViewInfo("stdSubmit: pre-submit");
leavingDomain_=false;
B.submit(true);
logViewInfo("stdSubmit: post-submit")
}catch(D){emptyCmdHF(window);
clearWaitCursorForSubmit(window);
alert(D.description)
}}function handleOutputLinkClick(A){leavingDomain_=false
}function logViewInfo(A){}function setWaitCursorForSubmit(B){var A=document.getElementById(B);
window.document.body.style.cursor="wait";
if(A){elementWithWaitCursor=A;
elementWithWaitCursor.style.cursor="wait"
}}function clearWaitCursorForSubmit(A){A.document.body.style.cursor="default";
if(A.elementWithWaitCursor){A.elementWithWaitCursor.style.cursor="pointer";
A.elementWithWaitCursor=null
}}function cmdSubmit(pFormId,pCmdClientId,pUserOnclick,pExtraParams,pHaveActionToExecute){if(!isAnEmbeddedDialogOpened()){var cmdDisabled=false;
var cmd=document.getElementById(pCmdClientId);
if(!cmd||typeof (cmd.disabled)=="undefined"||!cmd.disabled){var form=document.forms[pFormId];
currentCmd=form.jsfCmdId.value;
if(currentCmd==null||currentCmd.length==0){doSubmit=true;
form.jsfCmdId.value=pCmdClientId;
if(pUserOnclick){doSubmit=eval(pUserOnclick)
}var doSubmitType=typeof (doSubmit);
if(doSubmitType=="boolean"){if(doSubmit){subCmdSubmit(pFormId,pCmdClientId,pExtraParams)
}else{form.jsfCmdId.value=""
}}else{if(doSubmitType=="object"){doSubmit.openerHaveActionToExecute=pHaveActionToExecute;
doSubmit.onCloseFnc=function(){form.jsfCmdId.value=pCmdClientId;
subCmdSubmit(pFormId,pCmdClientId,pExtraParams)
};
form.jsfCmdId.value=""
}else{currentCmd=null
}}}}}}function subCmdSubmit(C,A,B){var D=document.forms[C];
D.jsfCmdId.value=A;
D.jsfCmdParams.value=B||"";
stdSubmit(D,A)
}function manageKeepScrollPos(B){if(B.akPBXOffset&&B.akPBYOffset){var A=document.compatMode&&document.compatMode!="BackCompat"?document.documentElement:document.body;
B.akPBXOffset.value=document.all?A.scrollLeft:window.pageXOffset;
B.akPBYOffset.value=document.all?A.scrollTop:window.pageYOffset
}}function restoreScrollPos(A,B){window.scrollTo(A,B)
}function emptyCmdHF(A){var B=A.document.jsfForm();
if(B&&B.jsfCmdId){B.jsfCmdId.value=""
}}function getIFrameDoc(A){if(A.contentDocument){return A.contentDocument
}if(A.contentWindow){return A.contentWindow.document
}try{if(A.document){return A.document
}}catch(B){}return null
}function sendUIMessage2(F){if(!document.createElement){return true
}if(AKCore.mainFlexControlId_!=null){var D=document.getElementById(AKCore.mainFlexControlId_);
if(D&&D.notifyFlexUIMessage){D.notifyFlexUIMessage(F)
}}var B=contextPath_+"/UIMessageReceiver.jss?msg="+F;
if(!msgSenderIFrame_&&document.createElement){try{var A=document.createElement("iframe");
A.setAttribute("id","RSIFrame");
A.style.border="0px";
A.style.width="0px";
A.style.height="0px";
A.style.display="none";
A.style.visibility="hidden";
A.title="";
A.src=B;
msgSenderIFrame_=document.body.appendChild(A);
if(document.frames){msgSenderIFrame_=document.frames.RSIFrame
}}catch(C){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(H){this.iframe.src=H
}
}}if(navigator.userAgent.indexOf("Gecko")!=-1&&!msgSenderIFrame_.contentDocument){var E="sendUIMessage2('"+B+"')";
setTimeout(E,10);
return false
}var G=getIFrameDoc(msgSenderIFrame_);
if(G==null){return true
}G.location.replace(B);
return false
}function openWaitingWindow(A){var B=A.url;
if(A.withCancel){B+="&cancel=1"
}openModalDialog(B,250,100)
}function openModalDialog(C,A,E){var B=(new Date()).getSeconds().toString();
var G=(screen.width-A)/2;
var F=(screen.height-E)/2;
var D="left="+G+",top="+F+",width="+A+",height="+E+",center=yes,resizable=yes,scroll=yes,help=no,status=no";
logViewInfo("openModalDialog: pre-window.open");
currentModal=window.open(C,B,D);
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(B,C,A){sessionTimeoutInterval=B;
sessionWarningInterval=C;
beaconBeatInterval=A;
initSessionBeacon()
}function reviveSession(A){sendUIMessage2("sessionBeaconBeat");
resetSessionBeacon()
}function resetSessionBeacon(){sessionAboutToEndWindow_=null;
sessionEndedWindow=null;
initSessionBeacon()
}function initSessionBeacon(){var A=false;
try{A=window.frameElement
}catch(B){A=false
}if(!A){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 C=document.getElementById(AKCore.mainFlexControlId_);
if(C){C.popupSessionWarning(sessionTimeoutInterval,sessionWarningInterval);
if(!AKCore._hasFocus){var D=(screen.width-400)/2;
var F=(screen.height-200)/2;
var B=window.open(contextPath_+"/akira/pub/offFocusBeaconAlert.jsp?alertClientId=sessionWarningModal&formId="+document.jsfForm().id+"&msgResGroupId="+messagesResGroupId_,"","top="+F+",left="+D+",width=400,height=200,directories=no,location=no,menubar=no,toolbar=no,resizable=no,scrollbars=no,status=yes,center=yes;");
B.focus()
}}}else{var A=findAlert("sessionWarning");
if(!A){A=createAlert("sessionWarning","","","warning",null);
A.addCommand("?ok?","okBtn",reviveSession)
}theAlert2=findAlert("sessionWarningModal");
if(!theAlert2){theAlert2=createAlert("sessionWarningModal","warning",null)
}var E=contextPath_+"/akira/pub/session/sessionWarning.jsf";
E+="?formId="+document.jsfForm().id;
E+="&msgResGroupId="+messagesResGroupId_;
showEmbeddedAlert(E,window,A,null);
sessionAboutToEndWindow_=window
}}}function manageSessionTimeout(){if(!sessionExpired){if(AKCore.mainFlexControlId_!=null){var B=document.getElementById(AKCore.mainFlexControlId_);
if(B){B.popupSessionTimeout(sessionTimeoutInterval,sessionWarningInterval);
invalidateSession()
}}else{var A=createAlert("sessionExpired","","","info",null);
A.addCommand("?ok?","okBtn",redirectSession);
var C=contextPath_+"/akira/pub/session/sessionTimeout.jsf";
C+="?formId="+document.jsfForm().id;
C+="&msgResGroupId="+messagesResGroupId_;
theAlert2=findAlert("sessionExpiredModal");
if(!theAlert2){theAlert2=createAlert("sessionExpiredModal","","","warning",null)
}showEmbeddedAlert(C,window,A,invalidateSession);
sessionEndedWindow_=window
}}}function redirectSession(){window.location=contextPath_+"/UIMessageReceiver.jss?msg=sessionExpiredRedirect"
}function flexSessionWarningClosed(){reviveSession()
}function flexSessionTimeoutClosed(){gotoTOC()
}function recordUserActivity(){initSessionBeacon()
}function gotoTOC(){var A;
if(sessionTimeoutUrl_){A=sessionTimeoutUrl_
}else{A=tocPage_||contextPath_+"/index.jsp"
}gotoUrl(A)
}function gotoUrl(A){if(sessionEndedWindow_){if(sessionEndedWindow_.dialogArguments){sessionEndedWindow_.dialogArguments.location=A
}else{sessionEndedWindow_.location=A
}}else{window.location=A
}}function installCoreRequiredEvents(){emptyCmdHF(window);
addEvent(window,"focus",checkModal);
addEvent(window.document.body,"click",checkModal);
addEvent(window,"unload",onUnload);
window.onbeforeunload=unloadMess;
AKCore.adaptExternalLinks();
logViewInfo("load")
}function unloadMess(A){var C="";
var B=document.jsfForm();
if(B&&B.akPBISWLD&&!B.akPBISWLD.dontcheckdomain&&leavingDomain_&&!sessionExpired){C=securityRes._g("youMightLooseYourWork");
return C
}return 
}function onUnload(pEvent){logViewInfo("unload");
var ourForm=document.jsfForm();
var altUrl=ourForm.esmurl;
if(pEvent.clientX&&pEvent.clientY){if(pEvent.clientX<0&&pEvent.clientY<0){invalidateSession();
if(altUrl!=null){if(altUrl!=null){var client=new HTTPClient();
client.init(altUrl.value);
var handler="NullHandler";
client.asyncGET(eval("new "+handler+"()"))
}}}}if(ourForm&&ourForm.akPBISWLD&&!ourForm.akPBISWLD.dontcheckdomain&&leavingDomain_&&!sessionExpired){invalidateSession();
if(altUrl!=null){var client=new HTTPClient();
client.init(altUrl.value);
var handler="NullHandler";
client.asyncGET(eval("new "+handler+"()"))
}}}function formatTimezone(C){var E="GMT"+(C<=0?"+":"-");
var D=Math.abs(C);
var B=D%60;
var A=(D-B)/60;
if(A<10){A="0"+A
}if(B<10){B="0"+B
}return E+A+":"+B
}var expanders_=[];
var expandersGroups_=[];
var expandersGroupsByExpanders_=[];
function ExpanderGroup(A){this.id=A;
this.expandersIds=[];
this.firstClickDone=false
}function addExpanderToGroup(A,B){var C=expandersGroups_[A];
if(C==null){C=new ExpanderGroup(A);
expandersGroups_[A]=C
}C.expandersIds[C.expandersIds.length]=B;
expandersGroupsByExpanders_[B]=C
}function Expander(G,D,F,B,J,E,I,H,C,A){this.id=G;
this.expandedId=D;
this.expandedContentId=F;
this.collapsedId=B;
this.formId=J;
this.forId=E;
this.expandedValue=I;
this.collapsedValue=H;
this.stateValue=C;
this.expandedDisplayStyle=A;
this.expandedContentDisplayStyle=A;
if(this.forId){this.expandedForDisplayStyle=A
}}function addExpander(G,D,F,B,J,E,I,H,C,A){var K=new Expander(G,D,F,B,J,E,I,H,C,A);
expanders_[G]=K
}function expand(B,A){var D=expanders_[B];
var C=expandersGroupsByExpanders_[B];
if(C==null||A==true){document.forms[D.formId][D.id].value=D.expandedValue;
show(D.expandedId,true);
document.getElementById(D.expandedId).className=D.expandedDisplayStyle;
show(D.expandedContentId,true);
document.getElementById(D.expandedContentId).className=D.expandedContentDisplayStyle;
if(D.forId){show(D.forId,true);
document.getElementById(D.forId).className=D.expandedForDisplayStyle
}hide(D.collapsedId,true);
D.stateValue=D.expandedValue
}}function collapse(B,A){var D=expanders_[B];
var C=expandersGroupsByExpanders_[B];
if(C==null||A==true){var D=expanders_[B];
document.forms[D.formId][D.id].value=D.collapsedValue;
hide(D.expandedId,true);
hide(D.expandedContentId,true);
if(D.forId){hide(D.forId,true)
}show(D.collapsedId,true);
document.getElementById(D.collapsedId).className=D.expandedDisplayStyle;
D.stateValue=D.collapsedValue
}}function selectExpanderGroupSection(B,C){var D=expandersGroups_[B];
var A=expanders_[C];
if(D.expandersIds.length==2){for(i=0;
i<D.expandersIds.length;
i++){var E=expanders_[D.expandersIds[i]];
if(E.stateValue==E.expandedValue){collapse(E.id,true)
}else{expand(E.id,true)
}}}else{if(A.stateValue==A.collapsedValue||!D.firstClickDone){D.firstClickDone=true;
expand(A.id,true);
for(i=0;
i<D.expandersIds.length;
i++){var E=expanders_[D.expandersIds[i]];
if(E.id!=C){if(E.stateValue==E.expandedValue){collapse(E.id,true)
}}}}}}function leftTrim(A){while(A.substring(0,1)==" "){A=A.substring(1,A.length)
}return A
}function rightTrim(A){while(A.substring(A.length-1,A.length)==" "){A=A.substring(0,A.length-1)
}return A
}function trimAll(A){A=leftTrim(A);
A=rightTrim(A);
return A
}function computeWindowOffsetLeft(C){var A=0;
var B=C;
while(typeof (B.parentNode)!="undefined"&&B.parentNode){var B=B.parentNode;
if(typeof (B.offsetLeft)!="undefined"){A+=B.offsetLeft
}}return A+C.offsetLeft
}function computeWindowOffsetTop(C){var A=0;
var B=C;
while(typeof (B.parentNode)!="undefined"&&B.parentNode){var B=B.parentNode;
if(typeof (B.offsetLeft)!="undefined"){A+=B.offsetTop
}}return A+C.offsetTop
}function getBrowserInfo(){var I=[0,0,0];
var F=null;
if(typeof navigator.plugins!="undefined"&&typeof navigator.plugins["Shockwave Flash"]=="object"){F=navigator.plugins["Shockwave Flash"].description;
if(F){F=F.replace(/^.*\s+(\S+\s+\S+$)/,"$1");
I[0]=parseInt(F.replace(/^(.*)\..*$/,"$1"),10);
I[1]=parseInt(F.replace(/^.*\.(.*)\s.*$/,"$1"),10);
I[2]=/r/.test(F)?parseInt(F.replace(/^.*r(.*)$/,"$1"),10):0
}}else{if(typeof window.ActiveXObject!="undefined"){var G=null;
var H=false;
try{G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")
}catch(E){try{G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
I=[6,0,21];
G.AllowScriptAccess="always"
}catch(E){if(I[0]==6){H=true
}}if(!H){try{G=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")
}catch(E){}}}if(!H&&G){try{F=G.GetVariable("$version");
if(F){F=F.split(" ")[1].split(",");
I=[parseInt(F[0],10),parseInt(F[1],10),parseInt(F[2],10)]
}}catch(E){}}}}var B=navigator.userAgent.toLowerCase();
var C=navigator.platform.toLowerCase();
var A=/webkit/.test(B)?parseFloat(B.replace(/^.*webkit\/(\d+(\.\d+)?).*$/,"$1")):"";
var D={major:I[0],minor:I[1],release:I[2]};
return{platform:C,userAgent:B,flashPlayer:D,webkitVersion:A}
}var Core={hideShowCovered:function(A,B){var C=function(){function E(U){var T=U.style.visibility;
if(!T){if(document.defaultView&&typeof (document.defaultView.getComputedStyle)=="function"){if(!AgentUtils.is_khtml){T=document.defaultView.getComputedStyle(U,"").getPropertyValue("visibility")
}else{T=""
}}else{if(U.currentStyle){T=U.currentStyle.visibility
}else{T=""
}}}return T
}var S=new Array("applet","iframe","select");
var D=Calendar.getAbsolutePos(A);
var H=D.x;
var F=A.offsetWidth+H;
var R=D.y;
var Q=A.offsetHeight+R;
for(var J=S.length;
J>0;
){var I=document.getElementsByTagName(S[--J]);
for(var L=I.length;
L>0;
){var G=I[--L];
D=HTMLUtils.getAbsolutePosition(G);
var P=D.x;
var O=G.offsetWidth+P;
var M=D.y;
var K=G.offsetHeight+M;
var N;
if(B||(P>F)||(O<H)||(M>Q)||(K<R)){N=false
}else{N=true
}if(!G.getAttributeNode("msh_save_visibility")){G.setAttribute("msh_save_visibility",E(G))
}G.style.visibility=N?"hidden":G.getAttribute("msh_save_visibility")
}}};
if(AgentUtils.is_khtml){setTimeout("continuation_for_the_khtml_browser()",10)
}else{C()
}},encodeURIComponent:function(A){return encodeURIComponent(A)
}};
function CellCoords(A,E,C,D,B){this.table=A;
this.groupName=E.parentNode.tagName.toLowerCase();
this.row=E;
this.cell=C;
this.rowIndex=D;
this.columnIndex=B
}var HTMLUtils={NO_BREAK_SPACE:"\u00A0",addLabel:function(C,A,D,E){var B=this.addElement(C,"label");
if(A){B.id=A
}if(D){B.htmlFor=D
}this.addText(B,E);
return B
},getLabel:function(A){return ElementUtils.getChildElementByTagName(A,"LABEL")
},getInput:function(A){return ElementUtils.getChildElementByTagName(A,"INPUT")
},ELEMENT_NODE:1,TEXT_NODE:3,addInput:function(E,B,C,A){var D=this.addElement(null,"input");
D.setAttribute("type",B||"text");
if(C){D.setAttribute("id",C)
}D.setAttribute("value",A);
if(E){E.appendChild(D)
}return D
},addTextArea:function(E,B,D,F,A){var C=this.addElement(null,"textarea");
if(B){C.setAttribute("id",B)
}C.setAttribute("value",A);
C.setAttribute("rows",D);
C.setAttribute("cols",F);
if(E){E.appendChild(C)
}return C
},addSelect:function(E,C,B,A){var D=this.addElement(null,"select");
if(C){D.setAttribute("id",C)
}D.setAttribute("size",""+B);
if(A){D.setAttribute("multiple","multiple")
}if(E){E.appendChild(D)
}return D
},addSelectOption:function(C,A,E,D){var B=this.addElement(null,"option");
B.setAttribute("value",A);
if(D){B.setAttribute("selected","selected")
}this.addText(B,E||A);
if(C){C.appendChild(B)
}return B
},addFieldSet:function(C,A){var B=this.addElement(null,"fieldset");
if(A){B.setAttribute("id",A)
}if(C){C.appendChild(B)
}return B
},addLegend:function(B,C){var A=this.addElement(B,"legend");
if(C){this.addText(A,C)
}return A
},addSpan:function(B,C){var A=this.addElement(B,"span");
if(C){this.addText(A,C)
}return A
},addDiv:function(B,C){var A=this.addElement(B,"div");
if(C){this.addText(A,C)
}return A
},addList:function(A){return this.addElement(A,"ul")
},addListItem:function(A){return this.addElement(A,"li")
},addImg:function(B,C){var A=this.addElement(B,"img");
A.src=C;
return A
},addAnchor:function(C,A){var B=this.addElement(C,"a");
B.href=A;
return B
},addElement:function(C,A){var B=document.createElement(A);
if(C!=null){C.appendChild(B)
}return B
},addGrid:function(G,B,C){var A=this.addDiv(G);
for(var F=0;
F<B;
F++){var E=this.addDiv(A);
for(var D=0;
D<C;
D++){cell=this.addSpan(E);
cell.setAttribute("className",D===0?"cell first-line-cell":"cell");
EventUtils.addEvent(cell,"click",addCellElement,false);
this.addText(cell,"cell "+F+", "+D)
}}return A
},addTable:function(G,F,A,D,C,E,B){var H=this.addElement(G,"table");
H.summary="";
this._addTableClass(H,E,"table");
this._addTableGroup(H,"thead",F,C,E,B);
this._addTableGroup(H,"tfoot",A,C,E,B);
this._addTableGroup(H,"tbody",D,C,E,B);
return H
},_addTableClass:function(B,C,A){if(C&&C[A]){var D=C[A];
if(typeof D=="function"){D=D(B)
}if(D){StyleUtils.addClasses(B,D)
}}},_addTableGroup:function(A,J,B,L,I,H){if(B>0){var E=J=="thead"?"th":"td";
var G=this.addElement(A,J);
this._addTableClass(G,I,J);
for(var D=0;
D<B;
D++){var K=this.addElement(G,"tr");
this._addTableClass(K,I,D%2===0?"trEven":"trOdd");
for(var C=0;
C<L;
C++){var F=this.addElement(K,E);
this._addTableClass(F,I,E);
if(H){H(A,J,D,C,F)
}}}}},addTableRow:function(A,D,C,B){return this._addTableRow(A,"tbody",D,C,B)
},_addTableRow:function(A,K,H,M,F){var C=ElementUtils.getChildElementByTagName(A,K.toUpperCase());
if(!C){return null
}var I=K=="thead"?"th":"td";
var B=C.firstChild;
var G=0;
var D=null;
while(B){if(ElementUtils.isElement(B,"TR")){if(G==H){D=B;
break
}G++
}B=B.nextSibling
}var L=this.addElement(null,"tr");
if(D){C.insertBefore(L,D)
}else{C.appendChild(L)
}for(var E=0;
E<M;
E++){var J=this.addElement(L,I);
if(F){F(A,K,H,E,J)
}}return L
},removeTableRow:function(A,B){this._removeTableRow(A,"tbody",B)
},_removeTableRow:function(B,A,E){var C=ElementUtils.getChildElementByTagName(B,A.toUpperCase());
if(!C){return 
}var G=C.firstChild;
var F=0;
var D=null;
while(G&&F<=E){if(ElementUtils.isElement(G,"TR")){D=G;
F++
}G=G.nextSibling
}if(D){C.removeChild(D)
}},addTableColumn:function(A,C,B){this._addTableColumn(A,"thead",C,B);
this._addTableColumn(A,"tfoot",C,B);
this._addTableColumn(A,"tbody",C,B)
},_addTableColumn:function(A,N,C,I){var E=ElementUtils.getChildElementByTagName(A,N.toUpperCase());
if(!E){return 
}var K=N=="thead"?"th":"td";
var G=K.toUpperCase();
var B=E.firstChild;
var J=0;
while(B){if(ElementUtils.isElement(B,"TR")){var O=B;
var L;
if(K=="th"&&O.cells.length==1){L=O.cells[0];
L.colSpan=(L.colSpan||1)+1
}else{var D=O.firstChild;
var H=0;
var M=null;
while(D){if(ElementUtils.isElement(D,G)){if(H==C){M=D;
break
}var F=D.colSpan||1;
H+=F
}D=D.nextSibling
}L=this.addElement(null,K);
if(M){O.insertBefore(L,M)
}else{O.appendChild(L)
}if(I){I(A,N,J,C,L)
}}}B=B.nextSibling;
J++
}},removeTableColumn:function(A,B){this._removeTableColumn(A,"thead",B);
this._removeTableColumn(A,"tfoot",B);
this._removeTableColumn(A,"tbody",B)
},_removeTableColumn:function(A,K,H){var D=ElementUtils.getChildElementByTagName(A,K.toUpperCase());
if(!D){return 
}var I=K=="thead"?"th":"td";
var F=I.toUpperCase();
var B=D.firstChild;
while(B){if(ElementUtils.isElement(B,"TR")){var L=B;
var C=L.firstChild;
var G=0;
var J=null;
while(C&&G<=H){if(ElementUtils.isElement(C,F)){J=C;
G+=C.colSpan||1
}C=C.nextSibling
}if(J){var E=J.colSpan||1;
if(E==1){L.removeChild(J)
}else{J.colSpan=E-1
}}}B=B.nextSibling
}},spanTableCells:function(B,F,E,A,D,C){return this._spanTableCells(B,"tbody",F,E,A,D,C)
},_spanTableCells:function(A,P,M,D,E,B,J){var N=this._getTableGroupCell(A,P,M,D);
if(E!==0){var I=N.rowSpan||1;
I+=E;
if(I>0){N.rowSpan=I
}if(E>0){var L=M+I;
for(var C=E;
C-->0;
){var Q=A.rows[--L];
var K=Q.cells[D];
Q.removeChild(K)
}}else{var L=M+I;
for(var C=E;
C++<0;
){var Q=A.rows[L++];
var F=Q.insertCell(D);
if(J){J(A,P,L,D,F)
}}}}if(B!=0){var G=N.colSpan||1;
G+=B;
if(G>0){N.colSpan=G
}var Q=N.parentNode;
if(B>0){for(var C=B;
C-->0;
){var O=N.nextSibling;
Q.removeChild(O)
}}else{var H=D;
for(var C=B;
C++<0;
){var F=Q.insertCell(++H);
if(J){J(A,P,M,H,F)
}}}}},getTableCell:function(A,C,B){return this._getTableGroupCell(A,"tbody",C,B)
},getTableHeaderCell:function(A,C,B){return this._getTableGroupCell(A,"thead",C,B)
},getTableGroupCell:function(B,A,D,C){return this._getGroupTableCell(B,A,D,C)
},_getTableGroupCell:function(A,K,G,C){var E=ElementUtils.getChildElementByTagName(A,K.toUpperCase());
if(!E){return 
}var B=E.firstChild;
var H=0;
var L=null;
while(B&&H<=G){if(ElementUtils.isElement(B,"TR")){L=B;
H++
}B=B.nextSibling
}if(!L){return null
}var I=K=="thead"?"TH":"TD";
var D=L.firstChild;
var F=0;
var J=null;
while(D&&F<=C){if(ElementUtils.isElement(D,I)){J=D;
F++
}D=D.nextSibling
}return J
},isEmptyTableCell:function(A){return(A&&A.firstChild)==null
},getTableCellCoords:function(D){var I=D.parentNode;
var C=I&&I.parentNode;
var G=C&&C.tagName=="THEAD"?"TH":"TD";
var H=C&&C.parentNode;
if(!ElementUtils.isElement(H,"TABLE")){return null
}var A=C.firstChild;
var F=0;
while(A){if(ElementUtils.isElement(A,"TR")){if(I==A){break
}F++
}A=A.nextSibling
}var B=I.firstChild;
var E=0;
while(B){if(ElementUtils.isElement(B,G)){if(D==B){break
}E++
}B=B.nextSibling
}return new CellCoords(H,I,D,F,E)
},getTableOfCell:function(C){var B=C.parentNode;
var A=B.parentNode;
return A.parentNode
},getTableNbRows:function(A){return this._getTableNbRows(A,"tbody")
},_getTableNbRows:function(C,B){var D=ElementUtils.getChildElementByTagName(C,B.toUpperCase());
if(!D){return 0
}var E=D.firstChild;
var A=0;
while(E){if(ElementUtils.isElement(E,"TR")){A++
}E=E.nextSibling
}return A
},getTableNbColumns:function(A){return this._getTableNbColumns(A,"tbody")
},_getTableNbColumns:function(E,D){var C=D=="thead"?"TH":"TD";
var F=ElementUtils.getChildElementByTagName(E,D.toUpperCase());
if(!F){return 0
}var H=F.firstChild;
var B=0;
while(H){var A=0;
if(ElementUtils.isElement(H,"TR")){var G=H.firstChild;
while(G){if(ElementUtils.isElement(G,C)){A+=G.colSpan||1
}G=G.nextSibling
}}H=H.nextSibling;
B=Math.max(A,B)
}return B
},forEachTableCells:function(A,B){this._forEachTableCells(A,"thead",B);
this._forEachTableCells(A,"tfoot",B);
this._forEachTableCells(A,"tbody",B)
},_forEachTableCells:function(A,J,F){var D=ElementUtils.getChildElementByTagName(A,J.toUpperCase());
if(!D){return 
}var H=J=="thead"?"TH":"TD";
var B=D.firstChild;
var G=0;
while(B){if(ElementUtils.isElement(B,"TR")){var K=B;
var C=K.firstChild;
var E=0;
while(C){if(ElementUtils.isElement(C,H)){var I=C;
F(A,J,G,E,I);
E++
}C=C.nextSibling
}G++
}B=B.nextSibling
}},forEachTableRowCells:function(A,C,B){this._forEachTableRowCells(A,"tbody",C,B)
},_forEachTableRowCells:function(A,K,G,F){var D=ElementUtils.getChildElementByTagName(A,K.toUpperCase());
if(!D){return 
}var I=K=="thead"?"TH":"TD";
var B=D.firstChild;
var H=0;
while(B){if(ElementUtils.isElement(B,"TR")){var L=B;
if(H==G){var C=L.firstChild;
var E=0;
while(C){if(ElementUtils.isElement(C,I)){var J=C;
F(A,K,H,E,J);
E++
}C=C.nextSibling
}break
}H++
}B=B.nextSibling
}},forEachTableColumnCells:function(A,C,B){this._forEachTableColumnCells(A,"tbody",C,B)
},_forEachTableColumnCells:function(A,K,C,G){var E=ElementUtils.getChildElementByTagName(A,K.toUpperCase());
if(!E){return 
}var I=K=="thead"?"TH":"TD";
var B=E.firstChild;
var H=0;
while(B){if(ElementUtils.isElement(B,"TR")){var L=B;
var D=L.firstChild;
var F=0;
while(D&&F<=C){if(ElementUtils.isElement(D,I)){var J=D;
if(F==C){G(A,K,H,F,J)
}F++
}D=D.nextSibling
}H++
}B=B.nextSibling
}},addTableCellsEvent:function(C,B,D,E){var G=B;
var F=D;
var A=E;
this.forEachTableCells(C,function(I,H,L,K,J){EventUtils.addEvent(J,G,F,A)
})
},addText:function(B,C){var A=document.createTextNode(C||"");
if(B){B.appendChild(A)
}return A
},replaceText:function(B,C){var A=B.firstChild;
if(A){A.replaceData(0,A.length,C||"");
return A
}else{return this.addText(B,C)
}},getHTML:function(A){if(ElementUtils.isElement(A,"TEXTAREA")){return A.value
}else{return A.innerHTML
}},setHTML:function(A,B){if(ElementUtils.isElement(A,"TEXTAREA")){A.value=B
}else{A.innerHTML=B||""
}},getAbsolutePosition:function(B){var A=0,E=0;
var D=/^div$/i.test(B.tagName);
if(D&&B.scrollLeft){A=B.scrollLeft
}if(D&&B.scrollTop){E=B.scrollTop
}var F={x:B.offsetLeft-A,y:B.offsetTop-E};
if(B.offsetParent){var C=HTMLUtils.getAbsolutePosition(B.offsetParent);
F.x+=C.x;
F.y+=C.y
}return F
}};
var EventUtils={addEvent:function(C,B,D,E){if(C.addEventListener){var A=E||false;
C.addEventListener(B,D,A)
}else{if(C.attachEvent){C.attachEvent("on"+B,D)
}else{C["on"+B]=D
}}},stopPropagation:function(A){A.cancelBubble=true;
if(A.stopPropagation){A.stopPropagation()
}},getElement:function(A){if(AgentUtils.isIE){return window.event.srcElement
}else{return A.currentTarget
}},getTargetElement:function(A){if(AgentUtils.isIE){return window.event.srcElement
}else{return A.target
}}};
var ElementUtils={ELEMENT_NODE:1,TEXT_NODE:3,isElement:function(B,A){return B&&B.nodeType==this.ELEMENT_NODE&&B.tagName==A
},findElement:function(C,D){var A=Coordinates.northwestOffset(C,true);
var E=Coordinates.southeastOffset(C,true);
if(D.inside(A,E)){var F=C.firstChild;
while(F){if(F.nodeType==HTMLUtils.ELEMENT_NODE){var B=this.findElement(F,D);
if(B){return B
}}F=F.nextSibling
}return C
}return null
},findTargetElement:function(A,C){var B=this.findElement(A,C);
while(B&&!StyleUtils.hasClass(B,"drop-target")){B=B.parentNode
}return B
},traverse:function(B,A){var C=B.firstChild;
while(C){if(C.nodeType==HTMLUtils.ELEMENT_NODE){A(C);
this.traverse(C,A)
}C=C.nextSibling
}},getElementTextByTagName:function(A,D,C){var E=this.getChildElementByTagName(A,D);
if(E){var B=this.getElementText(E);
if(B){return B
}}return C?C:""
},getElementBooleanByTagName:function(A,D,B){var E=this.getChildElementByTagName(A,D);
if(E){var C=this.getElementText(E);
if(C){C=C.toLowerCase();
return C=="true"||C=="yes"||C=="1"
}}return B?B:false
},getElementIntByTagName:function(A,E,B){var F=this.getChildElementByTagName(A,E);
if(F){var C=this.getElementText(F);
if(C){var D=parseInt(C);
if(isFinite(D)){return D
}}}return B?B:0
},getChildElementByTagName:function(A,B){var C=A&&A.firstChild;
while(C){if(this.isElement(C,B)){return C
}C=C.nextSibling
}return null
},getChildrenElementsByTagName:function(A,C){var B=[];
this._getChildrenElementsByTagNameSub(A,C,B);
return B
},_getChildrenElementsByTagNameSub:function(A,C,B){var D=A&&A.firstChild;
while(D){if(this.isElement(D,C)){B[B.length]=D
}this._getChildrenElementsByTagNameSub(D,C,B);
D=D.nextSibling
}return B
},getChildElementByClassName:function(A,C){var B=A&&A.firstChild;
while(B){if(StyleUtils.hasClass(B,C)){return B
}B=B.nextSibling
}return null
},getChildrenElementsByClassName:function(A,C){var B=[];
this._getChildrenElementsByClassNameSub(A,C,B);
return B
},_getChildrenElementsByClassNameSub:function(A,D,B){var C=A&&A.firstChild;
while(C){if(StyleUtils.hasClass(C,D)){B[B.length]=C
}this._getChildrenElementsByClassNameSub(C,D,B);
C=C.nextSibling
}return B
},getElementText:function(A){var C="";
var B=A&&A.firstChild;
while(B){if(B.nodeType==this.TEXT_NODE){if(C){C+=" "
}C+=B.nodeValue
}B=B.nextSibling
}return C
},cloneItem:function(D){if(D.nodeType==this.TEXT_NODE){return document.createTextNode(D.nodeValue)
}else{if(D.nodeType==this.ELEMENT_NODE){var E=document.createElement(D.tagName);
var B=D.attributes;
for(var C=0;
C<B.length;
C++){var A=B.item(C);
if(A.nodeName=="class"){StyleUtils.addClasses(E,A.nodeValue)
}else{if(A.nodeName=="style"){E.style.cssText=A.nodeValue
}else{E.setAttribute(A.nodeName,A.nodeValue)
}}}var G=D.firstChild;
for(;
G!=null;
G=G.nextSibling){var F=this.cloneItem(G);
if(F!=null){E.appendChild(F)
}}return E
}}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(D,E){if(!(D&&D.className)){return 
}var A=D.className.split(" ");
var B=[];
for(var C=A.length;
C>0;
){if(A[--C]!=E){B[B.length]=A[C]
}}D.className=B.join(" ")
},addClass:function(A,B){this.removeClass(A,B);
if(!A.className){A.className=B
}else{A.className+=" "+B
}},addClasses:function(D,C){if(!D){return 
}if(!D.className){D.className=C;
return 
}var A=C.split(" ");
for(var B=A.length;
B>0;
){if(A[--B]){this.addClass(D,A[B])
}}},hasClass:function(C,D){if(!(C&&C.className)){return false
}var A=C.className.split(" ");
for(var B=0,E=A.length;
B<E;
B++){if(A[B]==D){return true
}}return false
},addHoverEffect:function(C,D){if(!AgentUtils.isIE){return 
}var A=C;
var B=D?D:"hover";
EventUtils.addEvent(A,"mouseover",function(E){StyleUtils.addClass(A,B)
},false);
EventUtils.addEvent(A,"mouseout",function(E){StyleUtils.removeClass(A,B)
},false)
},setOpacity:function(A,C){if(A.style.opacity){A.style.opacity=C
}else{if(A.filters){var B=C*100;
var E="progid:DXImageTransform.Microsoft.Alpha";
var D=A.filters.alpha;
if(!D){A.style.filter+=E+"(Opacity=100) alpha()";
D=A.filters.alpha
}D.opacity=B
}else{if(A.style.MozOpacity){A.style.MozOpacity=C
}}}}};
var DragUtils={makeDragSource:function(A,B){if(!B){B=A
}Drag.makeDraggable(A);
if(B!=A){A.setDragHandle(B)
}A.setDragThreshold(5);
A.onDragStart=onDragStart;
A.onDrag=onDrag;
A.onDragEnd=onDragEnd;
A.onDragSetCursor=onDragSetCursor;
StyleUtils.addClass(A,"drag-source");
StyleUtils.addClass(B,"drag-handle")
},makeDragSourceCloned:function(A,B){if(!B){B=A
}EventUtils.addEvent(B,"mousedown",DragUtils.startDragClone);
B.dragSource=A;
StyleUtils.addClass(B,"drag-handle")
},startDragClone:function(B){var C=EventUtils.getElement(B);
var A=C.dragSource;
var F=A.cloneNode(true);
A.parentNode.appendChild(F);
F.dragSource=A;
mousePos=getMouseCoordinates(B);
var E=DragUtils.dimension(A);
F.style.position="absolute";
F.style.left=(mousePos.x-10)+"px";
F.style.right=(E.x+E.w)+"px";
var D=mousePos.y-10;
F.style.top=D+"px";
StyleUtils.setOpacity(A,0.5);
Drag.makeDraggable(F);
F.setDragThreshold(5);
F.onDragStart=onDragStart;
F.onDrag=onDrag;
F.onDragEnd=onDragEnd;
F.onDragSetCursor=onDragSetCursor;
F.onDragCleanUp=DragUtils.endDrag;
if(document.selection){document.selection.empty()
}Drag.startDrag(F,B)
},endDrag:function(){var A=this;
if(A.parentNode){A.parentNode.removeChild(A)
}StyleUtils.setOpacity(A.dragSource,1);
A.dragSource=null
},DU_ATTRIBUTES:function(){return" minx, miny, maxx, maxy, threshold, thresholdy, thresholdx,"
},isDragAttribute:function(A){return this.DU_ATTRIBUTES().indexOf(" "+A+",")!=-1
},dimension:function(A){var E={};
E.x=-1;
E.y=-1;
E.w=0;
E.h=0;
if(A==document){E.x=A.body.scrollLeft;
E.y=A.body.scrollTop;
E.w=A.body.clientWidth;
E.h=A.body.clientHeight
}else{if(A){var B=A;
var D=B.offsetLeft;
while((B=B.offsetParent)){D+=B.offsetLeft
}B=A;
var C=B.offsetTop;
while((B=B.offsetParent)){C+=B.offsetTop
}E.x=D;
E.y=C;
E.w=A.offsetWidth;
E.h=A.offsetHeight
}}return E
}};
function getMouseCoordinates(B){var A=0;
var E=0;
if(B.pageX||B.pageY){A=B.pageX;
E=B.pageY
}else{if(B.clientX||B.clientY){var D=document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft;
var C=document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop;
A=B.clientX+D;
E=B.clientY+C
}}return new Coordinate(A,E)
}function mouseY(A){if(A.pageY){return A.pageY
}else{if(A.clientY){return A.clientY+(document.documentElement.scrollTop?document.documentElement.scrollTop:document.body.scrollTop)
}else{return null
}}}function mouseX(A){if(A.pageX){return A.pageX
}else{if(A.clientX){return A.clientX+(document.documentElement.scrollLeft?document.documentElement.scrollLeft:document.body.scrollLeft)
}else{return null
}}}var DateUtils={ONE_YEAR:365*24*60*60*1000,addPeriod:function(A,B){var C=new Date();
C.setTime(C.getTime()+B);
return C
}};
var CookieUtils={getValue:function(A,F){var C=document.cookie;
var E=A+"=";
var B=C.indexOf("; "+E)+2;
if(B==1){B=C.indexOf(E);
if(B!==0){return F?F:""
}}B+=E.length;
toPos=C.indexOf(";",B);
if(toPos==-1){toPos=C.length
}var D=C.substring(B,toPos);
return unescape(D)
},setValue:function(C,D,B){var A=B?B:DateUtils.addPeriod(new Date(),DateUtils.ONE_YEAR);
var E=C+"="+escape(D)+"; expires="+A.toGMTString();
document.cookie=E
}};
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;
var GLOBAL_SEARCH_BUTTON_CLICKED_FIELD="searchButtonGlobalField";
function qfValidateEnterKeyPressed(A,B){var E=13;
A=(A)?A:window.event;
var D=getEventElement(A);
if(D.value&&A.keyCode==E){var C=D.form;
theInput=C[B+".event"];
if(theInput.value=="valueChanged"){theInput.value="find";
resetModalReturnedValueHF(B);
C.submit()
}return false
}return true
}function qfFieldContentChange(B,C){B=(B)?B:window.event;
var E=getEventElement(B);
var D=E.form;
var F=D[C+".event"];
var A=D[C+".initialValue"];
if(A&&!A.value){A=null
}E.value=trimAll(E.value);
if(A&&E.value==A.value){F.value=""
}else{if(E.value){F.value="valueChanged"
}else{F.value="emptiedField"
}}resetModalReturnedValueHF(C)
}function qfButtonClick(B,C){var E=getEventElement(B);
var F=window.document.jsfForm()[C+".event"];
var D=window.document.jsfForm()[C+".disValid"];
if(D){D.value="false"
}var A=window.document.createElement("input");
A.setAttribute("id",GLOBAL_SEARCH_BUTTON_CLICKED_FIELD);
A.setAttribute("name",GLOBAL_SEARCH_BUTTON_CLICKED_FIELD);
A.setAttribute("type","hidden");
A.setAttribute("value","true");
window.document.jsfForm().appendChild(A);
if(F.value=="valueChanged"){F.value="find"
}else{if(F.value=="emptiedField"){F.value="emptiedFieldClick"
}else{F.value="openSelector"
}}resetModalReturnedValueHF(C);
return true
}function manageQFSelWinReturnedValues(C){var D=null;
var B=findElementsEndingWithId(null,".event",null,false);
for(i=0;
i<B.length;
i++){if(B[i].tagName.toLowerCase()=="input"){if(B[i].value=="selectorWindowOpened"){D=B[i]
}}}var A=null;
if(D){A=D.id.substring(0,D.id.length-".event".length)
}if(A){window.document.getElementById(A+".swcrv").value=C[0];
window.document.getElementById(A).value=C[1]
}}function resetModalReturnedValueHF(A){var B=window.document.jsfForm()[A+".modalResult"];
if(B){B.value=""
}}function getWindowTop(A,C){try{if(A.parent==A){return A
}if(A.parent.location.hostname!=C){return A
}}catch(B){return A
}return getWindowTop(A.parent,C)
}function findAlert(B){for(var C=0;
C<alerts_.length;
C++){var A=alerts_[C];
if(A.alertClientId==B){return A
}}return null
}function AlertWindow(F,D,I,A,E,B,G,H,C){this.alertClientId=F;
this.messageTitle=D;
this.message=I;
this.type=A;
this.formHtmlId=E;
this.commands=[];
this.addCommand=addCommand;
this.processClick=true;
this.hasFacetMessage=B;
this.opener=G;
this.embeddedDialog=!H||C?new EmbeddedDialog(F,C):null
}function addCommand(C,B,A,D){this.commands.push(new AlertCommand(C,B,A,D))
}function AlertCommand(C,B,A,D){this.text=C;
this.cmdId=B;
this.onClickFunction=A;
this.noActionToPerform=D
}function createAlert(F,D,H,A,E,B,C,G){if(G=="null"){G=null
}if(C==null||C=="null"){C=false
}else{if(C=="true"){C=true
}else{C=false
}}var I=new AlertWindow(F,D,H,A,E,B,window,C,G);
alerts_.push(I);
return I
}function overrideEmbeddedAlertCommandClick(C){var A=findAlert(C);
var B=A.embeddedDialog;
if(!B.initialized){initEmbeddedDialog(B.dialogId)
}for(var D=0;
D<A.commands.length;
D++){var E=A.commands[D];
overrideCommandClick(B,E)
}B.commandsOverrided=true
}function overrideCommandClick(A,C){var B=findElementsEndingWithId(A.dialogContent,C.cmdId,null,true)[0];
if(B==null){B=findElementsEndingWithName(A.dialogContent,C.cmdId,null,true)[0]
}if(C.noActionToPerform){B.onclick=function(){hideEmbeddedDialog(A,C);
return false
}
}else{if(C.onClickFunction==null){C.onClickFunction=B.onclick
}B.onclick=function(){hideEmbeddedDialog(A,C);
if(A.openerHaveActionToExecute&&A.onCloseFnc){A.onCloseFnc()
}else{C.onClickFunction()
}return false
}
}}function showModalAlert(E,H,B){var J=getWindowTop(window,window.location.hostname);
if(J.showModalDialog){var A="dialogWidth:400px;dialogHeight:0px;center:yes;resizable:no;scroll:yes;help:no;status:yes";
var I;
var C;
var G=E.indexOf("alertClientId=");
if(G>=0){G=G+"alertClientId=".length;
var F=E.indexOf("&",G);
if(F>=0){C=E.substr(G,F-G)
}else{C=E.substr(G)
}var D=findAlert(C);
D.innerHTML=D.htmlContent
}if(B){logViewInfo("showModalAlert: pre-windowtop.showModelessDialog");
I=J.showModelessDialog(E,H,A);
logViewInfo("showModalAlert: post-windowtop.showModelessDialog")
}else{logViewInfo("showModalAlert: pre-windowtop.showModalDialog");
I=J.showModalDialog(E,H,A);
logViewInfo("showModalAlert: post-windowtop.showModalDialog")
}return I
}else{var A="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 C;
var G=E.indexOf("alertClientId=");
if(G>=0){G=G+"alertClientId=".length;
var F=E.indexOf("&",G);
if(F>=0){C=E.substr(G,F-G)
}else{C=E.substr(G)
}var D=findAlert(C);
D.innerHTML=D.htmlContent
}currentAlert_=J.open(E,"_blank",A);
logViewInfo("showModalAlert: post-window.open");
if(currentAlert_){currentAlert_.dialogArguments=H;
currentAlert_.simulateModal=true
}return currentAlert_
}}function showEmbeddedAlert(F,D,H,C){if(!document.createElement){return true
}if(document.createElement){try{var A=document.createElement("iframe");
A.setAttribute("id","RSIFrame");
A.style.border="0px";
A.style.width="0px";
A.style.height="0px";
A.style.display="none";
A.style.visibility="hidden";
A.title="";
A.src=F;
A.name="alertIFrame";
alertIFrame=document.body.appendChild(A);
if(document.frames){alertIFrame=document.frames.RSIFrame
}}catch(B){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(I){this.iframe.src=I
}
}}if(navigator.userAgent.indexOf("Gecko")!=-1&&!alertIFrame.contentDocument){var E="showModalAlert('"+F+"', '"+D+"', "+showAsModeless+")";
setTimeout(E,10);
return false
}var G=getIFrameDoc(alertIFrame);
if(G==null){return true
}addEvent(alertIFrame,"load",function(){processEmbeddedAlert(alertIFrame,H);
if(C){C()
}});
return false
}function processEmbeddedAlert(A,E){var C=getIFrameDoc(A);
var D=findElementsEndingWithId(C,E.alertClientId+"-fr",null,true)[0];
if(D){var B=document.createElement("DIV");
B.id=D.id;
B.style.display="none";
B.innerHTML=D.innerHTML;
D.parentNode.removeChild(D);
document.body.appendChild(B);
showEmbeddedDialog(E.embeddedDialog)
}}function EmbeddedDialog(A,B){this.pageTitle=null;
this.dialogId=A;
if(B!="null"){this.pageContentId=B
}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 A=alerts_[i];
if(A.embeddedDialog){if(A.embeddedDialog.opened==true){return true
}}}return false
}function keepFocusInEmbeddedDialog(A,B){}function hideEmbeddedDialog(B,E){B.parentNode.removeChild(B.dialogContent);
if(!B.fullPageAlert){B.parentNode.appendChild(B.pageContent)
}if(B.dialogBG){B.dialogBG.parentNode.removeChild(B.dialogBG);
B.dialogBG=null;
removeEvent(window,"resize",B.resizeFnc);
B.resizeFnc=null;
B.bgOpacity=0
}B.parentNode=null;
B.pageContent=null;
for(var D=0;
D<window.document.jsfForm().elements.length;
D++){if(window.document.jsfForm().elements[D].type=="checkbox"){if(B.checkboxesStates[D]){window.document.jsfForm().elements[D].checked=B.checkboxesStates[D]
}}}while(B.disabledInputs.length>0){var A=B.disabledInputs.pop();
A.disabled=false;
A.style.visibility="visible"
}if(B.fadeTimer){clearInterval(B.fadeTimer);
B.fadeTimer=null
}B.bgOpacity=0;
if(B.adjustPositionTimer){clearInterval(B.adjustPositionTimer);
B.adjustPositionTimer=null
}var C=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
removeEvent(C,"keydown",B.keydownFnc);
B.opened=false;
window.document.title=B.pageTitle;
window.location="#"
}function adjustEmbeddedDialogPosition(B){var A=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
B.positionPadder.style.height=A.scrollTop+"px"
}function resizeEmbeddedDialogBackground(B){var A=B.pageContent;
if(B.dialogBG&&B.fullPageAlert&&A.scrollWidth){B.dialogContent.style.width=A.scrollWidth>A.clientWidth?A.scrollWidth+"px":A.clientWidth+"px";
B.dialogContent.style.height=A.scrollHeight>A.clientHeight?A.scrollHeight+"px":A.clientHeight+"px";
B.dialogBG.style.width=B.dialogContent.style.width;
B.dialogBG.style.height=B.dialogContent.style.height
}}function showModal(E,J,G,B,D,H,C){var K=getWindowTop(window,window.location.hostname);
if(H&&C){E=escape(E+"&"+H+"="+C)
}var F=contextPath_+"/akira/pub/modalFrameset.jsp?modalUrl="+escape(E)+"&title="+J;
if(K.showModalDialog){var A="dialogWidth:"+B+";dialogHeight:"+D+";center:yes;resizable:yes;scroll:yes;help:no;status:yes";
logViewInfo("showModal: pre-windowtop.showModalDialog");
var I=K.showModalDialog(F,G,A);
logViewInfo("showModal: post-windowtop.showModalDialog");
return I
}else{var A="top=200,left=140,width="+B+",height="+D+",directories=no,location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,status=yes,center=yes;";
logViewInfo("showModal: pre-windowtop.open");
currentModal=K.open(F,"_blank",A);
logViewInfo("showModal: post-windowtop.open");
if(currentModal){currentModal.dialogArguments=G;
currentModal.simulateModal=true
}}}function openModal(E,H,C,A,D){window.document.jsfForm().modalClientId.value=C;
var I=getWindowTop(window,window.location.hostname);
var F=contextPath_+"/akira/pub/modalFrameset.jsp?modalUrl="+escape(E)+"&title="+H;
if(I.showModalDialog){var B="dialogWidth:"+A+";dialogHeight:"+D+";center:yes;resizable:yes;scroll:yes;help:no;status:yes";
logViewInfo("openModal: pre-windowtop.showModalDialog");
var G=I.showModalDialog(F,window,B);
logViewInfo("openModal: post-windowtop.showModalDialog");
return G
}else{var B="top=200,left=140,width="+A+",height="+D+",directories=no,location=no,menubar=no,toolbar=no,resizable=yes,scrollbars=yes,status=yes,center=yes;";
logViewInfo("openModal: pre-windowtop.open");
currentModal=I.open(F,"_blank",B);
logViewInfo("openModal: post-windowtop.open");
if(currentModal){currentModal.dialogArguments=window;
currentModal.simulateModal=true
}}}function openWindow(E,H,B,A){var G=(screen.width-B)/2;
var F=(screen.height-A)/2;
var D="left="+G+",top="+F+",width="+B+"px,height="+A+"px,center=yes,location=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,titlebar=no,toolbar=no";
logViewInfo("openWindow: pre-window.open");
var C=window.open(E,H,D,false);
logViewInfo("openWindow: post-window.open");
return C
}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 D=parseInt(window.dialogWidth.substring(0,window.dialogWidth.length-2));
var A=window.document.body.scrollWidth+40;
var C=top.screen.width;
if(A>C){A=C
}window.dialogWidth=A+"px";
var B=(C/2)-(A/2);
window.dialogLeft=B+"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 C=parseInt(window.dialogHeight.substring(0,window.dialogHeight.length-2));
var E=window.document.body.scrollHeight;
var B=window.document.body.bottomMargin;
var A=C+((E+parseInt(B))-C)+40;
var F=top.screen.height;
if(A>F){A=F
}window.dialogHeight=A+"px";
var D=(F/2)-(A/2);
window.dialogTop=D+"px"
}}function showSource(C){C=(C)?C:window.event;
if(C.altKey&&C.shiftKey){var B=null;
try{B=window.open("about:blank","_blank","location=0, menubar=1, resizable=1, scrollbars=1, status=0, titlebar=1, toolbar=0")
}catch(E){B=top.open("about:blank","_blank","location=0, menubar=1, resizable=1, scrollbars=1, status=0, titlebar=1, toolbar=0")
}if(B){var F=null;
var A=window.document.childNodes;
for(var D=0;
D<A.length;
D++){if(F==null){F=""
}else{F+="\r\n"
}F+=A[D].outerHTML
}B.document.writeln("<html>");
B.document.writeln("<head>");
B.document.writeln("</head>");
B.document.writeln('<body style="background-color: white; font-family: monospace; font-size: 12px;">');
B.document.writeln("</body>");
B.document.writeln("</html>");
B.document.body.innerText=F
}}}function sendUIMessage(B){var A=open(contextPath_+"/UIMessageReceiver.jss?msg="+B,"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(A){A.close()
}}function prepareSplitter2(splitterId){var theSplitter=window.document.getElementById(splitterId);
var previous=theSplitter.previousSibling;
var next=nextSiblingWithoutTag(theSplitter,"script");
var theInput=eval("document.jsfForm()['"+splitterId+"prevSize'];");
previous.runtimeStyle.width=theInput.value;
theInput=eval("document.jsfForm()['"+splitterId+"nextSize'];");
next.runtimeStyle.width=theInput.value
}function onSplitterMouseDown(C,B){C=(C)?C:window.event;
splitStartingX_=C.clientX;
splitStartingY_=C.clientY;
splitVertical_=B;
splitter_=getEventElement(C);
splitter_.setCapture();
var E=splitter_.previousSibling;
var D=nextSiblingWithoutTag(splitter_,"script");
var A=E.currentStyle.width;
var F=D.currentStyle.width;
ratioPrevious=parseFloat(A.substring(0,A.length-1));
ratioNext=parseFloat(F.substring(0,F.length-1));
rectPrev=E.getBoundingClientRect();
rectNext=D.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 previous=splitter_.previousSibling;
var next=nextSiblingWithoutTag(splitter_,"script");
var theInput=eval("document.jsfForm()['"+splitter_.id+"prevSize'];");
theInput.value=previous.currentStyle.width;
theInput=eval("document.jsfForm()['"+splitter_.id+"nextSize'];");
theInput.value=next.currentStyle.width;
splitter_.releaseCapture();
splitStartingX_=-1;
splitStartingY_=-1;
splitter_=null
}function onSplitterMouseMove(J){J=(J)?J:window.event;
if(J.button){var H=splitter_.previousSibling;
var D=nextSiblingWithoutTag(splitter_,"script");
if(splitVertical_){var K=J.clientX-splitStartingX_;
var M=ratioPrevious+ratioNext;
var L=(rectPrev.right-rectPrev.left)+K;
var N=(rectNext.right-rectNext.left)-K;
var E=L+N;
var B=(L/E*M);
var G=(ratioPrevious+ratioNext)-B;
if(B>=0&&B<=100&&G>=0&&G<=100){var F=H.currentStyle.width;
var I=D.currentStyle.width;
H.runtimeStyle.width=B+"%";
D.runtimeStyle.width=G+"%";
var A=H.getBoundingClientRect();
var C=D.getBoundingClientRect();
if((rectPrev.top==rectNext.top)&&(A.top!=rectPrev.top||C.top!=rectNext.top)){H.runtimeStyle.width=F;
D.runtimeStyle.width=I
}}}else{}}}function onModalWindowUnload(A){A=(A)?A:window.event;
if(A.clientY<0||A.altKey==true){sendUIMessage("modCloAbr")
}}function installDialogRequiredEvents(){addEvent(window.document,"click",showSource);
if(window.name=="__MODAL_FRAME_CONTENT"){addEvent(window,"beforeunload",onModalWindowUnload)
}}installDialogRequiredEvents();
function addActionGroup(A,B){actionGroups_[A]=new ActionGroup(A,B);
return actionGroups_[A]
}function findActionGroup(A){return actionGroups_[A]
}function ActionGroup(A,B){this.sActionGroupClientId=A;
this.dropDown=B;
this.actionGroupCommands=[];
this.addActionGroupCommand=addActionGroupCommand;
this.findActionGroupCommand=findActionGroupCommand
}function addActionGroupCommand(A,C,D,B){this.actionGroupCommands.push(new ActionGroupCommand(A,C,D,B))
}function findActionGroupCommand(A){for(i=0;
i<this.actionGroupCommands.length;
i++){if(this.actionGroupCommands[i].sActionGroupCommandClientId==A){return this.actionGroupCommands[i]
}}return null
}function ActionGroupCommand(A,C,D,B){this.sActionGroupCommandClientId=A;
this.sJavascript=C;
this.bIsInDropDown=D;
this.bIsInitiallyDisabled=B;
this.execute=executeActionGroupCommand
}function executeActionGroupCommand(){eval(this.sJavascript);
return false
}function actionGroupDropDownChange(A,B){if(B.options[B.selectedIndex].value!=-1){result=findActionGroup(A).findActionGroupCommand(B.options[B.selectedIndex].value).execute();
if(result==false){B.selectedIndex=0
}}else{B.selectedIndex=0
}return false
}function disableCommandButton(A,D,C,F){var B=window.document.getElementById(A);
var E=(C!=null&&C==true);
if(D==1){disableTagWithDisabledAttribute(A,E,F)
}else{if(D==2){disableNiceCommandButton(A,E,F)
}else{if(D==3){disableActionGroup(A,E,F)
}else{if(D==4){disableQuickFinder(A,E,F)
}else{if(D==5){disableInputDateTime(A,E,F)
}else{if(D==6){disableInputTime(A,E,F)
}}}}}}}function addDisablerEvent(B,F,D){var A;
if(B.tagName=="INPUT"&&(B.type=="checkbox"||B.type=="radio")){A=window.document.getElementsByName(B.name)
}else{A=[B]
}for(var C=0;
C<A.length;
C++){var E=A[C];
addEvent(E,F,D)
}}function disableTagWithDisabledAttribute(B,G,F){var C=window.document.getElementById(B);
var A;
if(C.tagName=="INPUT"&&(C.type=="checkbox"||C.type=="radio")){A=window.document.getElementsByName(C.name)
}else{A=[C]
}for(var D=0;
D<A.length;
D++){var E=A[D];
if(F==null&&G==true){E.disabled=!E.disabled
}else{if(F!=null){E.disabled=F
}else{E.disabled=true
}}}}function disableNiceCommandButton(A,M,F){var J=window.document.getElementById(A);
var C=J.getAttribute("originalState")!=null;
var I=window.document.getElementById(A+"_img");
var E=J.className.split(" ");
if(F==null&&M==true){if(E[0].lastIndexOf("-off")==(E[0].length-4)&&!C){E[0]=E[0].substr(0,(E[0].length-4));
J.disabled=false;
if(I!=null){var K=I.src;
I.src=K.substr(0,K.lastIndexOf("-off"))+K.substr(K.lastIndexOf("."),K.length)
}}else{E[0]=E[0]+"-off";
J.disabled=true;
if(I!=null){var K=I.src;
I.src=K.substr(0,K.lastIndexOf("."))+"-off"+K.substr(K.lastIndexOf("."),K.length)
}}}else{if(F!=null){if(F==true){if(E[0].lastIndexOf("-off")!=(E[0].length-4)){E[0]=E[0]+"-off";
J.disabled=true;
if(I!=null){var K=I.src;
I.src=K.substr(0,K.lastIndexOf("."))+"-off"+K.substr(K.lastIndexOf("."),K.length)
}}}else{if((E[0].lastIndexOf("-off")==(E[0].length-4)||J.disabled==true)&&!C){E[0]=E[0].substr(0,(E[0].length-4));
J.disabled=false;
if(I!=null){var K=I.src;
I.src=K.substr(0,K.lastIndexOf("-off"))+K.substr(K.lastIndexOf("."),K.length)
}}}}else{if(E[0].lastIndexOf("-off")!=(E[0].length-4)){E[0]=E[0]+"-off";
J.disabled=true;
if(I!=null){var K=I.src;
I.src=K.substr(0,K.lastIndexOf("."))+"-off"+K.substr(K.lastIndexOf("."),K.length)
}}}}J.className=E.join(" ");
if(J.tagName=="A"){if(J.className.lastIndexOf("-off")>-1){if(disabledButtons_[J.id]==null){var H=HTMLUtils.addSpan(null,null);
H.className=J.className;
for(var D=0;
D<J.childNodes.length;
D++){var G=J.childNodes[D].cloneNode(true);
G.id=G.id+"-cln";
H.appendChild(G)
}addSuffixToId(H,"-cln",true);
J.parentNode.insertBefore(H,J);
var L=HTMLUtils.addSpan(H,AccessibilityRes.disabled);
StyleUtils.addClasses(L,"hidden-audible");
J.style.display="none";
disabledButtons_[J.id]=H
}}else{var B=disabledButtons_[J.id];
if(B!=null){J.parentNode.removeChild(B);
J.style.display="";
disabledButtons_[J.id]=null
}}}}function addSuffixToId(D,B,C){if(D.id){D.id=D.id+B
}if(C==true){for(var A=0;
A<D.childNodes.length;
A++){addSuffixToId(D.childNodes[A],B,C)
}}}function disableTimeSpinner(B,E,D){var F=window.document.getElementById(B+"-s");
var C=F.className.split(" ");
var A=C[0].lastIndexOf("-off");
if(D==null&&E){if(A==(C[0].length-4)){C[0]=C[0].substr(0,(C[0].length-4))
}else{C[0]=C[0]+"-off"
}}else{if(D!=null){if(D){if(A!=(C[0].length-4)){C[0]=C[0]+"-off"
}}else{if(A==(C[0].length-4)){C[0]=C[0].substr(0,(C[0].length-4))
}}}else{if(A!=(C[0].length-4)){C[0]=C[0]+"-off"
}}}F.className=C.join(" ")
}function disableActionGroup(B,F,E){var D=window.document.getElementById(B);
var G=findActionGroup(B);
var H=window.document.getElementById(G.sActionGroupClientId);
if(E==null&&F==true){H.disabled=!H.disabled;
if(G.dropDown!=null){G.dropDown.disabled=!G.dropDown.disabled
}}else{if(E!=null){H.disabled=E;
if(G.dropDown!=null){G.dropDown.disabled=E
}}else{H.disabled=true;
if(G.dropDown!=null){G.dropDown.disabled=true
}}}var A=G.actionGroupCommands.length;
for(i=0;
i<A;
i++){var C=G.actionGroupCommands[i];
if(C.bIsInDropDown==false){disableNiceCommandButton(C.sActionGroupCommandClientId,F,G.dropDown!=null?G.dropDown.disabled:E)
}}}function disableQuickFinder(A,C,B){disableTagWithDisabledAttribute(A,C,B);
disableNiceCommandButton(A+".action",C,B)
}function disableInputDateTime(A,C,B){disableTagWithDisabledAttribute(A+".display",C,B)
}function disableInputTime(A,C,B){disableTagWithDisabledAttribute(A+"-h",C,B);
disableTagWithDisabledAttribute(A+"-m",C,B);
disableTagWithDisabledAttribute(A+"-a",C,B);
disableTimeSpinner(A,C,B)
}function CalendarParam(F,C,B,D,G,A,E){this.componentID=F;
this.hiddenFieldID=C;
this.spanID=B;
this.ifEmptyFacetID=D;
this.daFormat=G;
this.ifFormat=A;
this.params=E
}function addCalendarParams(G,C,B,D,H,A,F){var E=new CalendarParam(G,C,B,D,H,A,F);
calendarsParams_.push(E);
if(!calendarOnLoadEventAttached){addEvent(window,"load",initCalendars);
calendarOnLoadEventAttached=true
}}function initCalendars(){for(i=0;
i<calendarsParams_.length;
i++){Calendar.setup(calendarsParams_[i].params)
}}function findCalendarByID(B){for(var A=0;
A<calendarsParams_.length;
A++){if(calendarsParams_[A].componentID.lastIndexOf(B)!=-1){return calendarsParams_[A]
}}return null
}function showInputDateIfEmptyFacet(A){var B=findCalendarByID(A);
window.document.getElementById(B.spanID).innerHTML=window.document.getElementById(B.ifEmptyFacetID).innerHTML
}function setInputTime(C,D,B,E){var A=new Date();
A.setHours(D);
A.setMinutes(B);
A.setSeconds(E);
setInputDate(C,A.getYear(),A.getMonth(),A.getDate(),D,B,E)
}function adjustTextArea(F){if(F){var C=2;
var D=2;
var B=18;
var A=9;
var E=escape(F.value).split("%0D%0A");
if(E){C=E.length
}if(C>document.body.clientHeight/B){C=document.body.clientHeight/B
}if(E){var G=document.body.clientWidth-computeWindowOffsetLeft(F);
for(n=0;
n<(E.length);
n++){var H=unescape(E[n]);
if(D<H.length){D=H.length
}if(D>G/A){D=G/A;
C+=H.length/(G/A)
}}}else{D=F.value.length
}if((D+1)>=F.initialCols){F.cols=(D+1)
}else{F.cols=F.initialCols
}if((C+1)>=F.initialRows){F.rows=(C+1)
}else{F.rows=F.initialRows
}}}function prepareTextArea(){tas=document.getElementsByTagName("TEXTAREA");
for(var B=0;
B<tas.length;
B++){var A=tas[B];
if(A.onkeyup!=null&&A.onkeydown!=null){A.initialCols=A.cols;
A.initialRows=A.rows;
adjustTextArea(A)
}}}function changeTimeMouseDown(G,B,D,H,I){G=(G)?G:window.event;
var F=getEventElement(G);
var J=F.offsetHeight/2;
var E=F;
while(E){J+=E.offsetTop;
if(!E.offsetParent){break
}E=E.offsetParent
}var C=G.clientY<J;
if(currentTimeInput==null||currentTimeInput==undefined||!isOurTimeInput(B,currentTimeInput)){currentTimeInput=window.document.getElementById(B+"-h")
}if(currentTimeInput!=null&&currentTimeInput!=undefined){if(G.type=="dblclick"){changeTime(C,H,I)
}else{var A=F.className;
if(A.lastIndexOf("-off")==-1){F.setAttribute("akOldClass",A);
F.className=C?D+"-up":D+"-down";
changeTime(C,H,I);
window.clearTimeout(currentTimeInputTimeout);
currentTimeInputTimeout=setTimeout(function(){startRollingTime(C,H,I)
},400)
}}}}function isOurTimeInput(A,B){var C=currentTimeInput.id;
return C==A+"-h"||C==A+"-m"||C==A+"-a"
}function startRollingTime(B,A,C){if(currentTimeInput!=null){window.clearInterval(currentTimeInputInterval);
currentTimeInputInterval=window.setInterval(function(){changeTime(B,A,C)
},110)
}}function changeTime(B,A,E){if(currentTimeInput!=null){if(currentTimeInput.id.lastIndexOf("-a")==currentTimeInput.id.length-2){currentTimeInput.value=currentTimeInput.value=="am"?"pm":"am"
}else{var C=parseInt(removeHeadingZero(currentTimeInput.value));
if(isNaN(C)){currentTimeInput.value="1"
}else{if(currentTimeInput.id.lastIndexOf("-m")==currentTimeInput.id.length-2){C=B?C+A:C-A;
if(B){C=Math.floor(C/A)*A
}else{C=Math.ceil(C/A)*A
}if(C<0){currentTimeInput.value=""+(60-A)
}else{if(C>=60){currentTimeInput.value="00"
}else{var D=C<10?"0":"";
currentTimeInput.value=D+C
}}}else{if(currentTimeInput.id.lastIndexOf("-h")==currentTimeInput.id.length-2){var F=C;
C=B?C+1:C-1;
if(E){if(C<0){currentTimeInput.value="23"
}else{if(C>=24){currentTimeInput.value="0"
}else{currentTimeInput.value=""+C
}}}else{if(C<=0){currentTimeInput.value="12"
}else{if(C>=13){currentTimeInput.value="1"
}else{currentTimeInput.value=""+C
}}}}}}}currentTimeInput.select()
}}function removeHeadingZero(A){if(A.length>1&&A.charAt(0)=="0"){return A.substring(1,A.length)
}return A
}function changeTimeMouseUp(A){A=(A)?A:window.event;
window.clearTimeout(currentTimeInputTimeout);
window.clearInterval(currentTimeInputInterval);
var C=getEventElement(A);
var B=C.getAttribute("akOldClass");
if(B!=undefined&&B!=null&&B!=""){C.className=B;
C.setAttribute("akOldClass","");
currentTimeInput.select()
}}function prepareTimeInput(A){A=(A)?A:window.event;
currentTimeInput=getEventElement(A);
currentTimeInput.select()
}function onkeypressTimeInput(A){var B=!(A);
A=(A)?A:window.event;
var C=getEventElement(A);
C.setAttribute("akOldValue",C.value);
var D=String.fromCharCode(A.keyCode);
if(!B){return 
}if(D.match(/^\d+$/)==null){A.cancelBubble=true;
A.returnValue=false;
return false
}return true
}function onkeydownTimeInput(A){A=(A)?A:window.event;
var B=getEventElement(A);
B.setAttribute("akOldValue",B.value)
}function validateHourKeyUp(B,D){B=(B)?B:window.event;
var C=getEventElement(B);
var A=C.getAttribute("akOldValue");
if(A!=null){var E=parseInt(removeHeadingZero(C.value));
if(isNaN(E)||(D&&(E<0||E>23))||(!D&&(E<1||E>12))){C.value=A;
C.setAttribute("akOldValue",null);
C.select()
}}}function adjustMinute(A){A=(A)?A:window.event;
var B=getEventElement(A);
if(B.value.length==1){B.value="0"+B.value
}}function validateMinuteKeyUp(B,C,E){B=(B)?B:window.event;
var D=getEventElement(B);
var A=D.getAttribute("akOldValue");
if(A!=undefined&&A!=null){var F=parseInt(removeHeadingZero(D.value));
if(isNaN(F)||F<0||F>59||(E&&F%C!=0)){if(!isNaN(F)&&E&&F%C!=0){if(F<10){F*=10
}F=Math.min(Math.ceil(F/C)*C,60-C);
D.value=F+"";
D.select()
}else{D.value=A;
D.select()
}}D.setAttribute("akOldValue",null)
}}function onkeypressTimeInputAmPm(A){A=(A)?A:window.event;
var C=getEventElement(A);
var B=!A.charCode;
if(B){var D=String.fromCharCode(A.keyCode)
}else{var D=String.fromCharCode(A.charCode)
}if(D=="a"||D=="A"){C.value="am";
if(!B){return true
}}else{if(D=="p"||D=="P"){C.value="pm";
if(!B){return true
}}}C.select();
A.cancelBubble=true;
A.returnValue=false;
return false
}function prepareSelectableDataTable(B,E,A){if(E!=null){var F=findElementsEndingWithId(null,E,null,true)[0];
var D=window.document.getElementById(B+"._selCountFmt");
D.value=F.innerHTML
}var C=window.document.getElementById(B+"._selCount");
updateTableSelCount(B,C.value,E,A)
}function updateTableSelCount(pTableId,pNbSelected,pSelCountOutputId,pOnselectedcountchanged){var selCountElem=window.document.getElementById(pTableId+"._selCount");
var oldNbSel=parseInt(selCountElem.value);
selCountElem.value=pNbSelected;
if(pSelCountOutputId!=null){var selCountOutput=findElementsEndingWithId(null,pSelCountOutputId,null,true)[0];
var selCountOutputFmt=window.document.getElementById(pTableId+"._selCountFmt").value;
selCountOutput.innerHTML=selCountOutputFmt.replace(/\{0\}/,pNbSelected)
}if(pOnselectedcountchanged!=null){eval(pOnselectedcountchanged+"('"+pTableId+"', "+pNbSelected+", "+oldNbSel+");")
}}function manageTableSelCount2(J,H,M,C){J=(J)?J:window.event;
var A=getEventElement(J);
if(A.tagName!="INPUT"||(A.type!="checkbox"&&A.type!="radio")){return 
}var F=window.document.getElementById(H+"._total");
var E=window.document.getElementById(H+"._selmode");
var B=window.document.getElementById(H+"._selCountFmt");
var K=getSelectedRowCount(A);
var G=parseInt(window.document.getElementById(H+"._selCount").value);
var I=findParentOfType(A,"THEAD");
if(I!=null){if(A.type=="checkbox"){if(A.checked){var L=parseInt(F.value)+parseInt(G)-parseInt(K.nbSelectedRows);
K.value=F.value;
updateTableSelCount(H,L.toString(),M,C);
E.value="2"
}else{var L=parseInt(G)-(parseInt(F.value)-(parseInt(F.value)-parseInt(K.nbSelectedRows)));
K.value=0;
updateTableSelCount(H,L.toString(),M,C);
E.value="2"
}formCheckAll(A)
}}else{var D=findParentOfType(A,"TBODY");
if(D!=null&&A.type=="checkbox"){G=A.checked?G+1:G-1;
K.value=A.checked?parseInt(K.value)+1:parseInt(K.value)-1;
updateTableSelCount(H,G.toString(),M,C);
formSyncCheckAll2(A,false)
}else{if(A.type=="radio"){updateTableSelCount(H,"1",M,C)
}}}}function initEmbeddedDialog(B){var D=findAlert(B);
var A=D.embeddedDialog;
if(!A.initialized){var C=findElementsEndingWithId(document,A.dialogId+"-fr",null,true)[0];
A.originalContent=document.createElement("DIV");
if(A.htmlContent!=null){A.originalContent.innerHTML=A.htmlContent
}else{A.originalContent.innerHTML=C.innerHTML
}A.positionPadder=document.createElement("DIV");
A.originalContent.insertBefore(A.positionPadder,A.originalContent.childNodes[0]);
if(A.originalContent!=null){if(A.originalContent.parentNode!=null){A.originalContent.parentNode.removeChild(A.originalContent)
}A.initialized=true
}}}function showEmbeddedDialog(L){for(N=0;
N<alerts_.length;
N++){var E=alerts_[N];
var O=E.embeddedDialog;
if(O!=null&&O.opened){hideEmbeddedDialog(O,null)
}}for(var N=0;
N<window.document.jsfForm().elements.length;
N++){if(window.document.jsfForm().elements[N].type=="checkbox"){L.checkboxesStates[N]=window.document.jsfForm().elements[N].checked
}}if(!L.initialized){initEmbeddedDialog(L.dialogId)
}if(L.pageContentId!=null){L.pageContent=findElementsEndingWithId(window.document.body,L.pageContentId,null,true)[0]
}else{L.pageContent=window.document.body
}if(L.pageContent.tagName=="BODY"){L.parentNode=window.document.body
}else{L.parentNode=L.pageContent.parentNode
}if(L.pageContent.tagName=="BODY"){var K=document.createElement("DIV");
K.className="alert-full-page";
L.fullPageAlert=true;
var K=document.createElement("DIV");
K.className="alert-full-page-container";
var C=HTMLUtils.addAnchor(K,"");
C.id="alertAnchor";
C.href="#";
C.tabIndex=0;
K.appendChild(C);
K.appendChild(L.originalContent);
L.dialogContent=K;
var B=document.createElement("DIV");
B.className="alert-full-page-bg";
K.appendChild(B);
L.dialogBG=B;
resizeEmbeddedDialogBackground(L);
adjustEmbeddedDialogPosition(L);
L.fadeTimer=setInterval(function(){fadeEmbeddedDialogBG(L,60)
},5);
var A=document.getElementsByTagName("INPUT");
for(var N=0;
N<A.length;
N++){var H=A[N];
if(!H.disabled&&H.type!="hidden"){H.style.visibility="hidden";
L.disabledInputs.push(H)
}}var R=document.getElementsByTagName("SELECT");
for(var N=0;
N<R.length;
N++){var I=R[N];
I.style.visibility="hidden";
L.disabledInputs.push(I)
}var J=document.getElementsByTagName("TEXTAREA");
for(var N=0;
N<J.length;
N++){var M=J[N];
M.style.visibility="hidden";
L.disabledInputs.push(M)
}}else{L.parentNode.removeChild(L.pageContent)
}L.parentNode.appendChild(L.dialogContent);
L.opened=true;
if(!L.commandsOverrided){overrideEmbeddedAlertCommandClick(L.dialogId)
}if(!AKCore._hasFocus&&L.dialogId=="sessionWarning"){var S=(screen.width-400)/2;
var P=(screen.height-200)/2;
var Q=window.open(contextPath_+"/akira/pub/offFocusBeaconAlert.jsp?alertClientId=sessionWarningModal&formId="+document.jsfForm().id+"&msgResGroupId="+messagesResGroupId_,"","top="+P+",left="+S+",width=400,height=200,directories=no,location=no,menubar=no,toolbar=no,resizable=no,scrollbars=no,status=no,center=yes;")
}var D=ElementUtils.getChildrenElementsByClassName(L.dialogContent,"alert-title");
if(D!=null&&D.length>0){L.pageTitle=window.document.title;
window.document.title=D[0].innerHTML
}var F=(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;
L.keydownFnc=function(T){keepFocusInEmbeddedDialog(T,L)
};
addEvent(F,"keydown",L.keydownFnc);
setTimeout(function(){window.location="#alertAnchor"
},100);
var G=document.getElementById("alertAnchor");
if(G!=null){G.focus()
}}function fadeEmbeddedDialogBG(C,A){C.bgOpacity+=1;
if(C.bgOpacity<A){var B=C.dialogBG;
if(B!=null){if(typeof (B.filters)!="undefined"&&typeof (B.filters.alpha)!="undefined"){B.filters.alpha.opacity=C.bgOpacity
}else{if(typeof (B.style.MozOpacity)!="undefined"){B.style.MozOpacity=C.bgOpacity/100
}else{if(typeof (B.style.KHTMLOpacity)!="undefined"){B.style.KHTMLOpacity=C.bgOpacity/100
}else{B.style.opacity=C.bgOpacity/100
}}}}}else{if(C.fadeTimer!=null){clearInterval(C.fadeTimer);
C.fadeTimer=null
}C.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(B,C,E){B=(B)?B:window.event;
var A=C+this.BALLOON_SUFFIX;
var D=document.getElementById(A);
if(D==null){D=HTMLUtils.addDiv(window.document.body);
D.id=A;
D.balloonInfo=new BalloonRenderer.BalloonInfo(this.INITIALIZING,mouseX(B),mouseY(B));
D.balloonInfo.initialContent=document.getElementById(C);
D.balloonInfo.initialContentParent=D.balloonInfo.initialContent.parentNode
}else{if(D.balloonInfo.state==this.HIDE_REQUESTED||D.balloonInfo.state==this.HIDING||D.balloonInfo.state==this.SHOW_REQUESTED){return 
}}D.balloonInfo.initialPosX=mouseX(B);
D.balloonInfo.initialPosY=mouseY(B);
D.balloonInfo.state=this.SHOW_REQUESTED;
setTimeout("BalloonRenderer._show('"+A+"', "+E+");",this.DEFAULT_SHOW_DELAY)
},_show:function(A,C){var B=document.getElementById(A);
if(B.balloonInfo.state==this.SHOW_REQUESTED){if(!B.balloonInfo.fullyInitialized){this.buildBalloon(B.id)
}BalloonRenderer.positionBalloon(B,B.balloonInfo.initialContent);
B.balloonInfo.state=this.SHOWN;
if(C!=null){C()
}}},buildBalloon:function(C){var D=document.getElementById(C);
addClass(D,"balloon");
var B=HTMLUtils.addDiv(D);
addClass(B,"balloon-top");
HTMLUtils.addSpan(B);
var A=HTMLUtils.addDiv(D);
addClass(A,"balloon-middle");
A.id=C+this.MIDDLE_SUFFIX;
addClass(HTMLUtils.addDiv(D),"balloon-bottom");
addEvent(D,"mouseover",function(){BalloonRenderer.mouseOverBalloon(C)
});
addEvent(D,"mouseout",function(){BalloonRenderer.mouseOutBalloon(C)
});
D.balloonInfo.state=this.INITIALIZED;
D.balloonInfo.fullyInitialized=true
},buildTip:function(B){var A=document.getElementById(B+this.TIP_SUFFIX);
if(A==null){A=HTMLUtils.addDiv(window.document.body);
A.id=B+this.TIP_SUFFIX;
addClass(A,"balloon-tip");
addEvent(A,"mouseover",function(){BalloonRenderer.mouseOverBalloon(B)
});
addEvent(A,"mouseout",function(){BalloonRenderer.mouseOutBalloon(B)
})
}return A
},mouseOverBalloon:function(A){var B=document.getElementById(A);
B.balloonInfo.isOverBalloon=true;
B.balloonInfo.state=this.SHOWN
},mouseOutBalloon:function(A){var B=document.getElementById(A);
B.balloonInfo.isOverBalloon=false;
this.hide(A.substr(0,A.length-this.BALLOON_SUFFIX.length))
},positionBalloon:function(L,I){var A=this.buildTip(L.id);
var H=document.getElementById(L.id+this.MIDDLE_SUFFIX);
if(H.firstChild!=null){H.removeChild(H.firstChild)
}H.appendChild(I);
I.style.display="block";
L.style.display="block";
var C=L.offsetHeight;
var E=L.offsetWidth;
var K=window.scrollY||document.documentElement.scrollTop;
var J=document.body.offsetWidth;
var G=L.balloonInfo.initialPosX;
var B=L.balloonInfo.initialPosY;
var D=G-this.TIP_XOFFSET;
var F=B-C-this.TIP_HEIGHT;
removeClass(A,"balloon-tip-topL");
removeClass(A,"balloon-tip-topR");
removeClass(A,"balloon-tip-bottomL");
removeClass(A,"balloon-tip-bottomR");
A.style.display="block";
if(F>K){L.style.top=F+"px";
A.style.top=F+C-this.TIP_YOFFSET+"px";
if(D+E<J){addClass(A,"balloon-tip-bottomL");
L.style.left=D+"px";
A.style.left=D+this.TIP_XOFFSET+"px"
}else{D=G;
addClass(A,"balloon-tip-bottomR");
L.style.left=D-E+this.TIP_XOFFSET+"px";
A.style.left=D-this.TIP_XOFFSET+"px"
}}else{F=B+this.TIP_HEIGHT+this.TIP_YOFFSET;
L.style.top=F+"px";
A.style.top=F-this.TIP_HEIGHT+"px";
if(D+E<J){addClass(A,"balloon-tip-topL");
L.style.left=D+"px";
A.style.left=D+this.TIP_XOFFSET+"px"
}else{D=G;
addClass(A,"balloon-tip-topR");
L.style.left=D-E+this.TIP_XOFFSET+"px";
A.style.left=D-this.TIP_XOFFSET+"px"
}}Core.hideShowCovered(L,false)
},hide:function(A){var B=document.getElementById(A+this.BALLOON_SUFFIX);
B.balloonInfo.state=this.HIDE_REQUESTED;
setTimeout("BalloonRenderer._hide('"+A+"');",this.DEFAULT_HIDE_DELAY)
},_hide:function(B){var D=document.getElementById(B+this.BALLOON_SUFFIX);
if(D.balloonInfo.state==this.HIDE_REQUESTED){D.balloonInfo.state=this.HIDING;
var A=document.getElementById(D.id+this.TIP_SUFFIX);
var C=document.getElementById(D.id+this.MIDDLE_SUFFIX);
if(C!=null&&C.firstChild!=null){C.removeChild(C.firstChild)
}D.style.display="none";
if(A!=null){A.style.display="none"
}if(D.balloonInfo.initialContent!=null){D.balloonInfo.initialContent.style.display="none";
D.balloonInfo.initialContentParent.appendChild(D.balloonInfo.initialContent)
}Core.hideShowCovered(D,true);
D.balloonInfo.state=this.HIDDEN
}},contentReady:function(A,B){var C=document.getElementById(A+this.BALLOON_SUFFIX);
if(C.balloonInfo.state==this.INITIALIZED||C.balloonInfo.state==this.SHOWN||C.balloonInfo.state==this.SHOW_REQUESTED){BalloonRenderer.positionBalloon(C,B);
C.balloonInfo.state=this.SHOWN
}},BalloonInfo:function(A,C,B){this.state=A;
this.initialPosX=C;
this.initialPosY=B;
this.fullyInitialized=false;
this.isOverBalloon=false;
this.initialContent=null;
this.initialContentParent=null
}};
var DataTrainRenderer={SPEED:25,DELAY:10,moveTrainTo:function(C,A){var B=document.getElementById(C);
if(B.trainWidth<=B.windowWidth){B.style.left=(B.windowWidth-B.trainWidth-15)/2+"px";
B.style.padding="0";
B.leftShifter.src=B.leftShifterDisabledImage;
B.leftShifter.alt=B.leftShifterDisabledTitle;
B.rightShifter.src=B.rightShifterDisabledImage;
B.rightShifter.alt=B.rightShifterDisabledTitle
}else{if(A+B.offsetWidth<=B.windowWidth){B.style.left=(-1*B.offsetWidth)+B.windowWidth+"px";
B.leftShifter.src=B.leftShifterEnabledImage;
B.leftShifter.alt=B.leftShifterTitle;
B.rightShifter.src=B.rightShifterDisabledImage;
B.rightShifter.alt=B.rightShifterDisabledTitle
}else{if(A<0){B.style.left=A+"px";
B.leftShifter.src=B.leftShifterEnabledImage;
B.leftShifter.alt=B.leftShifterTitle;
B.rightShifter.src=B.rightShifterEnabledImage;
B.rightShifter.alt=B.rightShifterTitle;
return true
}else{B.style.left="0px";
B.leftShifter.src=B.leftShifterDisabledImage;
B.leftShifter.alt=B.leftShifterDisabledTitle;
B.rightShifter.src=B.rightShifterEnabledImage;
B.rightShifter.alt=B.rightShifterTitle
}}}return false
},move:function(D,C){var B=document.getElementById(D);
var A=Math.abs(DataTrainRenderer.SPEED/C)<=1?DataTrainRenderer.SPEED*(C>0?1:-1):C;
if(A==0){return 
}if(DataTrainRenderer.moveTrainTo(D,parseInt(B.style.left)+A)==true){setTimeout("DataTrainRenderer.move('"+D+"', "+(C-A)+")",DataTrainRenderer.DELAY)
}},shiftLeft:function(B){var A=document.getElementById(B);
DataTrainRenderer.move(A.id,A.windowWidth-A.wagonWidth)
},shiftRight:function(B){var A=document.getElementById(B);
DataTrainRenderer.move(A.id,-1*(A.windowWidth-A.wagonWidth))
},initTrain:function(D,S,N,I,G,F,P,L,O,H,Q,R,C){var K=document.getElementById(D);
var M=K.parentNode;
var E=findElementsEndingWithId(null,D+"-wagon",null,false);
var B=E.length;
var J=0;
if(B>0){J=E[0].parentNode.parentNode.childNodes[0].offsetWidth+E[0].parentNode.parentNode.childNodes[1].offsetWidth+E[0].parentNode.parentNode.childNodes[2].offsetWidth
}for(i=0;
i<E.length;
i++){var A=E[i];
A.childNodes[0].style.top=(A.offsetHeight-A.childNodes[0].offsetHeight)/2+"px"
}K.trainWidth=B*J;
K.style.width=K.trainWidth+15+"px";
K.windowWidth=M.offsetWidth;
K.wagonWidth=J;
K.styleClassRoot=I;
K.leftShifter=document.getElementById(D+"-ls");
K.rightShifter=document.getElementById(D+"-rs");
K.leftShifterEnabledImage=O+"/"+G;
K.rightShifterEnabledImage=O+"/"+P;
K.leftShifterDisabledImage=O+"/"+F;
K.rightShifterDisabledImage=O+"/"+L;
K.leftShifterTitle=H;
K.leftShifterDisabledTitle=Q;
K.rightShifterTitle=R;
K.rightShifterDisabledTitle=C;
DataTrainRenderer.moveTrainTo(K.id,(-1*S*J))
}};
var MenuHierarchyRenderer={HIERARCHIES:[],NOT_SPECIFIED_VALUE:"-1000",updateMenu:function(W,K,Y){var A=EventUtils.getElement(W);
var M=document.getElementById("hierarchyStatus-"+A.id.substring(0,A.id.lastIndexOf("-")));
if(A&&M){var X=M.value.indexOf(A.id);
if(X!=-1){var J=X+A.id.length+1;
var I=M.value.indexOf(";",J);
var G=M.value.indexOf(",",I);
var P=M.value.substring(X,G);
var N=M.value.substring(J,I);
var O=A.id+"="+N+";"+A.selectedIndex;
M.value=M.value.replace(P,O)
}}if(A&&A.dependency){this.clearMenu(A.dependency,K,Y);
var R=A.options[A.selectedIndex].value;
if(R==""){return 
}var U=M.value.indexOf(A.dependency.id);
if(U==-1){M.value=M.value.concat(A.dependency.id+"="+R+";"+A.dependency.selectedIndex+",")
}else{var Q=A.dependency.id+"="+R+";"+A.dependency.selectedIndex;
var L=M.value.indexOf(A.dependency.id);
var D=L+A.dependency.id.length+1;
var C=M.value.indexOf(";",D);
var B=M.value.indexOf(",",C);
var S=M.value.substring(L,B);
M.value=M.value.replace(S,Q)
}var E=this.HIERARCHIES[K][R];
if(E){if(!Y){for(i=0;
i<E.length;
i++){A.dependency.options[i]=new Option(E[i].text,E[i].value)
}if(A.dependency.options.length>0){removeClass(A.dependency.parentNode,"hidden-audible");
A.dependency.disabled=false
}}else{for(i=1;
i<E.length;
i++){A.dependency.options[i]=new Option(E[i].text,E[i].value)
}if(A.dependency.options.length>1){removeClass(A.dependency.parentNode,"hidden-audible");
A.dependency.disabled=false
}}}else{var T=document.jsfForm()[K+"-r"];
var H=T.value;
H=addParameter(H,"q",R);
var F=new HTTPClient();
F.init(H);
F.asyncGET(new MenuHierarchyHandler(A.dependency,K,R,Y))
}if(A.dependency.fireEvent){setTimeout(function(){A.dependency.fireEvent("onchange")
},100)
}if(A.dependency.dispatchEvent){var V=document.createEvent("UIEvents");
V.initEvent("change",true,true);
setTimeout(function(){A.dependency.dispatchEvent(V)
},100)
}}},initialSelection:function(A){var C=document.getElementById(A);
if(C.fireEvent){C.fireEvent("onchange")
}if(C.dispatchEvent){var B=document.createEvent("UIEvents");
B.initEvent("change",true,true);
C.dispatchEvent(B)
}},refreshMenu:function(E,C,G){var B=document.getElementById(E);
var F=document.getElementById("hierarchyStatus-"+E.substring(0,E.lastIndexOf("-")));
if(F&&F.value!=""){var I=F.value.indexOf(E);
if(I==-1){return 
}var J=I+E.length+1;
var H=F.value.substring(J,F.value.indexOf(";",J));
var K=document.jsfForm()[C+"-r"];
var A=K.value;
A=addParameter(A,"q",H);
var D=new HTTPClient();
D.init(A);
D.asyncGET(new MenuHierarchyHandler(B,C,H,G))
}},clearMenu:function(B,C,A){if(!A){while(B.options.length>0){B.options[0]=null
}}else{while(B.options.length>1){B.options[1]=null
}}if(B.dependency){this.clearMenu(B.dependency,C,A)
}if(!A){if(B.options[0]==null){addClass(B.parentNode,"hidden-audible");
B.disabled=true
}}else{if(B.options[0].value==this.NOT_SPECIFIED_VALUE){addClass(B.parentNode,"hidden-audible");
B.disabled=true
}}},cloneOptions:function(B){var A=new Array(B.length);
for(i=0;
i<B.length;
i++){A[i]=new Option(B[i].text,B[i].value)
}return A
},loadOptions:function(L,A,Q,P,E){var G=P.documentElement.childNodes;
var F=1;
for(var C=0;
C<G.length;
C++){var O=G.item(C);
if(O.nodeName!="option"){continue
}var M=O.childNodes[0].childNodes[0].nodeValue;
var K=O.childNodes[1].childNodes[0].nodeValue;
if(C==0&&!E){L.options[0]=new Option(K,M);
continue
}else{if(C==0&&K==L.options[0].text){L.options[0].value=M;
continue
}}L.options[F++]=new Option(K,M)
}this.HIERARCHIES[A][Q]=this.cloneOptions(L.options);
var B=document.getElementById("hierarchyStatus-"+L.id.substring(0,L.id.lastIndexOf("-")));
var J=B.value.indexOf(L.id);
if(J!=-1){var I=B.value.indexOf(";",J);
var H=B.value.indexOf(",",I);
var D=B.value.substring(I+1,H);
if(D!=-1){L.selectedIndex=D
}else{L.selectedIndex=0
}}if(L.options.length>1||(L.options.length>0&&!E)){removeClass(L.parentNode,"hidden-audible");
L.disabled=false
}if(L){if(menu.fireEvent){menu.fireEvent("onchange")
}if(menu.dispatchEvent){var N=document.createEvent("UIEvents");
N.initEvent("change",true,true);
menu.dispatchEvent(N)
}}}};
function MenuHierarchyHandler(A,D,C,B){this.menu=A;
this.hierarchyId=D;
this.parentValue=C;
this.hasDefaultValue=B
}MenuHierarchyHandler.prototype.onInit=function(){};
MenuHierarchyHandler.prototype.onError=function(){};
MenuHierarchyHandler.prototype.onProgress=function(){};
MenuHierarchyHandler.prototype.onLoad=function(A){MenuHierarchyRenderer.loadOptions(this.menu,this.hierarchyId,this.parentValue,A,this.hasDefaultValue)
};
var SuggestiveInputRenderer={KEYUP:38,KEYDOWN:40,KEYENTER:13,KEYTAB:9,DELAY:100,CACHES:[],initSuggestiveInput:function(C,A,F,E){var D=document.getElementById(C);
this.CACHES[C]=[];
D.outputID=A;
D.queryURL=E;
D.styleClassRoot=F;
D.autocomplete="off";
addEvent(D,"keydown",this.keydownHandler);
addEvent(D,"change",this.changeHandler);
addEvent(D,"blur",this.blurHandler);
var B=document.getElementById(C+"-hidden");
if(B&&B.value){B.inputValue=D.value
}this.getOutputHandler(D)
},changeHandler:function(A){var B=A?A:event;
SuggestiveInputRenderer._changeHandler(getEventElement(B))
},_changeHandler:function(B){var A=SuggestiveInputRenderer.getOutputHandler(B);
A.unselect()
},blurHandler:function(A){var B=A?A:event;
SuggestiveInputRenderer._blurHandler(getEventElement(B))
},_blurHandler:function(A){SuggestiveInputRenderer.hideSuggestions(A)
},keydownHandler:function(A){var B=A?A:event;
SuggestiveInputRenderer._keydownHandler(B,getEventElement(B))
},_keydownHandler:function(A,F){var E=SuggestiveInputRenderer.getOutputHandler(F);
var D=getKeyPressed(A);
if(E.isHidden()&&D!=this.KEYTAB||(D!=this.KEYUP&&D!=this.KEYDOWN&&D!=this.KEYENTER&&D!=this.KEYTAB)){window.clearTimeout(E.input.timeoutID);
E.input.timeoutID=window.setTimeout(function(){SuggestiveInputRenderer.showSuggestions(F.id)
},this.DELAY);
return true
}var C=E.output;
var B=this.getSelectedDivIndex(C);
if((D==this.KEYENTER)||(D==this.KEYTAB)){if(B>=0){var G=this.setSelectedDiv(C,B);
SuggestiveInputRenderer._selectResult(C)
}return false
}else{if(D==this.KEYUP){this.setSelectedDiv(C,B-1)
}else{if(D==this.KEYDOWN){this.setSelectedDiv(C,B+1)
}}}return true
},showSuggestions:function(B){var C=document.getElementById(B);
var D=this.getOutputHandler(C);
var E=C.value.trim();
var A=SuggestiveInputRenderer.CACHES[B][E];
if(!D.unselect()){return 
}if(!A){window.clearTimeout(C.timeoutID);
C.timeoutID=window.setTimeout(function(){SuggestiveInputRenderer.doQuery(B)
},this.DELAY)
}else{D.fill(A)
}},hideSuggestions:function(B){var A=SuggestiveInputRenderer.getOutputHandler(B);
A.hide(true)
},getOutputHandler:function(C){var B=C.outputHandler;
if(!B){if(C.outputID){B=new _TextareaHandler(C,document.getElementById(C.outputID))
}else{var A=HTMLUtils.addDiv(document.body);
addClass(A,C.styleClassRoot+"-sug");
B=new _DivHandler(C,A)
}C.outputHandler=B
}return B
},selectResult:function(){SuggestiveInputRenderer._selectResult(this)
},_selectResult:function(D){var C=D.getElementsByTagName("span");
if(C){for(var B=0;
B<C.length;
B++){if(C[B].id=="suggestion"){var E=document.getElementById(C[B].inputID);
var A=document.getElementById(C[B].inputID+"-hidden");
E.value=C[B].innerText?C[B].innerText:C[B].textContent;
addClass(E,E.styleClassRoot+"-input-selected");
A.value=C[B].key;
A.inputValue=E.value;
E.focus();
SuggestiveInputRenderer.hideSuggestions(E);
return 
}}}},getSelectedDivIndex:function(A){var C=A.getElementsByTagName("div");
if(C){for(var B=0;
B<C.length;
B++){if(C[B].selected){return B
}}}return -1
},setSelectedDiv:function(A,C){var B=this.getSelectedDivIndex(A);
var D;
var E=A.getElementsByTagName("div");
if(E&&E.length>0){if(C>=E.length){C=0
}else{if(C<0){C=E.length-1
}}if(B!=-1){E[B].selected=false;
this._unhighlightResult(E[B])
}this._highlightResult(E[C]);
E[C].selected=true;
D=E[C]
}return D
},highlightResult:function(){SuggestiveInputRenderer._highlightResult(this)
},_highlightResult:function(A){var B=document.getElementById(A.inputID);
addClass(A,B.styleClassRoot+"-sug-div-over")
},unhighlightResult:function(){SuggestiveInputRenderer._unhighlightResult(this)
},_unhighlightResult:function(A){if(!A.selected){var B=document.getElementById(A.inputID);
removeClass(A,B.styleClassRoot+"-sug-div-over")
}},doQuery:function(B){var D=document.getElementById(B);
var E=D.value.trim();
var C=D.queryURL;
C=addParameter(C,"q",E);
var A=new HTTPClient();
A.init(C);
A.asyncGET(new SuggestiveInputHandler(B,E))
},loadSuggestions:function(H,D,J){var E=J.getElementsByTagName("suggestion");
var I=[];
for(var B=0;
B<E.length;
B++){var C=[];
var A=E[B];
var G=A.getElementsByTagName("value")[0];
var F=A.getElementsByTagName("label")[0];
C[0]=G.text||G.textContent;
C[1]=F.text||F.textContent;
I[B]=C
}SuggestiveInputRenderer.CACHES[H][D]=I;
this.showSuggestions(H)
}};
function _TextareaHandler(B,C){this.input=B;
this.output=C;
var A=this;
this._isWebKit=navigator.userAgent.indexOf("WebKit")!=-1;
if(this._isWebKit){addEvent(this.output,"dragenter",function(D){A.dragEnterHandler(D)
})
}addEvent(this.output,"dragstart",function(D){A.dragStartHandler(D)
});
addEvent(this.output,"draggesture",function(D){A.dragStartHandler(D)
})
}_TextareaHandler.prototype.isHidden=function(){return false
};
_TextareaHandler.prototype.hide=function(A){};
_TextareaHandler.prototype.fill=function(D){var C=this.output;
var A="";
var B="";
for(var E=0;
E<D.length;
E++){B+=A+D[E][1];
A="\n"
}C.value=B
};
_TextareaHandler.prototype.unselect=function(){return true
};
_TextareaHandler.prototype.select=function(A){};
_TextareaHandler.prototype.dragEnterHandler=function(A){if(A.stopPropagation){A.stopPropagation()
}if(A.preventDefault){A.preventDefault()
}this.dragStartHandler(A);
return true
};
_TextareaHandler.prototype.dragStartHandler=function(B){var F=B?B:event;
if(this.output.setSelectionRange&&!this._isWebKit){var E=this.output.value;
var G=this.output.selectionStart;
var A=this.output.selectionEnd;
while(G>0){if(E.charAt(G)=="{"){break
}G--
}while(A<E.length){if(E.charAt(A-1)=="}"){break
}A++
}this.output.setSelectionRange(G,A)
}else{if(this._isWebKit){}else{if(document.selection){var C=document.selection.createRange();
var E,D;
while(true){E=C.text;
if(E.charAt(0)=="{"){break
}D=C.moveStart("character",-1);
if(D==0){break
}}while(true){E=C.text;
if(E.charAt(E.length-1)=="}"){break
}D=C.moveEnd("character",1);
if(D==0){break
}}C.select()
}}}};
function _DivHandler(A,B){this.input=A;
this.output=B
}_DivHandler.prototype.isHidden=function(){return this.output.style.visibility=="hidden"
};
_DivHandler.prototype.hide=function(A){this.output.style.visibility=A?"hidden":"visible";
if(A){Core.hideShowCovered(this.output,A)
}};
_DivHandler.prototype.fill=function(J){var E=this.input;
var F=E.offsetLeft;
var D=E.offsetTop+E.offsetHeight;
var G=E;
while(G.offsetParent){G=G.offsetParent;
F+=G.offsetLeft;
D+=G.offsetTop
}var A=this.output;
A.style.left=F+"px";
A.style.top=D+"px";
while(A.lastChild){A.removeChild(A.lastChild)
}for(var B=0;
B<J.length;
B++){var H=HTMLUtils.addDiv(A);
addClass(H,E.styleClassRoot+"-sug-div");
H.id="test";
H.onmousedown=SuggestiveInputRenderer.selectResult;
H.onmousemove=SuggestiveInputRenderer.highlightResult;
H.onmouseout=SuggestiveInputRenderer.unhighlightResult;
H.inputID=E.id;
var I=HTMLUtils.addSpan(H);
addClass(I,E.styleClassRoot+"-sug-span");
I.key=J[B][0];
writeText(I,J[B][1]);
I.id="suggestion";
I.inputID=E.id
}var C;
if(J.length==1&&J[0][1].length==E.value.length){this.select(0);
this.hide(true);
this._selectResult(this.setSelectedDiv(A,0));
C=true
}else{C=J.length==0;
this.hide(C)
}Core.hideShowCovered(A,C)
};
_DivHandler.prototype.unselect=function(){var A=document.getElementById(this.input.id+"-hidden");
if(this.input.value==A.inputValue){return false
}removeClass(this.input,this.input.styleClassRoot+"-input-selected");
A.value="";
A.inputValue="";
return true
};
_DivHandler.prototype.select=function(A){};
function SuggestiveInputHandler(B,A){this.inputID=B;
this.queryString=A
}SuggestiveInputHandler.prototype.onInit=function(){};
SuggestiveInputHandler.prototype.onError=function(){};
SuggestiveInputHandler.prototype.onProgress=function(){};
SuggestiveInputHandler.prototype.onLoad=function(A){SuggestiveInputRenderer.loadSuggestions(this.inputID,this.queryString,A)
};
function NullHandler(){}NullHandler.prototype.onInit=function(){};
NullHandler.prototype.onError=function(A,B){};
NullHandler.prototype.onProgress=function(B,A){};
NullHandler.prototype.onLoad=function(A){};
var AjaxActionRenderer={sendRequest:function(pHandler,pUrlPart,pStaticParams,pFormParams,pJsParams,pSrcCompId){var client=new HTTPClient();
var url=pUrlPart;
for(i=0,n=pStaticParams.length;
i<n;
i++){url+="&"+pStaticParams[i][0];
url+="="+pStaticParams[i][1]
}for(i=0,n=pFormParams.length;
i<n;
i++){var input=document.getElementById(pFormParams[i][1]);
url=addParameter(url,pFormParams[i][0],input.value)
}for(i=0,n=pJsParams.length;
i<n;
i++){url+="&"+pJsParams[i][0];
url+="="+eval(pJsParams[i][1])
}if(pSrcCompId!=null){url+="&aaSrcComp";
url+="="+pSrcCompId
}client.init(url);
if(pHandler.length==0){pHandler="NullHandler"
}client.asyncGET(eval("new "+pHandler+"()"))
}};
var MessagesRenderer={moveMessages:function(B,A){var D=document.getElementById(B);
var C=findElementsEndingWithId(null,A,null,true)[0];
if(C!=null){D.appendChild(C);
StyleUtils.removeClass(C,"messagesWillMove")
}}};
var StarRenderer={manageStarClicked:function(G){G=(G)?G:window.event;
var E=getEventElement(G);
var A=E.parentNode;
var I=A.parentNode;
var F=window.document.getElementById(I.id+"-cr");
var D=window.document.getElementById(I.id+"-iw");
var C=parseInt(D.value);
var B=StarRenderer.getLIIndexInUL(A);
var H=window.document.getElementById(I.id+"-hf");
if(parseInt(H.value)==B){B=0
}H.value=B;
F.style.width=B*C+"px"
},getLIIndexInUL:function(D){var E=D.parentNode;
var A=E.childNodes;
var B=0;
for(var C=0;
C<A.length;
C++){if(/^li$/i.test(A[C].tagName)){if(A[C]==D){return B
}B++
}}return -1
}};
var WindowRenderer={openWindow:function(sURL,sName,width,height,clientId,onPopupBlocked){var wind=openWindow(sURL,sName,width,height);
if(onPopupBlocked!=""&&wind==null){eval(onPopupBlocked+"('"+clientId+"')")
}return wind
}};
var __FORM__=1;
var FORM_DATA_SNAPSHOT=new Array();
function FormDataSnapshot(A){this.form=A;
this.data=new Array()
}function ElementDataSnapshot(A,B){this.element=A;
this.data=B
}function fillFormDataSnapshot(A){for(var E=0;
E<A.form.elements.length;
E++){var F=A.form.elements[E];
var H=F.type;
var C=null;
var B=false;
var G=false;
if(F.id.indexOf("not_relevant")!=-1){B=true
}else{if(F.id.indexOf("relevant")!=-1){G=true
}}if(!B){if(H=="checkbox"||H=="radio"){C=new ElementDataSnapshot(F,F.checked)
}else{if(H=="select-one"){C=new ElementDataSnapshot(F,F.selectedIndex)
}else{if(H=="select-multiple"){var I=new Array();
for(var D=0;
D<F.length;
D++){I[I.length]=F.options[D].selected
}C=new ElementDataSnapshot(F,I)
}else{if(H=="text"||H=="textarea"){C=new ElementDataSnapshot(F,F.value)
}else{if(H=="hidden"&&G){C=new ElementDataSnapshot(F,F.value)
}}}}}}if(C!=null){A.data[A.data.length]=C
}}}function findFormDataSnapshot(C){var A=null;
for(var B=0;
B<FORM_DATA_SNAPSHOT.length;
B++){if(FORM_DATA_SNAPSHOT[B].form==C){A=FORM_DATA_SNAPSHOT[B];
break
}}return A
}function takeFormDataSnapshotOnload(){takeFormDataSnapshot(window.document.jsfForm())
}function takeFormDataSnapshot(B){if(B.formChanged.value!="1"){var A=findFormDataSnapshot(B);
if(A==null){A=new FormDataSnapshot(B);
FORM_DATA_SNAPSHOT[FORM_DATA_SNAPSHOT.length]=A
}fillFormDataSnapshot(A)
}}function isIgnoredElement(B,A){var D=false;
if(A&&typeof (A.length)=="number"){for(var C=0;
C<A.length;
C++){if(B==A[C]){D=true;
break
}}}else{if(B==A){D=true
}}return D
}function checkFormDataChangesOnsubmit(A){if(isFormDataChanged(A)){A.formChanged.value="1"
}}function isFormDataChanged(H,I){if(H.formChanged.value=="1"){return true
}var A=false;
var B=findFormDataSnapshot(H);
if(B!=null){for(var E=0;
E<B.data.length;
E++){var F=B.data[E].element;
var G=F.type;
var C=B.data[E].data;
if(!isIgnoredElement(F,I)){if(G=="checkbox"||G=="radio"){if(C!=F.checked){A=true;
break
}}else{if(G=="select-one"){if(C!=F.selectedIndex){A=true;
break
}}else{if(G=="select-multiple"){for(var D=0;
D<F.length;
D++){if(C[D]!=F.options[D].selected){A=true;
break
}}}else{if(G=="hidden"||G=="text"||G=="textarea"){if(C!=F.value){A=true;
break
}}}}}}}}if(A){H.formChanged.value="1"
}return A
}function formCheckAll(E){var C=E.checked;
var F=findParentOfType(E,"TABLE");
if(F==null){return C
}var B=ElementUtils.getChildrenElementsByTagName(ElementUtils.getChildElementByTagName(F,"TBODY"),"INPUT");
for(var D=0;
D<B.length;
D++){var A=B[D];
if(A.type=="checkbox"&&!A.disabled){A.checked=C
}}return C
}function formSyncCheckAll(A){formSyncCheckAll2(A,false)
}function formSyncCheckAll2(G,F){if(typeof G=="string"){G=document.getElementById(G);
if(G==null){return 
}}var A=getSelectedRowCount(G);
var H=(A.nbSelectedRows==A.totalNbRows);
if((F&&!H)||!F){var E=findParentOfType(G,"TABLE");
if(E==null){return A.nbSelectedRows>0
}var C=ElementUtils.getChildrenElementsByTagName(ElementUtils.getChildElementByTagName(E,"THEAD"),"INPUT");
for(var D=0;
D<C.length;
i++){var B=C[D];
if(B.type=="checkbox"&&!B.disabled){B.checked=H;
break
}}}return A.nbSelectedRows>0
}function SelectedRowResult(B,A){this.nbSelectedRows=B;
this.totalNbRows=A
}function getSelectedRowCount(F){var G=0;
var D=0;
var E=findParentOfType(F,"TABLE");
if(E!=null){var B=ElementUtils.getChildrenElementsByTagName(ElementUtils.getChildElementByTagName(E,"TBODY"),"INPUT");
for(var C=0;
C<B.length;
C++){var A=B[C];
if(A.type=="checkbox"&&!A.disabled){if(A.checked){G++
}D++
}}}return new SelectedRowResult(G,D)
};
var Calendar=function(C,B,H,A,D,G,F,E){this.calendarID=E;
this.activeDiv=null;
this.currentDateEl=null;
this.getDateStatus=null;
this.timeout=null;
this.onSelected=H||null;
this.onClose=A||null;
this.onClear=D||null;
this.onDone=G||null;
this.onCancel=F||null;
this.dragging=false;
this.hidden=false;
this.minYear=1970;
this.maxYear=2050;
this.dateFormat=Calendar.getText("DEF_DATE_FORMAT");
this.ttDateFormat=Calendar.getText("TT_DATE_FORMAT");
this.isPopup=true;
this.weekNumbers=true;
this.firstDayOfWeek=C;
this.showsOtherMonths=false;
this.dateStr=B;
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
};
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.is_webkit=/webkit/i.test(navigator.userAgent);
Calendar.getAbsolutePos=function(E){var A=0,D=0;
var C=/^div$/i.test(E.tagName);
if(C&&E.scrollLeft){A=E.scrollLeft
}if(C&&E.scrollTop){D=E.scrollTop
}var F={x:E.offsetLeft-A,y:E.offsetTop-D};
if(E.offsetParent){var B=this.getAbsolutePos(E.offsetParent);
F.x+=B.x;
F.y+=B.y
}return F
};
Calendar.isRelated=function(C,A){var D=A.relatedTarget;
if(!D){var B=A.type;
if(B=="mouseover"){D=A.fromElement
}else{if(B=="mouseout"){D=A.toElement
}}}while(D){if(D==C){return true
}D=D.parentNode
}return false
};
Calendar.removeClass=function(E,D){if(!(E&&E.className)){return 
}var A=E.className.split(" ");
var B=new Array();
for(var C=A.length;
C>0;
){if(A[--C]!=D){B[B.length]=A[C]
}}E.className=B.join(" ")
};
Calendar.addClass=function(B,A){Calendar.removeClass(B,A);
B.className+=" "+A
};
Calendar.getElement=function(A){var B=Calendar.is_ie?window.event.srcElement:A.currentTarget;
while(B.nodeType!=1||/^div$/i.test(B.tagName)){B=B.parentNode
}return B
};
Calendar.getTargetElement=function(A){var B=Calendar.is_ie?window.event.srcElement:A.target;
while(B.nodeType!=1){B=B.parentNode
}return B
};
Calendar.stopEvent=function(A){A||(A=window.event);
if(Calendar.is_ie){A.cancelBubble=true;
A.returnValue=false
}else{A.preventDefault();
A.stopPropagation()
}return false
};
Calendar.addEvent=function(A,C,B){if(A.attachEvent){A.attachEvent("on"+C,B)
}else{if(A.addEventListener){A.addEventListener(C,B,true)
}else{A["on"+C]=B
}}};
Calendar.removeEvent=function(A,C,B){if(A.detachEvent){A.detachEvent("on"+C,B)
}else{if(A.removeEventListener){A.removeEventListener(C,B,true)
}else{A["on"+C]=null
}}};
Calendar.createElement=function(C,B){var A=null;
A=document.createElement(C);
if(typeof B!="undefined"){B.appendChild(A)
}return A
};
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(A){if(typeof A.month!="undefined"){return A
}else{if(typeof A.parentNode.month!="undefined"){return A.parentNode
}}return null
};
Calendar.findYear=function(A){if(typeof A.year!="undefined"){return A
}else{if(typeof A.parentNode.year!="undefined"){return A.parentNode
}}return null
};
Calendar.showMonthsCombo=function(){var D=Calendar._C;
if(!D){return false
}var D=D;
var E=D.activeDiv;
var C=D.monthsCombo;
if(D.hilitedMonth){Calendar.removeClass(D.hilitedMonth,"hilite")
}if(D.activeMonth){Calendar.removeClass(D.activeMonth,"active")
}var A=D.monthsCombo.getElementsByTagName("div")[D.date.getMonth()];
Calendar.addClass(A,"active");
D.activeMonth=A;
var B=E.navtype<0?"Bl":"Br";
showAtElement2(C,E,B,D.element)
};
Calendar.showYearsCombo=function(F,H){var B=Calendar._C;
if(!B){return false
}var B=B;
var D=B.activeDiv;
var G=B.yearsCombo;
if(B.hilitedYear){Calendar.removeClass(B.hilitedYear,"hilite")
}if(B.activeYear){Calendar.removeClass(B.activeYear,"active")
}B.activeYear=null;
var C=H==20?(F?B.date.getFullYear()-5:B.date.getFullYear()+5):B.date.getFullYear()+(F?1:-1);
if(F&&C<B.minYear){C=B.minYear
}else{if(!F&&C>B.maxYear){C=B.maxYear
}}var J=G.firstChild;
var I=false;
for(var E=12;
E>0;
--E){if(C>=B.minYear&&C<=B.maxYear){J.innerHTML=C;
J.year=C;
J.style.display="block";
I=true
}else{J.style.display="none"
}J=J.nextSibling;
C+=F?B.yearStep:-B.yearStep
}if(I){var A=D.navtype<0?"Bl":"Br";
showAtElement2(G,D,A,B.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 target=Calendar.getTargetElement(ev);
ev||(ev=window.event);
Calendar.removeClass(el,"active");
if(target==el||target.parentNode==el){Calendar.cellClick(el,ev)
}var mon=Calendar.findMonth(target);
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(target);
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(M){var A=Calendar._C;
if(!A){return 
}var C=A.activeDiv;
var I=Calendar.getTargetElement(M);
if(I==C||I.parentNode==C){Calendar.addClass(C,"hilite active");
Calendar.addClass(C.parentNode,"rowhilite")
}else{if(typeof C.navtype=="undefined"||(C.navtype!=50&&(C.navtype==0||Math.abs(C.navtype)>2))){Calendar.removeClass(C,"active")
}Calendar.removeClass(C,"hilite");
Calendar.removeClass(C.parentNode,"rowhilite")
}M||(M=window.event);
if(C.navtype==50&&I!=C){var L=Calendar.getAbsolutePos(C);
var O=C.offsetWidth;
var N=M.clientX;
var P;
var K=true;
if(N>L.x+O){P=N-L.x-O;
K=false
}else{P=L.x-N
}if(P<0){P=0
}var F=C._range;
var H=C._current;
var G=Math.floor(P/10)%F.length;
for(var E=F.length;
--E>=0;
){if(F[E]==H){break
}}while(G-->0){if(K){if(--E<0){E=F.length-1
}}else{if(++E>=F.length){E=0
}}}var B=F[E];
C.innerHTML=B;
A.onUpdateTime()
}var D=Calendar.findMonth(I);
if(D){if(D.month!=A.date.getMonth()){if(A.hilitedMonth){Calendar.removeClass(A.hilitedMonth,"hilite")
}Calendar.addClass(D,"hilite");
A.hilitedMonth=D
}else{if(A.hilitedMonth){Calendar.removeClass(A.hilitedMonth,"hilite")
}}}else{if(A.hilitedMonth){Calendar.removeClass(A.hilitedMonth,"hilite")
}var J=Calendar.findYear(I);
if(J){if(J.year!=A.date.getFullYear()){if(A.hilitedYear){Calendar.removeClass(A.hilitedYear,"hilite")
}Calendar.addClass(J,"hilite");
A.hilitedYear=J
}else{if(A.hilitedYear){Calendar.removeClass(A.hilitedYear,"hilite")
}}}}return Calendar.stopEvent(M)
};
Calendar.tableMouseDown=function(A){if(Calendar.getTargetElement(A)==Calendar.getElement(A)){return Calendar.stopEvent(A)
}};
Calendar.calDragIt=function(B){var C=Calendar._C;
if(!(C&&C.dragging)){return false
}var E;
var D;
if(Calendar.is_ie){D=window.event.clientY+document.body.scrollTop;
E=window.event.clientX+document.body.scrollLeft
}else{E=B.pageX;
D=B.pageY
}C.hideShowCovered();
var A=C.element.style;
A.left=(E-C.xOffs)+"px";
A.top=(D-C.yOffs)+"px";
return Calendar.stopEvent(B)
};
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(A){Calendar.cellClick(Calendar.getElement(A),A||window.event);
if(Calendar.is_ie){document.selection.empty()
}};
Calendar.dayMouseOver=function(B){var A=Calendar.getElement(B);
if(Calendar.isRelated(A,B)||Calendar._C||A.disabled){return false
}if(A.ttip){if(A.ttip.substr(0,1)=="_"){A.ttip=A.caldate.print(A.calendar.ttDateFormat)+A.ttip.substr(1)
}A.calendar.tooltips.innerHTML=A.ttip
}if(A.navtype!=300){Calendar.addClass(A,"hilite");
if(A.caldate){Calendar.addClass(A.parentNode,"rowhilite")
}}return Calendar.stopEvent(B)
};
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=getText("SEL_DATE");
return stopEvent(ev)
}};
Calendar.cellClick=function(D,N){var B=D.calendar;
var H=false;
var K=false;
var F=null;
if(typeof D.navtype=="undefined"){Calendar.removeClass(B.currentDateEl,"selected");
Calendar.addClass(D,"selected");
H=(B.currentDateEl==D);
if(!H){B.currentDateEl=D
}var P=new Date(D.caldate);
var E=D.otherMonth;
copyTime(P,B.date);
B.setDate(P);
K=true;
B.dateClicked=!E
}else{if(D.navtype==200){Calendar.removeClass(D,"hilite");
B.callCloseHandler();
return 
}F=(D.navtype==0)?new Date():new Date(B.date);
B.dateClicked=false;
var M=F.getFullYear();
var G=F.getMonth();
function A(R){var S=F.getDate();
var Q=F.getMonthDays(R);
if(S>Q){F.setDate(Q)
}F.setMonth(R)
}switch(D.navtype){case 400:Calendar.removeClass(D,"hilite");
var O=Calendar.getText("ABOUT");
if(typeof O!="undefined"){O+=B.showsTime?Calendar.getText("ABOUT_TIME"):""
}else{O='Help and about box text is not translated into this language.\nIf you know this language and you feel generous please update\nthe corresponding file in "lang" subdir to match calendar-en.js\nand send it back to <mishoo@infoiasi.ro> to get it into the distribution  ;-)\n\nThank you!\nhttp://dynarch.com/mishoo/calendar.epl\n'
}alert(O);
return ;
case -2:if(M>B.minYear){F.setFullYear(M-1)
}break;
case -1:if(G>0){A(G-1)
}else{if(M-->B.minYear){F.setFullYear(M);
A(11)
}}break;
case 1:if(G<11){A(G+1)
}else{if(M<B.maxYear){F.setFullYear(M+1);
A(0)
}}break;
case 2:if(M<B.maxYear){F.setFullYear(M+1)
}break;
case 100:B.setFirstDayOfWeek(D.fdow);
return ;
case 50:var J=D._range;
var L=D.innerHTML;
for(var I=J.length;
--I>=0;
){if(J[I]==L){break
}}if(N&&N.shiftKey){if(--I<0){I=J.length-1
}}else{if(++I>=J.length){I=0
}}var C=J[I];
D.innerHTML=C;
B.onUpdateTime();
return ;
case 0:if((typeof B.getDateStatus=="function")&&B.getDateStatus(F,F.getFullYear(),F.getMonth(),F.getDate())){return false
}break
}if(!F.equalsTo(B.date)){B.setDate(F);
K=true
}}if(K){N&&B.callHandler()
}if(H){Calendar.removeClass(D,"hilite");
N&&B.callCloseHandler()
}};
Calendar.prototype.create=function(L){var H=null;
if(!L){H=document.getElementsByTagName("body")[0];
this.isPopup=true
}else{H=L;
this.isPopup=false
}this.date=this.dateStr?new Date(this.dateStr):new Date();
var R=Calendar.createElement("table");
R.id=this.calendarID+"-table";
this.table=R;
R.cellSpacing=0;
R.cellPadding=0;
R.calendar=this;
Calendar.addEvent(R,"mousedown",Calendar.tableMouseDown);
var K=Calendar.createElement("div");
K.id=this.calendarID+"-mainDIV";
this.element=K;
K.className="calendar";
if(this.isPopup){K.style.position="absolute";
K.style.display="none"
}K.appendChild(R);
this.caption=Calendar.createElement("caption",R);
this.caption.style.display="none";
var Q=Calendar.createElement("thead",R);
var B=null;
var F=null;
var E=true;
var J=this;
var D=function(X,W,V,U,T){B=Calendar.createElement(E?"th":"td",F);
B.id=U;
if(W>1){B.colSpan=W
}B.className="cal-button";
if(V!=0&&Math.abs(V)<=2){B.className+=" nav"
}Calendar._add_evs(B);
B.calendar=J;
B.navtype=V;
B.innerHTML="<div unselectable='on'>"+X+"</div>";
if(T){B.ttip=Calendar.getText(T);
B.title=B.ttip
}return B
};
F=Calendar.createElement("tr",Q);
var S=6;
(this.isPopup)&&--S;
(this.weekNumbers)&&++S;
D("?",1,400,this.calendarID+"-help","INFO");
this.title=D("",S,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=J;
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=J;
this.yearSpan.navtype=20;
Calendar._add_evs(this.yearSpan);
if(this.isPopup){this.title.ttip=Calendar.getText("DRAG_TO_MOVE");
this.title.title=this.title.ttip;
this.title.style.cursor="move";
D("&#x00d7;",1,200,this.calendarID+"-close","CLOSE")
}if(this.showsCalendar){F=Calendar.createElement("tr",Q);
F.id=this.calendarID+"-head-row";
F.className="headrow";
this._nav_py=D("&#x00ab;",1,-2,this.calendarID+"-prev-year","PREV_YEAR");
this._nav_pm=D("&#x2039;",1,-1,this.calendarID+"-prev-month","PREV_MONTH");
this._nav_now=D(Calendar.getText("TODAY"),this.weekNumbers?4:3,0,this.calendarID+"-today","GO_TODAY");
this._nav_nm=D("&#x203a;",1,1,this.calendarID+"-next-month","NEXT_MONTH");
this._nav_ny=D("&#x00bb;",1,2,this.calendarID+"-next-year","NEXT_YEAR");
F=Calendar.createElement("tr",Q);
F.className="daynames";
B=Calendar.createElement("th",F);
B.id=this.calendarID+"-week-num-header";
B.className="name wn";
B.innerHTML=Calendar.getText("WK");
B.abbr=Calendar.getText("WKABBR");
if(!this.weekNumbers){B.style.display="none"
}for(var P=7;
P>0;
--P){B=Calendar.createElement("th",F);
B.id=this.calendarID+"-day-names-"+P;
if(!P){B.navtype=100;
B.calendar=this;
Calendar._add_evs(B)
}}this.firstdayname=F.firstChild.nextSibling;
this._displayWeekdays()
}var A=Calendar.createElement("tbody",R);
this.tbody=A;
if(this.showsCalendar){for(P=6;
P>0;
--P){F=Calendar.createElement("tr",A);
B=Calendar.createElement("td",F);
B.id=this.calendarID+"-week-num-"+P;
if(!this.weekNumbers){B.style.display="none"
}for(var M=7;
M>0;
--M){B=Calendar.createElement("td",F);
B.id=this.calendarID+"-day-"+P+"-"+M;
B.headers=this.calendarID+"-week-num-"+P+" "+this.calendarID+"-day-names-"+M;
B.calendar=this;
Calendar._add_evs(B)
}}}if(this.showsTime){F=Calendar.createElement("tr",A);
F.id=this.calendarID+"-time-tr";
F.className="time";
B=Calendar.createElement("td",F);
B.id=this.calendarID+"-time-td";
B.className="time";
B.colSpan=8;
var C=Calendar.createElement("span",B);
C=this.calendarID+"-time-label";
C.className="time";
C.innerHTML=Calendar.getText("TIME")||"&nbsp;";
(function(){var Y="calId";
var a=J.date.getHours();
var U=J.date.getMinutes();
var b=!J.time24;
var W=dateHourToNormalizedHour(b,a);
var T=Calendar.createElement("INPUT",B);
T.value=W.hours;
T.className="inputTime-input";
T.rs_formrelevant=true;
T.name=Y+"-h";
T.id=Y+"-h";
T.maxLength=2;
if(Calendar.is_ie){T.onkeypress=onkeypressTimeInput;
T.onkeydown=onkeydownTimeInput;
T.onkeyup=function(){validateHourKeyUp(null,!b);
J.onUpdateTime()
};
T.onfocus=prepareTimeInput
}else{Calendar.addEvent(T,"keypress",onkeypressTimeInput);
Calendar.addEvent(T,"keydown",onkeypressTimeInput);
Calendar.addEvent(T,"keyup",function(c){validateHourKeyUp(c,!b);
Calendar.onUpdateTime()
});
Calendar.addEvent(T,"focus",prepareTimeInput)
}var X=Calendar.createElement("span",B);
X.innerHTML=":";
X.className="colon";
minInput=Calendar.createElement("INPUT",B);
minInput.value=U;
minInput.className="inputTime-input";
minInput.rs_formrelevant=true;
minInput.name=Y+"-m";
minInput.id=Y+"-m";
minInput.maxLength=2;
if(Calendar.is_ie){minInput.onblur=adjustMinute;
minInput.onkeypress=onkeypressTimeInput;
minInput.onkeydown=onkeydownTimeInput;
minInput.onkeyup=function(){validateMinuteKeyUp(null,J.minIncr,J.strictMinIncr);
J.onUpdateTime()
};
minInput.onfocus=prepareTimeInput
}else{Calendar.addEvent(minInput,"blur",adjustMinute);
Calendar.addEvent(minInput,"keypress",onkeypressTimeInput);
Calendar.addEvent(minInput,"keydown",onkeypressTimeInput);
Calendar.addEvent(minInput,"keyup",function(c){validateMinuteKeyUp(c,J.minIncr,J.strictMinIncr);
Calendar.onUpdateTime()
});
Calendar.addEvent(minInput,"focus",prepareTimeInput)
}if(b){var V=Calendar.createElement("INPUT",B);
V.value=W.isPm?"pm":"am";
V.className="inputTime-input";
V.rs_formrelevant=true;
V.name=Y+"-a";
V.id=Y+"-a";
V.maxLength=2;
if(Calendar.is_ie){V.onkeypress=onkeypressTimeInputAmPm;
V.onkeyup=function(){J.onUpdateTime()
};
V.onfocus=prepareTimeInput
}else{Calendar.addEvent(V,"keypress",function(c){onkeypressTimeInputAmPm(c);
Calendar.onUpdateTime()
});
Calendar.addEvent(V,"focus",prepareTimeInput)
}}var Z=Calendar.createElement("SPAN",B);
Z.className="inputTime-spinner";
Z.id=Y+"-s";
if(Calendar.is_ie){Z.onmouseout=Z.onmouseup=function(){changeTimeMouseUp();
J.onUpdateTime()
};
Z.onmousedown=function(){changeTimeMouseDown(null,Y,"inputTime-spinner",J.minIncr,!b)
}
}else{Calendar.addEvent(Z,"mouseout",Calendar.changeTimeMouseUp);
Calendar.addEvent(Z,"mouseup",Calendar.changeTimeMouseUp);
Calendar.addEvent(Z,"mousedown",function(c){changeTimeMouseDown(c,Y,"inputTime-spinner",J.minIncr,!b)
})
}Z.ondblclick=Z.onmousedown;
J.onSetTime=function(){var d=this.date.getHours();
var c=dateHourToNormalizedHour(b,d);
d=c.hours;
var e=this.date.getMinutes();
T.value=d;
minInput.value=(e<10)?("0"+e):e;
if(b){V.value=c.isPm?"pm":"am"
}};
Calendar.onUpdateTime=function(){var e=parseInt(T.value,10);
var e=parseInt(T.value,10);
if(b){if(/pm/i.test(V.value)&&e<12){e+=12
}else{if(/am/i.test(V.value)&&e==12){e=0
}}}var f=calendar.date.getDate();
var c=calendar.date.getMonth();
var g=calendar.date.getFullYear();
calendar.date.setHours(e);
calendar.date.setMinutes(parseInt(minInput.value,10));
calendar.date.setFullYear(g);
calendar.date.setMonth(c);
calendar.date.setDate(f);
this.dateClicked=false;
calendar.callHandler()
};
J.onUpdateTime=function(){var e=this.date;
var f=parseInt(T.value,10);
if(b){if(/pm/i.test(V.value)&&f<12){f+=12
}else{if(/am/i.test(V.value)&&f==12){f=0
}}}var g=e.getDate();
var c=e.getMonth();
var i=e.getFullYear();
e.setHours(f);
e.setMinutes(parseInt(minInput.value,10));
e.setFullYear(i);
e.setMonth(c);
e.setDate(g);
this.dateClicked=false;
this.callHandler()
}
})()
}else{this.onSetTime=this.onUpdateTime=function(){}
}if(this.showsActionBar){F=Calendar.createElement("tr",A);
F.className="action-bar";
B=Calendar.createElement("td",F);
B.className="action-bar";
B.colSpan=8;
function G(a,T,b,c,V,X,Y){var W=Calendar.createElement("a",a);
W.id=Y;
W.className="action";
Calendar.addClass(W,V);
Calendar.addEvent(W,"click",c);
var U=W;
for(P=0;
P<X;
P++){var Z=Calendar.createElement("span",U);
Z.className=V+(P+2);
U=Z
}U.appendChild(document.createTextNode(b));
return W
}G(B,"clear",Calendar.getText("CLEAR"),function(T){J.callClearHandler();
Calendar.stopEvent(T)
},"nav-btn-dark-gray",4,this.calendarID+"-clear");
G(B,"done",Calendar.getText("DONE"),function(T){J.callDoneHandler();
Calendar.stopEvent(T)
},"nav-btn-dark-gray",4,this.calendarID+"-done");
G(B,"cancel",Calendar.getText("CANCEL"),function(T){J.callCancelHandler();
Calendar.stopEvent(T)
},"nav-btn-dark-gray",4,this.calendarID+"-cancel")
}var I=Calendar.createElement("tfoot",R);
E=false;
F=Calendar.createElement("tr",I);
F.className="footrow";
B=D(Calendar.getText("SEL_DATE"),8,300);
B.className="ttip";
if(this.isPopup){B.ttip=Calendar.getText("DRAG_TO_MOVE");
B.title=B.ttip;
B.style.cursor="move"
}this.tooltips=B;
K=Calendar.createElement("div",this.element);
K.id=this.calendarID+"-month-combo";
this.monthsCombo=K;
K.className="combo";
for(P=0;
P<Calendar.getText("MN").length;
++P){var O=Calendar.createElement("div");
O.className=Calendar.is_ie?"label-IEfix":"label";
O.month=P;
O.innerHTML=Calendar.getText("SMN")[P];
K.appendChild(O)
}K=Calendar.createElement("div",this.element);
K.id=this.calendarID+"-year-combo";
this.yearsCombo=K;
K.className="combo";
for(P=12;
P>0;
--P){var N=Calendar.createElement("div");
N.className=Calendar.is_ie?"label-IEfix":"label";
K.appendChild(N)
}this._init(this.firstDayOfWeek,this.date);
H.appendChild(this.element)
};
Calendar.changeTimeMouseUp=function(A){changeTimeMouseUp(A);
Calendar.onUpdateTime()
};
Calendar.changeTimeMouseDown=function(A){var B=this;
if(Calendar.is_ie){changeTimeMouseDown(null,A.target.id,"inputTime-spinner",B.minIncr,B.time24)
}else{changeTimeMouseDown(A,A.target.id.replace("-s",""),"inputTime-spinner",1,B.time24)
}};
Calendar.validateHourKeyUp=function(A){validateHourKeyUp(A,cal.time24)
};
Calendar._keyEvent=function(M){if(!window.calendar){return false
}(Calendar.is_ie)&&(M=window.event);
if(Calendar.is_ie){if(M.srcElement&&M.srcElement.tagName=="INPUT"){return true
}}else{if(M.target&&M.target.tagName=="INPUT"){return true
}}var A=window.calendar;
var J=Calendar.is_webkit||Calendar.is_ie?true:M.type=="keypress";
if(M.ctrlKey){switch(M.keyCode){case 37:J&&Calendar.cellClick(A._nav_pm);
break;
case 38:J&&Calendar.cellClick(A._nav_py);
break;
case 39:J&&Calendar.cellClick(A._nav_nm);
break;
case 40:J&&Calendar.cellClick(A._nav_ny);
break;
default:return false
}}else{switch(M.keyCode){case 9:var B=window.document.getElementById(A.calendarID+"-h");
B&&B.select();
break;
case 32:Calendar.cellClick(A._nav_now);
break;
case 27:J&&A.callCloseHandler();
break;
case 37:case 38:case 39:case 40:if(J){var N=M.keyCode;
var F,O,L,H,D,E;
F=N==37||N==38;
E=(N==37||N==39)?1:7;
function C(){D=A.currentDateEl;
var K=D.pos;
O=K&15;
L=K>>4;
H=A.ar_days[L][O]
}C();
function G(){var K=new Date(A.date);
K.setDate(K.getDate()-E);
A.setDate(K)
}function I(){var K=new Date(A.date);
K.setDate(K.getDate()+E);
A.setDate(K)
}while(1){switch(N){case 37:if(--O>=0){H=A.ar_days[L][O]
}else{O=6;
N=38;
continue
}break;
case 38:if(--L>=0){H=A.ar_days[L][O]
}else{G();
C()
}break;
case 39:if(++O<7){H=A.ar_days[L][O]
}else{O=0;
N=40;
continue
}break;
case 40:if(++L<A.ar_days.length){H=A.ar_days[L][O]
}else{I();
C()
}break
}break
}if(H){if(!H.disabled){Calendar.cellClick(H)
}else{if(F){G()
}else{I()
}}}}break;
case 13:if(J){Calendar.cellClick(A.currentDateEl,M)
}break;
default:return false
}}return Calendar.stopEvent(M)
};
Calendar.prototype._init=function(I,S){var P=new Date();
this.table.style.visibility="hidden";
var F=S.getFullYear();
if(F<this.minYear){F=this.minYear;
S.setFullYear(F)
}else{if(F>this.maxYear){F=this.maxYear;
S.setFullYear(F)
}}this.firstDayOfWeek=I;
this.date=new Date(S);
var T=S.getMonth();
var Q=navigator.appName;
if(Q=="Netscape"){this.title.innerHTML=Calendar.getText("MN")[T]+", "+F
}var V=S.getDate();
var U=S.getMonthDays();
S.setDate(1);
var M=(S.getDay()-this.firstDayOfWeek)%7;
if(M<0){M+=7
}S.setDate(-M);
S.setDate(S.getDate()+1);
if(this.showsCalendar){var C=this.tbody.firstChild;
var G=Calendar.getText("SMN")[T];
var K=[];
var J=Calendar.getText("WEEKEND");
for(var O=0;
O<6;
++O,C=C.nextSibling){var A=C.firstChild;
A.className="day wn";
A.innerHTML=S.getWeekNumber();
A=A.nextSibling;
C.className="daysrow";
var R=false;
var B=K[O]=[];
for(var N=0;
N<7;
++N,A=A.nextSibling,S.setDate(S.getDate()+1)){var D=S.getDate();
var E=S.getDay();
A.className="day";
A.pos=O<<4|N;
B[N]=A;
var H=(S.getMonth()==T);
if(!H){if(this.showsOtherMonths){A.className+=" othermonth";
A.otherMonth=true
}else{A.className="emptycell";
A.innerHTML="&nbsp;";
A.disabled=true;
continue
}}else{A.otherMonth=false;
R=true
}A.disabled=false;
A.innerHTML=this.getDateText?this.getDateText(S,D):D;
if(typeof this.getDateStatus=="function"){var L=this.getDateStatus(S,F,T,D);
if(L===true){A.className+=" disabled";
A.disabled=true
}else{if(/disabled/i.test(L)){A.disabled=true
}A.className+=" "+L
}}if(!A.disabled){A.caldate=new Date(S);
A.ttip="_";
if(H&&D==V){A.className+=" selected";
this.currentDateEl=A
}if(S.getFullYear()==P.getFullYear()&&S.getMonth()==P.getMonth()&&D==P.getDate()){A.className+=" today";
A.ttip+=Calendar.getText("PART_TODAY")
}if(J.indexOf(E.toString())!=-1){A.className+=A.otherMonth?" oweekend":" weekend"
}}}if(!(R||this.showsOtherMonths)){C.className="emptyrow"
}}this.ar_days=K;
this.monthSpan.innerText=Calendar.getText("MN")[T]+",";
this.yearSpan.innerText=F;
this.caption.innerText=Calendar.getText("MN")[T]+", "+F
}this.onSetTime();
this.table.style.visibility="visible"
};
Calendar.prototype.setDate=function(A){if(!A.equalsTo(this.date)){this._init(this.firstDayOfWeek,A)
}};
Calendar.prototype.refresh=function(){this._init(this.firstDayOfWeek,this.date)
};
Calendar.prototype.setFirstDayOfWeek=function(A){this._init(A,this.date);
this._displayWeekdays()
};
Calendar.prototype.setDateStatusHandler=Calendar.prototype.setDisabledHandler=function(A){this.getDateStatus=A
};
Calendar.prototype.setRange=function(A,B){this.minYear=A;
this.maxYear=B
};
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 A=this.element.parentNode;
A.removeChild(this.element);
Calendar._C=null;
window.calendar=null
};
Calendar.prototype.reparent=function(B){var A=this.element;
A.parentNode.removeChild(A);
B.appendChild(A)
};
Calendar._checkCalendar=function(B){if(!window.calendar){return false
}var A=Calendar.is_ie?Calendar.getElement(B):Calendar.getTargetElement(B);
for(;
A!=null&&A!=calendar.element;
A=A.parentNode){}if(A==null){window.calendar.callCloseHandler();
return Calendar.stopEvent(B)
}};
Calendar.prototype.show=function(){var E=this.table.getElementsByTagName("tr");
for(var D=E.length;
D>0;
){var F=E[--D];
Calendar.removeClass(F,"rowhilite");
var C=F.getElementsByTagName("td");
for(var B=C.length;
B>0;
){var A=C[--B];
Calendar.removeClass(A,"hilite");
Calendar.removeClass(A,"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(A,C){var B=this.element.style;
B.left=A+"px";
B.top=C+"px";
this.show()
};
Calendar.prototype.showAtElement=function(B,C){var A=this;
var D=Calendar.getAbsolutePos(B);
if(!C||typeof C!="string"){this.showAt(D.x,D.y+B.offsetHeight);
return true
}this.element.style.display="block";
Calendar.continuation_for_the_khtml_browser=function(){var E=A.element.offsetWidth;
var G=A.element.offsetHeight;
A.element.style.display="none";
var F=C.substr(0,1);
var H="l";
if(C.length>1){H=C.substr(1,1)
}switch(F){case"T":D.y-=G;
break;
case"B":D.y+=B.offsetHeight;
break;
case"C":D.y+=(B.offsetHeight-G)/2;
break;
case"t":D.y+=B.offsetHeight-G;
break;
case"b":break
}switch(H){case"L":D.x-=E;
break;
case"R":D.x+=B.offsetWidth;
break;
case"C":D.x+=(B.offsetWidth-E)/2;
break;
case"r":D.x+=B.offsetWidth-E;
break;
case"l":break
}D.width=E;
D.height=G+40;
A.monthsCombo.style.display="none";
fixPosition(D);
A.showAt(D.x,D.y)
};
if(Calendar.is_khtml){setTimeout("Calendar.continuation_for_the_khtml_browser()",10)
}else{Calendar.continuation_for_the_khtml_browser()
}};
Calendar.prototype.setDateFormat=function(A){this.dateFormat=A
};
Calendar.prototype.setTtDateFormat=function(A){this.ttDateFormat=A
};
Calendar.prototype.parseDate=function(B,A){if(!A){A=this.dateFormat
}var C=new Object();
this.setDate(parseDate(B,A,C));
return C.nbf>0
};
function parseDate(J,B,A){var K=0;
var C=-1;
var H=0;
var M=J.split(/\W+/);
var L=B.match(/%./g);
var G=0,F=0;
var N=0;
var E=0;
var D=0;
for(G=0;
G<M.length;
++G){if(!M[G]){continue
}D++;
switch(L[G]){case"%d":case"%e":H=parseInt(M[G],10);
break;
case"%m":C=parseInt(M[G],10)-1;
break;
case"%Y":case"%y":K=parseInt(M[G],10);
(K<100)&&(K+=(K>29)?1900:2000);
break;
case"%b":case"%B":for(F=0;
F<12;
++F){if(Calendar.getText("MN")[F].substr(0,M[G].length).toLowerCase()==M[G].toLowerCase()){C=F;
break
}}break;
case"%H":case"%I":case"%k":case"%l":N=parseInt(M[G],10);
break;
case"%P":case"%p":if(/pm/i.test(M[G])&&N<12){N+=12
}break;
case"%M":E=parseInt(M[G],10);
break
}}if(K!=0&&C!=-1&&H!=0){A.nbf=D;
return new Date(K,C,H,N,E,0)
}K=0;
C=-1;
H=0;
for(G=0;
G<M.length;
++G){if(M[G].search(/[a-zA-Z]+/)!=-1){var O=-1;
for(F=0;
F<12;
++F){if(Calendar.getText("MN")[F].substr(0,M[G].length).toLowerCase()==M[G].toLowerCase()){O=F;
break
}}if(O!=-1){if(C!=-1){D++;
H=C+1
}D++;
C=O
}}else{if(parseInt(M[G],10)<=12&&C==-1){D++;
C=M[G]-1
}else{if(parseInt(M[G],10)>31&&K==0){D++;
K=parseInt(M[G],10);
(K<100)&&(K+=(K>29)?1900:2000)
}else{if(H==0&&M[G]!=0){D++;
H=M[G]
}}}}}if(K==0||C==-1||H==0){var I=new Date();
if(K==0){K=I.getFullYear()
}if(C==-1){C=I.getMonth()
}if(H==0){H=I.getDate()
}}A.nbf=D;
return new Date(K,C,H,N,E,0)
}Calendar.prototype.hideShowCovered=function(){Core.hideShowCovered(this.element,this.hidden)
};
Calendar.prototype._displayWeekdays=function(){var B=this.firstDayOfWeek;
var A=this.firstdayname;
var D=Calendar.getText("WEEKEND");
for(var C=0;
C<7;
++C){A.className="day name";
var E=(C+B)%7;
if(C){A.ttip=Calendar.getText("DAY_FIRST").replace("%s",Calendar.getText("DN")[E]);
A.title=A.ttip;
A.navtype=100;
A.calendar=this;
A.fdow=E;
Calendar._add_evs(A)
}if(D.indexOf(E.toString())!=-1){Calendar.addClass(A,"weekend")
}A.innerHTML=Calendar.getText("SDN")[(C+B)%7];
A.abbr=Calendar.getText("DN")[(C+B)%7];
A=A.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(B){var A=this.getFullYear();
if(typeof B=="undefined"){B=this.getMonth()
}if(((0==(A%4))&&((0!=(A%100))||(0==(A%400))))&&B==1){return 29
}else{return Date._MD[B]
}};
Date.prototype.getDayOfYear=function(){var A=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);
var C=new Date(this.getFullYear(),0,0,0,0,0);
var B=A-C;
return Math.floor(B/Date.DAY)
};
Date.prototype.getWeekNumber=function(){var C=new Date(this.getFullYear(),this.getMonth(),this.getDate(),0,0,0);
var B=C.getDay();
C.setDate(C.getDate()-(B+6)%7+3);
var A=C.valueOf();
C.setMonth(0);
C.setDate(4);
return Math.round((A-C.valueOf())/(7*86400000))+1
};
Date.prototype.equalsTo=function(A){return((this.getFullYear()==A.getFullYear())&&(this.getMonth()==A.getMonth())&&(this.getDate()==A.getDate())&&(this.getHours()==A.getHours())&&(this.getMinutes()==A.getMinutes()))
};
Date.prototype.print=function(I){var A=this.getMonth();
var H=this.getDate();
var J=this.getFullYear();
var L=this.getWeekNumber();
var M=this.getDay();
var Q={};
var N=this.getHours();
var B=(N>=12);
var F=(B)?(N-12):N;
var P=this.getDayOfYear();
if(F==0){F=12
}var C=this.getMinutes();
var G=this.getSeconds();
Q["%a"]=Calendar.getText("SDN")[M];
Q["%A"]=Calendar.getText("DN")[M];
Q["%b"]=Calendar.getText("SMN")[A];
Q["%B"]=Calendar.getText("MN")[A];
Q["%C"]=1+Math.floor(J/100);
Q["%d"]=(H<10)?("0"+H):H;
Q["%e"]=H;
Q["%H"]=(N<10)?("0"+N):N;
Q["%I"]=(F<10)?("0"+F):F;
Q["%j"]=(P<100)?((P<10)?("00"+P):("0"+P)):P;
Q["%k"]=N;
Q["%l"]=F;
Q["%m"]=(A<9)?("0"+(1+A)):(1+A);
Q["%M"]=(C<10)?("0"+C):C;
Q["%n"]="\n";
Q["%o"]=1+A;
Q["%p"]=B?"PM":"AM";
Q["%P"]=B?"pm":"am";
Q["%s"]=Math.floor(this.getTime()/1000);
Q["%S"]=(G<10)?("0"+G):G;
Q["%t"]="\t";
Q["%U"]=Q["%W"]=Q["%V"]=(L<10)?("0"+L):L;
Q["%u"]=M+1;
Q["%w"]=M;
Q["%y"]=(""+J).substr(2,2);
Q["%Y"]=J;
Q["%%"]="%";
var O=/%./g;
if(!Calendar.is_ie5&&!Calendar.is_khtml){return I.replace(O,function(R){return Q[R]||R
})
}var K=I.match(O);
for(var E=0;
E<K.length;
E++){var D=Q[K[E]];
if(D){O=new RegExp(K[E],"g");
I=I.replace(O,D)
}}return I
};
Date.prototype.__msh_oldSetFullYear=Date.prototype.setFullYear;
Date.prototype.setFullYear=function(B){var A=new Date(this);
A.__msh_oldSetFullYear(B);
if(A.getMonth()!=this.getMonth()){this.setDate(28)
}this.__msh_oldSetFullYear(B)
};
function showAtElement2(B,A,E,C){var D=Calendar.getAbsolutePos(A);
if(!E||typeof E!="string"){B.showAt(D.x,D.y+A.offsetHeight);
return true
}showAtElement2_=function(){B.style.display="block";
var F=B.offsetWidth;
var I=B.offsetHeight;
var H=E.substr(0,1);
var J="l";
if(E.length>1){J=E.substr(1,1)
}switch(H){case"T":D.y-=I;
break;
case"B":D.y+=A.offsetHeight;
break;
case"C":D.y+=(A.offsetHeight-I)/2;
break;
case"t":D.y+=A.offsetHeight-I;
break;
case"b":break
}switch(J){case"L":D.x-=F;
break;
case"R":D.x+=A.offsetWidth;
break;
case"C":D.x+=(A.offsetWidth-F)/2;
break;
case"r":D.x+=A.offsetWidth-F;
break;
case"l":break
}D.width=F;
D.height=I;
fixPosition(D);
if(C!=null){var G=Calendar.getAbsolutePos(C);
D.x-=G.x;
D.y-=G.y
}B.style.left=D.x+"px";
B.style.top=D.y+"px"
};
if(Calendar.is_khtml){setTimeout("showAtElement2_()",10)
}else{showAtElement2_()
}}function getScrollXY(){var A=0,B=0;
if(typeof (window.pageYOffset)=="number"){B=window.pageYOffset;
A=window.pageXOffset
}else{if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){B=document.body.scrollTop;
A=document.body.scrollLeft
}else{if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){B=document.documentElement.scrollTop;
A=document.documentElement.scrollLeft
}}}return{x:A,y:B}
}function fixPosition(D){if(D.x<0){D.x=0
}if(D.y<0){D.y=0
}var F=document.createElement("div");
var C=F.style;
C.position="absolute";
C.right=C.bottom=C.width=C.height="0px";
document.body.appendChild(F);
var B=Calendar.getAbsolutePos(F);
document.body.removeChild(F);
var E=getScrollXY();
B.x+=E.x;
B.y+=E.y;
var A=D.x+D.width-B.x;
if(A>0){D.x-=A
}A=D.y+D.height-B.y;
if(A>0){D.y-=A
}}function copyTime(A,B){A.setHours(B.getHours());
A.setMinutes(B.getMinutes())
}function dateHourToNormalizedHour(C,B){var A=false;
if(C){var A=(B>=12);
if(B>12){B-=12
}if(B==0){B=12
}}return new NormalizedHour(B,A)
}function normalizedHourToDateHour(B,A,C){if(B){if(C){A+=12;
if(A==24){A=12
}}else{if(A==12){A=0
}}}return A
}function NormalizedHour(A,B){this.isPm=B;
this.hours=A
}window.calendar=null;
Calendar.setup=function(I){function L(Q,R){if(typeof I[Q]=="undefined"){I[Q]=R
}}L("inputField",null);
L("displayArea",null);
L("button",null);
L("clearField",null);
L("eventName","click");
L("ifFormat","%Y/%m/%d");
L("daFormat","%Y/%m/%d");
L("singleClick",true);
L("disableFunc",null);
L("dateStatusFunc",I.disableFunc);
L("firstDay",0);
L("align","Br");
L("range",[1900,2999]);
L("weekNumbers",true);
L("flat",null);
L("flatCallback",null);
L("onSelect",null);
L("onClose",null);
L("onClear",null);
L("onDone",null);
L("onCancel",null);
L("onUpdate",null);
L("date",null);
L("cancelDate",I.date);
L("showsCalendar",true);
L("showsTime",false);
L("showsActionBar",I.showsTime);
L("minIncr",1);
L("strictMinIncr",true);
L("timeFormat","24");
L("electric",true);
L("step",2);
L("position",null);
L("cache",false);
L("showOthers",false);
var J=["inputField","displayArea","button","clearField"];
for(var K in J){if(typeof I[J[K]]=="string"){I[J[K]]=document.getElementById(I[J[K]])
}}if(!(I.flat||I.inputField||I.displayArea||I.button)){alert("Calendar.setup:\n  Nothing to setup (no fields found).  Please check your code");
return false
}if(I.displayArea){var F=I.inputField||I.displayArea;
var N=I.inputField?I.ifFormat:I.daFormat;
var G=F.value||F.innerHTML;
if(G=="emptied"){G=""
}var B={};
var E=parseDate(G,N,B);
if(B.nbf){I.displayArea.innerHTML=E.print(I.daFormat)
}else{var H=I.clearField?I.clearField.value||I.clearField.innerHTML:"";
I.displayArea.innerHTML=H
}}function M(R){var Q=R.params;
var S=(R.dateClicked||Q.electric);
if(S&&Q.flat){if(typeof Q.flatCallback=="function"){Q.flatCallback(R)
}else{alert("No flatCallback given -- doing nothing.")
}return false
}if(S&&Q.inputField){Q.inputField.value=R.date.print(Q.ifFormat);
if(typeof Q.inputField.onchange=="function"){Q.inputField.onchange()
}}if(S&&Q.displayArea){Q.displayArea.innerHTML=R.date.print(Q.daFormat)
}if(S&&Q.singleClick&&R.dateClicked&&!R.showsActionBar){R.callCloseHandler()
}if(S&&typeof Q.onUpdate=="function"){Q.onUpdate(R)
}}function D(R){var Q=R.params;
if(Q.flat){if(typeof Q.flatCallback=="function"){Q.flatCallback(R)
}else{alert("No flatCallback given -- doing nothing.")
}return false
}if(Q.inputField){Q.inputField.value="emptied";
if(typeof Q.inputField.onchange=="function"){Q.inputField.onchange()
}}if(Q.displayArea){Q.displayArea.innerHTML=R.clearText
}if(typeof Q.onUpdate=="function"){Q.onUpdate(R)
}R.hide()
}function C(Q){Q.hide()
}function O(Q){if(Q.cancelDate){Q.setDate(Q.cancelDate);
Q.callHandler()
}else{Q.callClearHandler()
}Q.hide()
}if(I.flat!=null){if(typeof I.flat=="string"){I.flat=document.getElementById(I.flat)
}if(!I.flat){alert("Calendar.setup:\n  Flat specified but can't find parent.");
return false
}var A=new Calendar(I.firstDay,I.date,I.onSelect||M,I.onClose||C,I.onClear||D,I.onDone||C,I.onCancel||O,I.inputField.id.replace(".inputrelevant",""));
A.showsCalendar=I.showsCalendar;
A.showsTime=I.showsTime;
A.showsActionBar=I.showsActionBar;
A.minIncr=I.minIncr;
A.strictMinIncr=I.strictMinIncr;
A.time24=(I.timeFormat=="24");
A.params=I;
A.weekNumbers=I.weekNumbers;
A.setRange(I.range[0],I.range[1]);
A.setDateStatusHandler(I.dateStatusFunc);
A.create(I.flat);
A.show();
return false
}var P=I.button||I.displayArea||I.inputField;
P["on"+I.eventName]=function(){if(typeof (P.disabled)=="undefined"||P.disabled==false){var Q=I.inputField||I.displayArea;
var R=I.inputField?I.ifFormat:I.daFormat;
var V=false;
var T=window.calendar;
if(!(T&&I.cache)){window.calendar=T=new Calendar(I.firstDay,I.date,I.onSelect||M,I.onClose||C,I.onClear||D,I.onDone||C,I.onCancel||O,I.inputField.id.replace(".inputrelevant",""));
T.showsCalendar=I.showsCalendar;
T.showsTime=I.showsTime;
T.showsActionBar=I.showsActionBar;
T.minIncr=I.minIncr;
T.strictMinIncr=I.strictMinIncr;
T.time24=(I.timeFormat=="24");
T.weekNumbers=I.weekNumbers;
V=true
}else{if(I.date){T.setDate(I.date)
}T.hide()
}T.showsOtherMonths=I.showOthers;
T.yearStep=I.step;
T.setRange(I.range[0],I.range[1]);
T.params=I;
T.setDateStatusHandler(I.dateStatusFunc);
T.setDateFormat(R);
if(V){T.create()
}var U=Q.value||Q.innerHTML;
if(U=="emptied"){U=""
}var S=T.parseDate(U);
T.cancelDate=I.cancelDate;
if(!I.cancelDate&&S){T.cancelDate=new Date(T.date.getTime())
}T.clearText=I.clearField?I.clearField.value||I.clearField.innerHTML:"";
T.refresh();
if(!I.position){T.showAtElement(I.button||I.displayArea||I.inputField,I.align)
}else{T.showAt(I.position[0],I.position[1])
}}if(typeof event!="undefined"){event.returnValue=false
}return false
}
};
Calendar.getText=function(B){if(!Calendar._texts){var A={};
A.INFO=calendarRes._g("aboutCommandTT");
A.ABOUT=calendarRes._g("aboutContent1")+"\n"+calendarRes._g("aboutContent1")+"\n"+calendarRes._g("aboutContent2")+"\n"+calendarRes._g("aboutContent3")+"\n"+calendarRes._g("aboutContent4")+"\n"+calendarRes._g("aboutContent5")+"\n"+calendarRes._g("aboutContent6")+"\n"+calendarRes._g("aboutContent7")+"\n";
A.ABOUT_TIME="\n\n"+calendarRes._g("aboutTimeContent1")+"\n"+calendarRes._g("aboutTimeContent5")+"\n"+calendarRes._g("aboutTimeContent6")+"\n"+calendarRes._g("aboutTimeContent7");
A.PREV_YEAR=calendarRes._g("previousYearCommandTT");
A.PREV_MONTH=calendarRes._g("previousMonthCommandTT");
A.TODAY=calendarRes._g("todayCommand");
A.GO_TODAY=calendarRes._g("todayCommandTT");
A.NEXT_MONTH=calendarRes._g("nextMonthCommandTT");
A.NEXT_YEAR=calendarRes._g("nextYearCommandTT");
A.SEL_DATE=calendarRes._g("calendarMainTT");
A.PART_TODAY=calendarRes._g("todayParenthesis");
A.DAY_FIRST=calendarRes._g("dayDisplayedFirstCommandTT","%s");
A.CLOSE=calendarRes._g("closeCommandTT");
A.CLEAR=calendarRes._g("eraseCommand");
A.DONE=calendarRes._g("doneCommand");
A.CANCEL=calendarRes._g("cancelCommand");
A.WK=calendarRes._g("week");
A.WKABBR=calendarRes._g("weekTT");
A.DRAG_TO_MOVE=calendarRes._g("dragAndDrop");
A.TIME="??Time:";
A.TIME_PART="??(Shift-)Click or drag to change value";
A.WEEKEND="0,6";
A.TT_DATE_FORMAT="%a, %b %e";
A.DN=[weekDaysRes._g("sunday"),weekDaysRes._g("monday"),weekDaysRes._g("tuesday"),weekDaysRes._g("wednesday"),weekDaysRes._g("thursday"),weekDaysRes._g("friday"),weekDaysRes._g("saturday"),weekDaysRes._g("sunday")];
A.SDN=[weekDaysAbbrRes._g("sundayAbbrev"),weekDaysAbbrRes._g("mondayAbbrev"),weekDaysAbbrRes._g("tuesdayAbbrev"),weekDaysAbbrRes._g("wednesdayAbbrev"),weekDaysAbbrRes._g("thursdayAbbrev"),weekDaysAbbrRes._g("fridayAbbrev"),weekDaysAbbrRes._g("saturdayAbbrev"),weekDaysAbbrRes._g("sundayAbbrev")];
A.MN=[monthsRes._g("january"),monthsRes._g("february"),monthsRes._g("march"),monthsRes._g("april"),monthsRes._g("may"),monthsRes._g("june"),monthsRes._g("july"),monthsRes._g("august"),monthsRes._g("september"),monthsRes._g("october"),monthsRes._g("november"),monthsRes._g("december")];
A.SMN=[monthsAbbrRes._g("januaryAbbrev"),monthsAbbrRes._g("februaryAbbrev"),monthsAbbrRes._g("marchAbbrev"),monthsAbbrRes._g("aprilAbbrev"),monthsAbbrRes._g("mayAbbrev"),monthsAbbrRes._g("juneAbbrev"),monthsAbbrRes._g("julyAbbrev"),monthsAbbrRes._g("augustAbbrev"),monthsAbbrRes._g("septemberAbbrev"),monthsAbbrRes._g("octoberAbbrev"),monthsAbbrRes._g("novemberAbbrev"),monthsAbbrRes._g("decemberAbbrev")];
Calendar._texts=A
}return Calendar._texts[B]
};
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(A){this.url=A;
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(B){if(this.callinprogress){throw"Call in progress"
}this.userhandler=B;
this.xmlhttp.open("GET",this.url,true);
var A=this;
this.xmlhttp.onreadystatechange=function(){A.stateChangeCallback(A)
};
this.xmlhttp.send(null)
};
HTTPClient.prototype.stateChangeCallback=function(B){switch(B.xmlhttp.readyState){case HTTP_INIT:try{B.userhandler.onInit()
}catch(C){}break;
case HTTP_CONNECTED:try{if(B.xmlhttp.status!=HTTP_OK){B.userhandler.onError(B.xmlhttp.status,B.xmlhttp.statusText);
B.xmlhttp.abort();
B.callinprogress=false
}}catch(C){}break;
case HTTP_IN_PROGRESS:try{var A;
try{A=B.xmlhttp.getResponseHeader("Content-Length")
}catch(C){A=NaN
}B.userhandler.onProgress(B.xmlhttp.responseText,A)
}catch(C){}break;
case HTTP_COMPLETE:try{if(B.xmlhttp.status==HTTP_OK){B.userhandler.onLoad(B.xmlhttp.responseXML)
}else{B.userhandler.onError(B.xmlhttp.status,B.xmlhttp.statusText)
}}catch(C){}finally{B.callinprogress=false
}break
}};
function EchoHandler(){}EchoHandler.prototype.onInit=function(){this.echo("About to send request<br>")
};
EchoHandler.prototype.onError=function(A,B){this.echo("Error: "+A+": "+B+"<br>")
};
EchoHandler.prototype.onProgress=function(B,A){this.echo("Downloaded "+B.length+" of "+A+"<br>")
};
EchoHandler.prototype.onLoad=function(A){this.echo("<pre>"+A+"</pre>")
};
EchoHandler.prototype.echo=function(A){document.status=A
};
addEvent(window,"load",convertTrees);
function setDefault(A,B){if(typeof (window[A])=="undefined"||window[A]==null){window[A]=B
}}function expandTree(B){var A=document.getElementById(B);
if(A==null){return false
}expandCollapseList(A,nodeOpenClass,null,true)
}function collapseTree(B){var A=document.getElementById(B);
if(A==null){return false
}expandCollapseList(A,nodeClosedClass,null,true)
}function expandToItem(C,E){var B=document.getElementById(C);
if(B==null){return false
}var A=expandCollapseList(B,nodeOpenClass,E,true);
if(A){var D=document.getElementById(E);
if(D.scrollIntoView){D.scrollIntoView(false)
}}}function expandCollapseList(D,H,F,G){if(!D.childNodes||D.childNodes.length==0){return false
}for(var A=0;
A<D.childNodes.length;
A++){var J=D.childNodes[A];
if(F!=null&&J.id==F){return true
}if(J.nodeName=="LI"){var E=false;
for(var B=0;
B<J.childNodes.length;
B++){var I=J.childNodes[B];
if(I.nodeName=="UL"){E=true;
var C=expandCollapseList(I,H,F,G);
if(F!=null&&C){J.className=H;
return G
}}}if(E&&F==null){J.className=H
}}}}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 
}var C=document.getElementsByTagName("ul");
for(var B=0;
B<C.length;
B++){var A=C[B];
if(A.className==treeClass){convertTree(A)
}}}function convertTree(A){var E=document.jsfForm()[A.id+"-s"];
if(E!=null&&E.value!=""){var C=E.value;
var D=A.id+"-"+C;
var B=findItemLabel(A.id,D);
addClass(B,nodeLabelSelectedClass);
if(B.scrollIntoView){B.scrollIntoView(false)
}}}function processList(A,C){if(!C.childNodes||C.childNodes.length==0){return 
}for(var B=0;
B<C.childNodes.length;
B++){var D=C.childNodes[B];
if(D.nodeName=="LI"){processItem(A,D)
}}}function processItem(D,G){var C=false;
for(var B=0;
B<G.childNodes.length;
B++){var H=G.childNodes[B];
if(H.nodeName=="UL"){C=true;
processList(D,H)
}}var I=document.createElement("SPAN");
I.className=nodeSignClass;
if(C||hasClass(G,nodeMoreClass)){G.className=C?nodeOpenClass:nodeClosedClass;
G.getItems=!C;
I.onclick=onExpandCollapseClickSelf
}else{G.className=nodeLeafClass;
I.onclick=onClickReturnFalse
}I.appendChild(document.createTextNode("\u00A0"));
G.insertBefore(I,G.firstChild);
var F=document.createElement("SPAN");
F.className=nodeIconClass;
F.onclick=onClickReturnFalse;
F.appendChild(document.createTextNode("\u00A0"));
G.insertBefore(F,I.nextSibling);
var E=document.createElement("SPAN");
E.className=nodeLabelClass;
if(isSelectedItem(D.id,G.id)){addClass(E,nodeLabelSelectedClass)
}E.onclick=onS3ClickSelf;
E.onmouseover=onS3MouseOverSelf;
E.onmouseout=onS3MouseOutSelf;
var A=F.nextSibling;
G.removeChild(A);
E.appendChild(A);
G.insertBefore(E,F.nextSibling)
}function onExpandCollapseClick(C){var E=C.parentNode;
var A=E.className==nodeOpenClass;
E.className=A?nodeClosedClass:nodeOpenClass;
var D=findRootId(C);
addItemState(D,E.id,A);
var F=false;
for(var B=0;
B<E.childNodes.length&&!F;
B++){if(E.childNodes[B].nodeName=="UL"){F=true
}}if(!F){E.getItems=false;
getItems(D,E.id)
}return false
}function onExpandCollapseClickSelf(){onExpandCollapseClick(this)
}function onClickReturnFalse(){return false
}function onS3ClickSelf(){return onS3Click(this)
}function onS3Click(A){var B=findRootId(A);
selectItem(B,A.parentNode.id);
return false
}function onS3MouseOverSelf(){return onS3MouseOver(this)
}function onS3MouseOver(A){addClass(A,"mouseover");
return false
}function onS3MouseOutSelf(){return onS3MouseOut(this)
}function onS3MouseOut(A){removeClass(A,"mouseover");
return false
}function findRootId(A){var B=A.parentNode;
while(B!=null&&(B.parentNode.nodeName=="UL"||B.parentNode.nodeName=="LI")){B=B.parentNode
}return B.id
}function addItemState(D,F,A){var B=document.jsfForm()[D+"-x"];
if(B!=null){var E=B.value;
var C=F.substr(D.length+1);
E=removeItemState(E,C);
E+=(E.length>0?" ":"")+(A?"-":"+")+C;
B.value=E
}}function removeItemState(C,B){var D=" -"+B+" ";
C=" "+C+" ";
var A=C.indexOf(D);
if(A!=-1){C=C.substr(0,A+1)+C.substr(A+D.length)
}D=" +"+B+" ";
A=C.indexOf(D);
if(A!=-1){C=C.substr(0,A+1)+C.substr(A+D.length)
}return C.substr(1,C.length-2)
}function selectItem(D,E){var C=getSelectedItem(D);
if(C!=null){var B=findItemLabel(D,C);
removeClass(B,nodeLabelSelectedClass)
}setSelectedItem(D,E);
var A=findItemLabel(D,E);
addClass(A,nodeLabelSelectedClass)
}function isSelectedItem(C,D){var B=document.jsfForm()[C+"-s"];
if(B!=null){var A=B.value;
return D==C+"-"+A
}return false
}function getSelectedItem(C){var B=document.jsfForm()[C+"-s"];
if(B!=null){var A=B.value;
if(A.length>0){return C+"-"+A
}}return null
}function setSelectedItem(C,D){var B=document.jsfForm()[C+"-s"];
if(B!=null){var A=D.substr(C.length+1);
B.value=A
}}function findItemLabel(C,D){var A=document.getElementById(D);
if(A!=null){var E=A.firstChild;
for(var B=0;
E!=null;
E=E.nextSibling){if(E.tagName=="SPAN"){if(++B==3){return E
}}}}return null
}function isChildItem(B,A){if(A==null||A.length<=B.length){return false
}return B==A.substr(0,B.length)&&A.charAt(B.length)=="-"
}function getItems(E,F){var C=document.jsfForm()[E+"-r"];
var B=C.value;
B=addParameter(B,"treeId",E);
B=addParameter(B,"nodeId",F.substr(E.length+1));
B=addParameter(B,"formId",window.document.jsfForm().id);
var D=new TreeHandler(E,F);
var A=new HTTPClient();
A.init(B);
A.asyncGET(D)
}function TreeHandler(A,B){this.treeId=A;
this.itemId=B;
this.fallback=new EchoHandler()
}TreeHandler.prototype.onInit=function(){this.fallback.onInit()
};
TreeHandler.prototype.onError=function(A,B){this.fallback.onError(A,B)
};
TreeHandler.prototype.onProgress=function(B,A){this.fallback.onProgress(B,A)
};
TreeHandler.prototype.onLoad=function(A){loadItems(this.treeId,this.itemId,A)
};
function loadItems(F,J,D){var H=D.documentElement.childNodes;
for(var C=0;
C<H.length;
C++){var N=H.item(C);
if(N.nodeType!=ElementUtils.ELEMENT_NODE){continue
}var J=N.getAttribute("id");
var M=document.getElementById(J);
if(M!=null){window.status="Loading item "+J+"...";
var A=new Array();
var B=new Array();
var G=M.getElementsByTagName("INPUT");
for(var C=0;
C<G.length;
C++){if(typeof (G[C].value)!="undefined"){A[G[C].id]=G[C].value
}if(typeof (G[C].checked)!="undefined"){B[G[C].id]=G[C].checked
}}loadItem(F,J,N,M);
var I=document.getElementById(F);
processItem(I,M);
var E=M.getElementsByTagName("INPUT");
for(var C=0;
C<E.length;
C++){var L=A[E[C].id];
if(L!=null&&typeof (E[C].value)!="undefined"){E[C].value=L
}var K=B[E[C].id];
if(K!=null&&typeof (E[C].checked)!="undefined"){E[C].checked=K
}}}else{window.status="Invalid response: item "+J+" not found."
}}}function loadItem(E,H,A,B){while(B.firstChild!=null){removeEvent(B.firstChild,"click",B.firstChild.onclick);
removeEvent(B.firstChild,"mouseover",B.firstChild.onmouseover);
removeEvent(B.firstChild,"mouseout",B.firstChild.onmouseout);
B.removeChild(B.firstChild)
}var I=null;
var J=A.firstChild;
for(;
J!=null;
J=J.nextSibling){if(J.nodeType==DOM_ELEMENT_NODE&&J.tagName=="ul"){I=J
}else{var F=ElementUtils.cloneItem(J);
if(F!=null){B.innerHTML+=F.outerHTML
}}}if(I!=null){var G=cloneItem(I);
B.innerHTML+=G.outerHTML
}var D=B.getElementsByTagName("INPUT");
for(var C=0;
C<D.length;
C++){D[C].name=D[C].id
}};
var EditorUtils={};
EditorUtils.createEditor=function(A,C){var B=this._setupEditor(A,C);
B.Create()
};
EditorUtils.replaceTextarea=function(A,C){var B=this._setupEditor(A,C);
B.ReplaceTextarea()
};
EditorUtils._setupEditor=function(B,F){var E=new FCKeditor(B);
var D=typeof contextPath_=="string";
var H;
if(useVerStatFiles_){H=D?contextPath_+"/"+buildVersion_+"/akira/pub/":"../"
}else{H=D?contextPath_+"/akira/pub/":"../"
}E.BasePath=H+"fckeditor/";
var C=(F&&F.skin)||"silver";
var A;
if(H.charAt(0)=="/"){A=H+"fckeditor/editor/skins/"+C+"/"
}else{A="skins/"+C+"/"
}E.Config.SkinPath=A;
E.Width=(F&&F.width)||800;
E.Height=(F&&F.height)||500;
E.ToolbarSet=(F&&F.toolbarset)||"Basic";
E.Config.AutoDetectLanguage=false;
E.Config.DefaultLanguage=(F&&F.locale)||"en";
E.Config.SpellCheckerSkin=(F&&F.SpellCheckerSkin)||"liquid";
E.Config.LinkDlgHideTarget=(F&&F.LinkDlgHideTarget)||"false";
E.Config.ImageDlgHideLink=(F&&F.imageDlgHideLink)||false;
if(F&&F.canSpellCheck==false){E.ToolbarSet=E.ToolbarSet+"_noSpellCheck"
}if(F.SpellCheckerURL){E.Config.SpellCheckerURL=F.SpellCheckerURL
}else{var G=D?contextPath_+"/akira/pub/":"../";
E.Config.SpellCheckerURL=G+"spellCheck.jsf"
}E.Config.debug=F.debug;
E.Config.modeFullPage=F.modeFullPage;
E.Config.formatOutput=F.formatOutput;
E.Config.formatSource=F.formatSource;
E.Config.hiddenButton=F.hiddenButton;
return E
};
EditorUtils.setHTMLText=function(B,A){var C=FCKeditorAPI.GetInstance(B);
C.SetHTML(A,true)
};
EditorUtils.getHTMLText=function(A){var B=FCKeditorAPI.GetInstance(A);
return B.GetXHTML(false)
};
EditorUtils.insertHtmlText=function(B,A){var C=FCKeditorAPI.GetInstance(B);
return C.InsertHtml(A)
};
EditorUtils.addListener=function(C,B,E){if(this.loaded){try{var D=FCKeditorAPI.GetInstance(C);
D.Events.AttachEvent(B,E)
}catch(A){setTimeout(function(){EditorUtils.addListener(C,B,E)
},10)
}}else{this.events[this.events.length]={editorId:C,eventName:B,listener:E}
}};
EditorUtils.loaded=false;
EditorUtils.events=[];
function FCKeditor_OnComplete(){EditorUtils.loaded=true;
for(var A=0,D=EditorUtils.events.length;
A<D;
A++){var C=EditorUtils.events[A];
var B=FCKeditorAPI.GetInstance(C.editorId);
B.Events.AttachEvent(C.eventName,C.listener)
}EditorUtils.events=[]
};
var _helpContexts=new Array();
var _helps=new Array();
var _defaultHelpContext=null;
var _activeHelpContext=null;
function HelpContext(D,C,B,A){this.id=D;
this.active=C;
this.helpPageURL=B;
if(A!=null&&A!=""&&A!="null"){this.forHelpId=A
}}function addNewHelpContext(D,C,B,A){var E=new HelpContext(D,C,B,A);
_helpContexts[D]=E;
if(C){_activeHelpContext=E
}if(_defaultHelpContext==null){_defaultHelpContext=E
}}function activateHelpContext(A){var B;
if(A==null){B=_defaultHelpContext
}else{B=_helpContexts[A]
}if(B!=null&&B!=_activeHelpContext){B.active=true;
_activeHelpContext=B;
if(B.forHelpId==null){B.forHelpId=_helps[0]
}refreshHelpContent(B.forHelpId,B.helpPageURL)
}}function refreshHelpContent(E,C){var B=findElementsEndingWithId(null,E+"_iframe",null,true)[0];
if(B!=null){var A=null;
if(B.childNodes>0){A=B.childNodes[0]
}if(A==null){try{A=document.createElement("IFRAME");
A.id=E+"_frame";
A.title=AccessibilityRes.helpIFrameTitle;
A.name=AccessibilityRes.helpIFrameName;
A.frameborder="no";
B.appendChild(A)
}catch(D){iframeHTML='<iframe id="'+E+'_frame" title="'+AccessibilityRes.helpIFrameTitle+'" name="'+AccessibilityRes.helpIFrameName+'" style="';
iframeHTML+='frameborder="no"';
iframeHTML+='"></iframe>';
B.innerHTML+=iframeHTML;
A=new Object();
A.document=new Object();
A.document.location=new Object();
A.document.location.iframe=document.getElementById(E+"_frame");
A.document.location.replace=function(H){this.iframe.src=H
}
}}if(navigator.userAgent.indexOf("Gecko")!=-1&&!A.contentDocument){var F="sendUIMessage2('"+C+"')";
setTimeout(F,10);
return false
}var G=getIFrameDoc(A);
if(G==null){return true
}A.src=C
}}function addNewHelpComponent(A){_helps.push(A)
};
function createAccessibleAlert(G,D,J,A,E,B,C,I){var F=createAlert(G,D,J,A,E,B,C,I);
if(F!=null){if(F.embeddedDialog!=null){var H=findElementsEndingWithId(document,F.embeddedDialog.dialogId+"-fr",null,true)[0];
if(H!=null){F.embeddedDialog.htmlContent=H.innerHTML;
H.innerHTML=""
}}else{var H=findElementsEndingWithId(document,G+".message",null,true)[0];
if(H!=null){F.htmlContent=H.innerHTML;
H.innerHTML=""
}}}return F
};

