var AWS=AWS||{};if(!AWS.AWSCALENDAR){AWS.AWSCALENDAR=function(){var b="BtnImg";var bp="tableCal";var l="tableBarCal";var a8="calendar";var o="titleBar";var x="content";var N="lblToday";var bq="trLblToday";var bc="fontLblToday";var G="decrMonth";var p="incrMonth";var a7="decrYear";var ad="incrYear";var br="gotoDateSelect";var aC="spanYear";var ai="spanMonth";var bf="divSelDay";var bd="tdLblDay";var aW="closeCal";var z="MON";var aT="TUE";var a5="WED";var aY="THU";var ae="FRI";var a6="SAT";var bt="SUN";var C="DMY";var j="DYM";var aH="MDY";var a="MYD";var ah="YMD";var bg="YDM";var K="DIV";var aS="WIN";var aa="WIN_MODAL";var r="NORTH";var n="SOUTH";var y="EAST";var ar="WEST";var u="NORTHEAST";var bo="SOUTHEAST";var Q="SOUTHWEST";var al="NORTHWEST";var ac="CENTER";var B="CalAWSTooltip";var bs=Array(31,0,31,30,31,30,31,31,30,31,30,31);var m,s;var H=new Date();var be=H.getDate();var ak=H.getMonth();var aG=H.getFullYear();var aB=new AWS.AWSGLOBALS.ResourceBundleCreator(AWS.CSTCAL?AWS.CSTCAL:"AWSCalendarMessage");var Z=new Array(aB.getString("JANUARY_NAME"),aB.getString("FEBRUARY_NAME"),aB.getString("MARCH_NAME"),aB.getString("APRIL_NAME"),aB.getString("MAY_NAME"),aB.getString("JUNE_NAME"),aB.getString("JULY_NAME"),aB.getString("AUGUST_NAME"),aB.getString("SEPTEMBER_NAME"),aB.getString("OCTOBER_NAME"),aB.getString("NOVEMBER_NAME"),aB.getString("DECEMBER_NAME"));var S;var aj;var h;var aQ;var aO;var X=null;var bb="CalAWSIFrame";function a1(bu){switch(bu.weekStartDay){case z:bu.tabDayName=new Array({LETTER1:aB.getString("MONDAY_LETTER1_NAME"),LETTER3:aB.getString("MONDAY_LETTER3_NAME")},{LETTER1:aB.getString("TUESDAY_LETTER1_NAME"),LETTER3:aB.getString("TUESDAY_LETTER3_NAME")},{LETTER1:aB.getString("WEDNESDAY_LETTER1_NAME"),LETTER3:aB.getString("WEDNESDAY_LETTER3_NAME")},{LETTER1:aB.getString("THURSDAY_LETTER1_NAME"),LETTER3:aB.getString("THURSDAY_LETTER3_NAME")},{LETTER1:aB.getString("FRIDAY_LETTER1_NAME"),LETTER3:aB.getString("FRIDAY_LETTER3_NAME")},{LETTER1:aB.getString("SATURDAY_LETTER1_NAME"),LETTER3:aB.getString("SATURDAY_LETTER3_NAME")},{LETTER1:aB.getString("SUNDAY_LETTER1_NAME"),LETTER3:aB.getString("SUNDAY_LETTER3_NAME")});break;case aT:bu.tabDayName=new Array({LETTER1:aB.getString("TUESDAY_LETTER1_NAME"),LETTER3:aB.getString("TUESDAY_LETTER3_NAME")},{LETTER1:aB.getString("WEDNESDAY_LETTER1_NAME"),LETTER3:aB.getString("WEDNESDAY_LETTER3_NAME")},{LETTER1:aB.getString("THURSDAY_LETTER1_NAME"),LETTER3:aB.getString("THURSDAY_LETTER3_NAME")},{LETTER1:aB.getString("FRIDAY_LETTER1_NAME"),LETTER3:aB.getString("FRIDAY_LETTER3_NAME")},{LETTER1:aB.getString("SATURDAY_LETTER1_NAME"),LETTER3:aB.getString("SATURDAY_LETTER3_NAME")},{LETTER1:aB.getString("SUNDAY_LETTER1_NAME"),LETTER3:aB.getString("SUNDAY_LETTER3_NAME")},{LETTER1:aB.getString("MONDAY_LETTER1_NAME"),LETTER3:aB.getString("MONDAY_LETTER3_NAME")});break;case a5:bu.tabDayName=new Array({LETTER1:aB.getString("WEDNESDAY_LETTER1_NAME"),LETTER3:aB.getString("WEDNESDAY_LETTER3_NAME")},{LETTER1:aB.getString("THURSDAY_LETTER1_NAME"),LETTER3:aB.getString("THURSDAY_LETTER3_NAME")},{LETTER1:aB.getString("FRIDAY_LETTER1_NAME"),LETTER3:aB.getString("FRIDAY_LETTER3_NAME")},{LETTER1:aB.getString("SATURDAY_LETTER1_NAME"),LETTER3:aB.getString("SATURDAY_LETTER3_NAME")},{LETTER1:aB.getString("SUNDAY_LETTER1_NAME"),LETTER3:aB.getString("SUNDAY_LETTER3_NAME")},{LETTER1:aB.getString("MONDAY_LETTER1_NAME"),LETTER3:aB.getString("MONDAY_LETTER3_NAME")},{LETTER1:aB.getString("TUESDAY_LETTER1_NAME"),LETTER3:aB.getString("TUESDAY_LETTER3_NAME")});break;case aY:bu.tabDayName=new Array({LETTER1:aB.getString("THURSDAY_LETTER1_NAME"),LETTER3:aB.getString("THURSDAY_LETTER3_NAME")},{LETTER1:aB.getString("FRIDAY_LETTER1_NAME"),LETTER3:aB.getString("FRIDAY_LETTER3_NAME")},{LETTER1:aB.getString("SATURDAY_LETTER1_NAME"),LETTER3:aB.getString("SATURDAY_LETTER3_NAME")},{LETTER1:aB.getString("SUNDAY_LETTER1_NAME"),LETTER3:aB.getString("SUNDAY_LETTER3_NAME")},{LETTER1:aB.getString("MONDAY_LETTER1_NAME"),LETTER3:aB.getString("MONDAY_LETTER3_NAME")},{LETTER1:aB.getString("TUESDAY_LETTER1_NAME"),LETTER3:aB.getString("TUESDAY_LETTER3_NAME")},{LETTER1:aB.getString("WEDNESDAY_LETTER1_NAME"),LETTER3:aB.getString("WEDNESDAY_LETTER3_NAME")});break;case ae:bu.tabDayName=new Array({LETTER1:aB.getString("FRIDAY_LETTER1_NAME"),LETTER3:aB.getString("FRIDAY_LETTER3_NAME")},{LETTER1:aB.getString("SATURDAY_LETTER1_NAME"),LETTER3:aB.getString("SATURDAY_LETTER3_NAME")},{LETTER1:aB.getString("SUNDAY_LETTER1_NAME"),LETTER3:aB.getString("SUNDAY_LETTER3_NAME")},{LETTER1:aB.getString("MONDAY_LETTER1_NAME"),LETTER3:aB.getString("MONDAY_LETTER3_NAME")},{LETTER1:aB.getString("TUESDAY_LETTER1_NAME"),LETTER3:aB.getString("TUESDAY_LETTER3_NAME")},{LETTER1:aB.getString("WEDNESDAY_LETTER1_NAME"),LETTER3:aB.getString("WEDNESDAY_LETTER3_NAME")},{LETTER1:aB.getString("THURSDAY_LETTER1_NAME"),LETTER3:aB.getString("THURSDAY_LETTER3_NAME")});break;case a6:bu.tabDayName=new Array({LETTER1:aB.getString("SATURDAY_LETTER1_NAME"),LETTER3:aB.getString("SATURDAY_LETTER3_NAME")},{LETTER1:aB.getString("SUNDAY_LETTER1_NAME"),LETTER3:aB.getString("SUNDAY_LETTER3_NAME")},{LETTER1:aB.getString("MONDAY_LETTER1_NAME"),LETTER3:aB.getString("MONDAY_LETTER3_NAME")},{LETTER1:aB.getString("TUESDAY_LETTER1_NAME"),LETTER3:aB.getString("TUESDAY_LETTER3_NAME")},{LETTER1:aB.getString("WEDNESDAY_LETTER1_NAME"),LETTER3:aB.getString("WEDNESDAY_LETTER3_NAME")},{LETTER1:aB.getString("THURSDAY_LETTER1_NAME"),LETTER3:aB.getString("THURSDAY_LETTER3_NAME")},{LETTER1:aB.getString("FRIDAY_LETTER1_NAME"),LETTER3:aB.getString("FRIDAY_LETTER3_NAME")});break;case bt:bu.tabDayName=new Array({LETTER1:aB.getString("SUNDAY_LETTER1_NAME"),LETTER3:aB.getString("SUNDAY_LETTER3_NAME")},{LETTER1:aB.getString("MONDAY_LETTER1_NAME"),LETTER3:aB.getString("MONDAY_LETTER3_NAME")},{LETTER1:aB.getString("TUESDAY_LETTER1_NAME"),LETTER3:aB.getString("TUESDAY_LETTER3_NAME")},{LETTER1:aB.getString("WEDNESDAY_LETTER1_NAME"),LETTER3:aB.getString("WEDNESDAY_LETTER3_NAME")},{LETTER1:aB.getString("THURSDAY_LETTER1_NAME"),LETTER3:aB.getString("THURSDAY_LETTER3_NAME")},{LETTER1:aB.getString("FRIDAY_LETTER1_NAME"),LETTER3:aB.getString("FRIDAY_LETTER3_NAME")},{LETTER1:aB.getString("SATURDAY_LETTER1_NAME"),LETTER3:aB.getString("SATURDAY_LETTER3_NAME")});break}}function a3(bu){if(!bu.isBoundCtrl){return true}else{switch(bu.popupType){case K:var bv=document.getElementById(a8+bu.calendarID);return(bv==null?false:bv.style.visibility=="visible");case aS:case aa:return((typeof(bu.winPopup)!="undefined")&&!bu.winPopup.closed)}}}function az(bu){var bv,bx;if(!AWS.AWSGLOBALS.ns4){var bw="<table style='width:100%' cellspacing='0' cellpadding='0'><tr><td align='center'";bw+="><font id='"+bc+bu.calendarID+"' color='"+bu.daysColor+"' class='"+bu.daysColorClass+"'>&nbsp;"+aB.getString("TODAY_NAME")+" "+AWS.AWSCTRLSCRIPT.SscDateVersTexte(aG*10000+(ak+1)*100+be)+"</font>";bw+="</td></tr><tr height='3px'><td></td></tr></table>";document.getElementById(N+bu.calendarID).innerHTML=bw;if(AWS.AWSGLOBALS.ie){bx="cursor:hand;"}else{bx="cursor:pointer;"}bv="<img id='"+G+bu.calendarID+"' style='"+bx+"' title='"+aB.getString("SCROLL_LEFT_MONTH").replace("'","&#39;")+"' class='AWSCalendarImgDecrMonth' border='0' onclick='AWS.AWSCALENDAR.onClickImgDecrMonth(this, "+bu.idVarCalAWS+")' onmouseout='AWS.AWSCALENDAR.onMouseOutImgIncrDecr()' onmousedown='AWS.AWSCALENDAR.onMouseDownImgDecrMonth(this, "+bu.idVarCalAWS+")' onmouseup='AWS.AWSCALENDAR.onMouseUpImgIncrDecr()'/>";bv+="<img id='"+a7+bu.calendarID+"' style='"+bx+"' title='"+aB.getString("SCROLL_LEFT_YEAR").replace("'","&#39;")+"' class='AWSCalendarImgDecrYear' border='0' onclick='AWS.AWSCALENDAR.onClickImgDecrYear(this, "+bu.idVarCalAWS+")' onmouseout='AWS.AWSCALENDAR.onMouseOutImgIncrDecr()' onmousedown='AWS.AWSCALENDAR.onMouseDownImgDecrYear(this, "+bu.idVarCalAWS+")' onmouseup='AWS.AWSCALENDAR.onMouseUpImgIncrDecr()'/>&nbsp";bv+="<img id='"+ad+bu.calendarID+"' style='"+bx+"' title='"+aB.getString("SCROLL_RIGHT_YEAR").replace("'","&#39;")+"' class='AWSCalendarImgIncrYear' border='0' onclick='AWS.AWSCALENDAR.onClickImgIncrYear(this, "+bu.idVarCalAWS+")' onmouseout='AWS.AWSCALENDAR.onMouseOutImgIncrDecr()' onmousedown='AWS.AWSCALENDAR.onMouseDownImgIncrYear(this, "+bu.idVarCalAWS+")' onmouseup='AWS.AWSCALENDAR.onMouseUpImgIncrDecr()'/>";bv+="<img id='"+p+bu.calendarID+"' style='"+bx+"' title='"+aB.getString("SCROLL_RIGHT_MONTH").replace("'","&#39;")+"' class='AWSCalendarImgIncrMonth' border='0' onclick='AWS.AWSCALENDAR.onClickImgIncrMonth(this, "+bu.idVarCalAWS+")' onmouseout='AWS.AWSCALENDAR.onMouseOutImgIncrDecr()' onmousedown='AWS.AWSCALENDAR.onMouseDownImgIncrMonth(this, "+bu.idVarCalAWS+")' onmouseup='AWS.AWSCALENDAR.onMouseUpImgIncrDecr()'/>";bv+="<img id='"+br+bu.calendarID+"' style='"+bx+"' title='"+aB.getString("GOTO_DATESEL").replace("'","&#39;")+"' class='AWSCalendarImgGotoDateSel' border='0' onclick='AWS.AWSCALENDAR.gotoDateSelected("+bu.idVarCalAWS+")' />&nbsp;";bv+="&nbsp;";if(bu.isBoundCtrl&&(bu.popupType==K)){bv+="<span style='cursor:move' onmousedown='AWS.AWSCALENDAR.startDrag(event, "+bu.idVarCalAWS+")' onmouseup='AWS.AWSCALENDAR.endDrag(event)'>"}bv+="<span id='"+ai+bu.calendarID+"' style='color:"+bu.titleColor+"' class='"+bu.titleColorClass+"'></span>&nbsp;";bv+="<span id='"+aC+bu.calendarID+"' style='color:"+bu.titleColor+"' class='"+bu.titleColorClass+"'></span>";if(bu.isBoundCtrl&&(bu.popupType==K)){bv+="</span>"}document.getElementById(o+bu.calendarID).innerHTML=bv;setBackgroundImageClass(G+bu.calendarID);setBackgroundImageClass(a7+bu.calendarID);setBackgroundImageClass(ad+bu.calendarID);setBackgroundImageClass(p+bu.calendarID);setBackgroundImageClass(br+bu.calendarID);if(!isNaN(bu.daySelected)){bu.monthDisplay=bu.monthSelected;bu.yearDisplay=bu.yearSelected;A(bu)}}}function I(bu){try{document.getElementById(a8+bu.calendarID).style.visibility="hidden";document.getElementById(bf+bu.calendarID+"_"+bu.daySelected).style.visibility="hidden"}catch(bv){}finally{if(X!=null){X.style.left="-1000px";X.style.top="-1000px";X.style.width=0;X.style.height=0}}}function ay(bu){var bv=document.getElementById(a8+bu.calendarID);X=document.getElementById(bb);if(X==null){X=document.createElement("iframe")}X.src="about:blank";X.setAttribute("id",bb);X.frameBorder="no";document.body.appendChild(X);X.style.position="absolute";X.style.width=bv.offsetWidth;X.style.height=bv.offsetHeight;X.style.left=bv.style.left;X.style.top=bv.style.top;X.style.visibility="visible"}function aK(){var bu=document.getElementById(B);if(bu==null){bu=document.createElement("div");bu.setAttribute("id",B);if(AWS.AWSGLOBALS.ie){bu.style.setAttribute("cssText","visibility:hidden;position:absolute;top:0px;left:0px;z-index:10;")}else{bu.setAttribute("style","visibility:hidden;position:absolute;top:0px;left:0px;z-index:10;")}document.body.insertBefore(bu,document.body.firstChild)}}function E(bw){var bv,bu;if(AWS.AWSGLOBALS.ie){bv=event.clientX;bu=event.clientY}else{bv=bw.pageX;bu=bw.pageY}aO.style.left=(h+bv-S)+"px";aO.style.top=(aQ+bu-aj)+"px";if(X!=null){X.style.left=aO.style.left;X.style.top=aO.style.top}return false}function f(){var bx=null,bv,bu;function bw(by){var bz=window.opener.getCSSRuleClass(by);if(bz==null){return}if(bx==null){bx='<style type="text/css">'}if(AWS.AWSGLOBALS.ie){bx=bx+bz.selectorText+"{"+bz.style.cssText+"}\n"}else{bx=bx+bz.cssText+"\n"}}for(bv=0;bv<arguments.length;bv++){if((arguments[bv]==null)||(arguments[bv]=="")){continue}if(typeof(arguments[bv])=="string"){bw(arguments[bv])}else{if(typeof(arguments[bv])=="object"&&((arguments[bv].constructor==Array)||arguments[bv].constructor.toString()==Array.toString())){for(bu=0;bu<arguments[bv].length;bu++){if((arguments[bv][bu]==null)||(arguments[bv][bu]=="")){continue}bw(arguments[bv][bu])}}}}if(bx!=null){bx+="</style>";document.write(bx)}}function L(bu){if(bu.daysColor!=""){return bu.daysColor}else{return bu.daysColorClassColor}}function aN(bu){if(bu.barColor!=""){return bu.barColor}else{return bu.barColorClassColor}}function ax(bu){return AWS.AWSGLOBALS.getCSSClassAttribute(bu,"color")}function ba(bu){if(AWS.AWSGLOBALS.ie){return AWS.AWSGLOBALS.getCSSClassAttribute(bu,"backgroundColor")}else{return AWS.AWSGLOBALS.getCSSClassAttribute(bu,"background-color")}}function bl(bC,by){var bv=ag(by);var bw;var bz,bA;var bx=by.getAttribute("_aws0");var bB=bx!=null?bx.split("\xA8"):null;if(bB){bA=bB[4];switch(bB[0]){case 0:bz=bB[7]=="1";break;case 1:bz=false;break}}else{bz=by.getAttribute("mandatory")=="true";bA=by.getAttribute("inputctrl")}if(bA!=null){bA=parseInt(bA)}bC.onChangeOnDateSel=false;switch(bC.type){case AWS.AWSGLOBALS.TA_DATE:if(bv==""){bC.onChangeOnDateSel=true;return aG*10000+(ak+1)*100+be}if(AWS.AWSCTRLSCRIPT.SscVerifDate(bv,bz,bA)==AWS.AWSGLOBALS.ISC_OK){return AWS.AWSCTRLSCRIPT.SscTexteVersDate(bv,bA)}else{bC.onChangeOnDateSel=true;return aG*10000+(ak+1)*100+be}case AWS.AWSGLOBALS.TA_NUM_E:case AWS.AWSGLOBALS.TA_NUM_P:if(AWS.AWSCTRLSCRIPT.SscVerifNumerique(bv,bC.typeLength,bC.typeNbDec,bz,bA)==AWS.AWSGLOBALS.ISC_OK){var bu;bw=AWS.AWSCTRLSCRIPT.SscTexteVersLongDouble(bv);if(bw<=0){bC.onChangeOnDateSel=true;return aG*10000+(ak+1)*100+be}if(bC.typeLength==6){bu=aR(bw,bC.dateFormat)}else{bu=aq(bw,bC.dateFormat)}if(AWS.AWSCTRLSCRIPT.controlerDate(bu)==AWS.AWSGLOBALS.ISC_OK){return bu}else{bC.onChangeOnDateSel=true;return aG*10000+(ak+1)*100+be}}else{bC.onChangeOnDateSel=true;return aG*10000+(ak+1)*100+be}}}function ag(bu){switch(bu.tagName){case"INPUT":return bu.value;case"SPAN":case"A":return bu.innerHTML}}function a4(bv,bw){switch(bv.tagName){case"INPUT":bv.value=bw;break;case"SPAN":case"A":bv.innerHTML=bw;var bu=bv.ownerDocument.getElementsByName(bv.id);for(i=0;i<bu.length;i++){if((bu[i].tagName=="INPUT")&&(bu[i].type=="hidden")){bu[i].value=bw;break}}break}}function q(bu){switch(bu){case z:return 1;case aT:return 2;case a5:return 3;case aY:return 4;case ae:return 5;case a6:return 6;case bt:return 7}}function J(bz,bv){var by,bx;var bA=window.opener.document.getElementById(bz);var bw,bu=bA.offsetLeft,bB=bA.offsetTop;bw=bA;do{bw=bw.offsetParent;bu+=bw.offsetLeft;bB+=bw.offsetTop}while(bw.tagName!="BODY");switch(bv.popupPosition){case r:if(!AWS.AWSGLOBALS.ie){by=bu+window.opener.screenX;bx=window.opener.screenY+bB-window.outerHeight+(window.opener.outerHeight-window.opener.innerHeight);if(window.opener.statusbar.visible){bx-=22}by-=window.opener.pageXOffset;bx-=window.opener.pageYOffset}else{by=bu+window.opener.screenLeft;bx=window.opener.screenTop+bB-window.height;if(document.documentElement&&document.documentElement.clientWidth){by-=window.opener.document.documentElement.scrollLeft;bx-=window.opener.document.documentElement.scrollTop}else{if(document.body){by-=window.opener.document.body.scrollLeft;bx-=window.opener.document.body.scrollTop}}}window.moveTo(by,bx);break;case n:if(!AWS.AWSGLOBALS.ie){by=bu+window.opener.screenX;bx=window.opener.screenY+bB+bA.offsetHeight+(window.opener.outerHeight-window.opener.innerHeight);if(window.opener.statusbar.visible){bx-=22}by-=window.opener.pageXOffset;bx-=window.opener.pageYOffset}else{by=bu+window.opener.screenLeft;bx=window.opener.screenTop+bB+bA.offsetHeight;if(document.documentElement&&document.documentElement.clientWidth){by-=window.opener.document.documentElement.scrollLeft;bx-=window.opener.document.documentElement.scrollTop}else{if(document.body){by-=window.opener.document.body.scrollLeft;bx-=window.opener.document.body.scrollTop}}}window.moveTo(by,bx);break;case y:if(!AWS.AWSGLOBALS.ie){by=bu+window.opener.screenX+bA.offsetWidth;bx=window.opener.screenY+bB+(window.opener.outerHeight-window.opener.innerHeight);if(window.opener.statusbar.visible){bx-=22}by-=window.opener.pageXOffset;bx-=window.opener.pageYOffset}else{by=bu+window.opener.screenLeft+bA.offsetWidth;bx=window.opener.screenTop+bB;if(document.documentElement&&document.documentElement.clientWidth){by-=window.opener.document.documentElement.scrollLeft;bx-=window.opener.document.documentElement.scrollTop}else{if(document.body){by-=window.opener.document.body.scrollLeft;bx-=window.opener.document.body.scrollTop}}}window.moveTo(by,bx);break;case ar:if(!AWS.AWSGLOBALS.ie){by=bu+window.opener.screenX-window.outerWidth;bx=window.opener.screenY+bB+(window.opener.outerHeight-window.opener.innerHeight);if(window.opener.statusbar.visible){bx-=22}by-=window.opener.pageXOffset;bx-=window.opener.pageYOffset}else{by=bu+window.opener.screenLeft-window.width;bx=window.opener.screenTop+bB;if(document.documentElement&&document.documentElement.clientWidth){by-=window.opener.document.documentElement.scrollLeft;bx-=window.opener.document.documentElement.scrollTop}else{if(document.body){by-=window.opener.document.body.scrollLeft;bx-=window.opener.document.body.scrollTop}}}window.moveTo(by,bx);break;case u:if(!AWS.AWSGLOBALS.ie){by=bu+window.opener.screenX+bA.offsetWidth;bx=window.opener.screenY+bB-window.outerHeight+(window.opener.outerHeight-window.opener.innerHeight);if(window.opener.statusbar.visible){bx-=22}by-=window.opener.pageXOffset;bx-=window.opener.pageYOffset}else{by=bu+window.opener.screenLeft+bA.offsetWidth;bx=window.opener.screenTop+bB-window.height;if(document.documentElement&&document.documentElement.clientWidth){by-=window.opener.document.documentElement.scrollLeft;bx-=window.opener.document.documentElement.scrollTop}else{if(document.body){by-=window.opener.document.body.scrollLeft;bx-=window.opener.document.body.scrollTop}}}window.moveTo(by,bx);break;case al:if(!AWS.AWSGLOBALS.ie){by=bu+window.opener.screenX-window.outerWidth;bx=window.opener.screenY+bB-window.outerHeight+(window.opener.outerHeight-window.opener.innerHeight);if(window.opener.statusbar.visible){bx-=22}by-=window.opener.pageXOffset;bx-=window.opener.pageYOffset}else{by=bu+window.opener.screenLeft-window.width;bx=window.opener.screenTop+bB-window.height;if(document.documentElement&&document.documentElement.clientWidth){by-=window.opener.document.documentElement.scrollLeft;bx-=window.opener.document.documentElement.scrollTop}else{if(document.body){by-=window.opener.document.body.scrollLeft;bx-=window.opener.document.body.scrollTop}}}window.moveTo(by,bx);break;case bo:if(!AWS.AWSGLOBALS.ie){by=bu+window.opener.screenX+bA.offsetWidth;bx=window.opener.screenY+bB+bA.offsetHeight+(window.opener.outerHeight-window.opener.innerHeight);if(window.opener.statusbar.visible){bx-=22}by-=window.opener.pageXOffset;bx-=window.opener.pageYOffset}else{by=bu+window.opener.screenLeft+bA.offsetWidth;bx=window.opener.screenTop+bB+bA.offsetHeight;if(document.documentElement&&document.documentElement.clientWidth){by-=window.opener.document.documentElement.scrollLeft;bx-=window.opener.document.documentElement.scrollTop}else{if(document.body){by-=window.opener.document.body.scrollLeft;bx-=window.opener.document.body.scrollTop}}}window.moveTo(by,bx);break;case Q:if(!AWS.AWSGLOBALS.ie){by=bu+window.opener.screenX-window.outerWidth;bx=window.opener.screenY+bB+bA.offsetHeight+(window.opener.outerHeight-window.opener.innerHeight);if(window.opener.statusbar.visible){bx-=22}by-=window.opener.pageXOffset;bx-=window.opener.pageYOffset}else{by=bu+window.opener.screenLeft-window.width;bx=window.opener.screenTop+bB+bA.offsetHeight;if(document.documentElement&&document.documentElement.clientWidth){by-=window.opener.document.documentElement.scrollLeft;bx-=window.opener.document.documentElement.scrollTop}else{if(document.body){by-=window.opener.document.body.scrollLeft;bx-=window.opener.document.body.scrollTop}}}window.moveTo(by,bx);break;case ac:if(!AWS.AWSGLOBALS.ie){by=window.opener.screenX+(window.opener.outerWidth-window.outerWidth)/2;bx=window.opener.screenY+(window.opener.outerHeight-window.outerHeight)/2}else{if(document.documentElement){by=window.opener.screenLeft+(window.opener.document.documentElement.offsetWidth-window.width)/2;bx=window.opener.screenTop+(window.opener.document.documentElement.offsetHeight-window.height)/2}else{by=window.opener.screenLeft+(window.opener.document.body.offsetWidth-window.width)/2;bx=window.opener.screenTop+(window.opener.document.body.offsetHeight-window.height)/2}}window.moveTo(by,bx);break}}function av(bz,bu){var by=document.getElementById(a8+bu.calendarID);var bw,bx=bz.offsetLeft,bv=bz.offsetTop;bw=bz;do{bw=bw.offsetParent;bx+=bw.offsetLeft;bv+=bw.offsetTop}while(bw.tagName!="BODY");switch(bu.popupPosition){case r:by.style.left=bx+"px";by.style.top=(bv-by.offsetHeight)+"px";break;case n:by.style.left=bx+"px";by.style.top=(bv+bz.offsetHeight)+"px";break;case y:by.style.left=(bx+bz.offsetWidth)+"px";by.style.top=bv+"px";break;case ar:by.style.left=(bx-by.offsetWidth)+"px";by.style.top=bv+"px";break;case u:by.style.left=(bx+bz.offsetWidth)+"px";by.style.top=(bv-by.offsetHeight)+"px";break;case al:by.style.left=(bx-by.offsetWidth)+"px";by.style.top=(bv-by.offsetHeight)+"px";break;case bo:by.style.left=(bx+bz.offsetWidth)+"px";by.style.top=(bv+bz.offsetHeight)+"px";break;case Q:by.style.left=(bx-by.offsetWidth)+"px";by.style.top=(bv+bz.offsetHeight)+"px";break;case ac:if(!AWS.AWSGLOBALS.ie){by.style.left=window.pageXOffset+Math.floor((window.innerWidth-by.offsetWidth)/2)+"px";by.style.top=window.pageYOffset+Math.floor((window.innerHeight-by.offsetHeight)/2)+"px"}else{if(document.documentElement&&document.documentElement.clientWidth){by.style.left=document.documentElement.scrollLeft+Math.floor((document.documentElement.clientWidth-by.offsetWidth)/2)+"px";by.style.top=document.documentElement.scrollTop+Math.floor((document.documentElement.clientHeight-by.offsetHeight)/2)+"px"}else{if(document.body){by.style.left=document.body.scrollLeft+Math.floor((document.body.clientWidth-by.offsetWidth)/2)+"px";by.style.top=document.body.scrollTop+Math.floor((document.body.clientHeight-by.offsetHeight)/2)+"px"}}}break}}function aZ(bw,bv,bx){var bu=AWS.AWSGLOBALS.AWSRESOURCES_DIR_PATH+"AWSCalendarPopupWin.html";if((typeof(bv.winPopup)!="undefined")&&!bv.winPopup.closed){bv.winPopup.close();bv.winPopup=void 0;return}bu=AWS.AWSGLOBALS.setURLParameter(bu,"lang",AWS.AWSGLOBALS.AWSRESOURCES_LANG);bu=AWS.AWSGLOBALS.setURLParameter(bu,"id",bv.calendarID);bu=AWS.AWSGLOBALS.setURLParameter(bu,"showWeekNumber",bv.showWeekNumber);bu=AWS.AWSGLOBALS.setURLParameter(bu,"showToday",bv.showToday);bu=AWS.AWSGLOBALS.setURLParameter(bu,"weekStartDay",bv.weekStartDay);bu=AWS.AWSGLOBALS.setURLParameter(bu,"minDate",bv.minDateYear*10000+(bv.minDateMonth+1)*100+bv.minDateDay);bu=AWS.AWSGLOBALS.setURLParameter(bu,"maxDate",bv.maxDateYear*10000+(bv.maxDateMonth+1)*100+bv.maxDateDay);bu=AWS.AWSGLOBALS.setURLParameter(bu,"barColor",bv.barColor);bu=AWS.AWSGLOBALS.setURLParameter(bu,"monthBgColor",bv.monthBgColor);bu=AWS.AWSGLOBALS.setURLParameter(bu,"daysColor",bv.daysColor);bu=AWS.AWSGLOBALS.setURLParameter(bu,"titleColor",bv.titleColor);bu=AWS.AWSGLOBALS.setURLParameter(bu,"horzLineColor",bv.horzLineColor);bu=AWS.AWSGLOBALS.setURLParameter(bu,"vertLineColor",bv.vertLineColor);bu=AWS.AWSGLOBALS.setURLParameter(bu,"daysWeekColor",bv.daysWeekColor);bu=AWS.AWSGLOBALS.setURLParameter(bu,"numWeekColor",bv.numWeekColor);bu=AWS.AWSGLOBALS.setURLParameter(bu,"dateFormat",bv.dateFormat);bu=AWS.AWSGLOBALS.setURLParameter(bu,"boundCtrlId",bv.boundCtrlId);bu=AWS.AWSGLOBALS.setURLParameter(bu,"type",bv.type);bu=AWS.AWSGLOBALS.setURLParameter(bu,"typeLength",bv.typeLength);bu=AWS.AWSGLOBALS.setURLParameter(bu,"typeNbDec",bv.typeNbDec);bu=AWS.AWSGLOBALS.setURLParameter(bu,"popupType",bv.popupType);bu=AWS.AWSGLOBALS.setURLParameter(bu,"popupPosition",bv.popupPosition);bu=AWS.AWSGLOBALS.setURLParameter(bu,"idObjBtn",bw.id);bu=AWS.AWSGLOBALS.setURLParameter(bu,"disabled",bv.disabled);bu=AWS.AWSGLOBALS.setURLParameter(bu,"barColorClass",bv.barColorClass);bu=AWS.AWSGLOBALS.setURLParameter(bu,"monthBgColorClass",bv.monthBgColorClass);bu=AWS.AWSGLOBALS.setURLParameter(bu,"daysColorClass",bv.daysColorClass);bu=AWS.AWSGLOBALS.setURLParameter(bu,"titleColorClass",bv.titleColorClass);bu=AWS.AWSGLOBALS.setURLParameter(bu,"horzLineColorClass",bv.horzLineColorClass);bu=AWS.AWSGLOBALS.setURLParameter(bu,"vertLineColorClass",bv.vertLineColorClass);bu=AWS.AWSGLOBALS.setURLParameter(bu,"daysWeekColorClass",bv.daysWeekColorClass);bu=AWS.AWSGLOBALS.setURLParameter(bu,"numWeekColorClass",bv.numWeekColorClass);bu=AWS.AWSGLOBALS.setURLParameter(bu,"onChange",bv.onChangeTxt);bu=AWS.AWSGLOBALS.setURLParameter(bu,"daysName",bv.daysName);bu=AWS.AWSGLOBALS.setURLParameter(bu,"getClassDate",bv.getClassDate==""?"":bv.getClassDate.getName());bu=AWS.AWSGLOBALS.setURLParameter(bu,"getSelectionDate",bv.getSelectionDate==""?"":bv.getSelectionDate.getName());bu=AWS.AWSGLOBALS.setURLParameter(bu,"getTooltipDate",bv.getTooltipDate==""?"":bv.getTooltipDate.getName());if(bx){bv.winPopup=window.open(bu,bv.idVarCalAWS,"status=no,resizable=yes,dependent=yes,alwaysRaised=yes,screenX=30000,screenY=30000,left=30000,top=30000")}else{AWS.AWSCTRLSCRIPT.showModalWindow(bu,"status=no,resizable=yes,dependent=yes,alwaysRaised=yes,screenX=30000,screenY=30000,left=30000,top=30000")}}function T(bx,bu){var bv,bw;bw=document.getElementById(a8+bu.calendarID);if(bw.style.visibility=="visible"){I(bu);return}bv=bl(bu,document.getElementById(bu.boundCtrlId));bu.daySelected=AWS.AWSGLOBALS.getDayAdeliaDate(bv);bu.monthDisplay=bu.monthSelected=AWS.AWSGLOBALS.getMonthAdeliaDate(bv)-1;bu.yearDisplay=bu.yearSelected=AWS.AWSGLOBALS.getYearAdeliaDate(bv);A(bu);if(AWS.AWSGLOBALS.ie){bw.style.left=bw.style.top="-1000px";a2(bu);I(bu)}av(bx,bu);if(AWS.AWSGLOBALS.ie&&AWS.AWSGLOBALS.BrowserDetect.version<7){ay(bu)}a2(bu)}function v(bu){var bw=bu.monthDisplay+1;var bv=bu.yearDisplay;if(bw>11){bw=0;bv++}return(bv*100+bw)<=(bu.maxDateYear*100+bu.maxDateMonth)}function t(bu){var bw=bu.monthDisplay-1;var bv=bu.yearDisplay;if(bw<0){bw=11;bv--}return(bv*100+bw)>=(bu.minDateYear*100+bu.minDateMonth)}function aF(bu){return(bu.yearDisplay<bu.maxDateYear)}function aP(bu){return(bu.yearDisplay>bu.minDateYear)}function A(bK){var bx=new Date(bK.yearDisplay,bK.monthDisplay,1);var bC,by,bD,bJ;var bA=[],bz,bw,bu,bv,bG;var bE=1;var bF="";var bB;if(bK.monthDisplay==1){bC=new Date(bK.yearDisplay,bK.monthDisplay+1,1);bC=new Date(bC-(24*60*60*1000));by=bC.getDate()}else{by=bs[bK.monthDisplay]}bD=0;bJ=(bx.getDay()+7-q(bK.weekStartDay))%7;bA.push("<table border='0' cellspacing='0' cellpadding='0' width='100%'><tr>");if(bK.showWeekNumber){bA.push("<td></td>")}for(bB=0;bB<7;bB++){bA.push("<td id='"+bd+bK.calendarID+"_"+bB+"' align='center' style='border-bottom:"+bK.horzLineColor+" solid 1px;' class='"+bK.horzLineColorClass+"'><font color='"+bK.daysWeekColor+"' class='"+bK.daysWeekColorClass+"'>"+bK.tabDayName[bB][bK.daysName]+"</font></td>")}bA.push("</tr>");if(bK.showWeekNumber){bA.push("<tr height='3px'><td colspan='8'></td></tr>")}bA.push("<tr>");if(bK.showWeekNumber){bA.push("<td align='right' style='border-right:"+bK.vertLineColor+" solid 1px;' class='"+bK.vertLineColorClass+"'><font color='"+bK.numWeekColor+"' class='"+bK.numWeekColorClass+"'>"+aM(bK,bx)+"&nbsp;</font></td>")}for(bB=1;bB<=bJ;bB++){bA.push("<td>&nbsp;</td>")}for(bD=1;bD<=by;bD++){bw="";bJ++;if((!D(bK,bD,bK.monthDisplay,bK.yearDisplay))||(typeof(bK.getSelectionDate)!="undefined"&&bK.getSelectionDate!=""&&!bK.getSelectionDate(bD,bK.monthDisplay+1,bK.yearDisplay))||bK.disabled){bw+="cursor:default;";bz="";bu=""}else{if(AWS.AWSGLOBALS.ie){bw+="cursor:hand;"}else{bw+="cursor:pointer;"}bz="AWS.AWSCALENDAR.selectDay("+bK.idVarCalAWS+", "+bD+");";bu="AWS.AWSCALENDAR.changeDisplaySelectedDay(event,"+bK.idVarCalAWS+", "+bD+");"}if(typeof(bK.getTooltipDate)!="undefined"&&bK.getTooltipDate!=""){bv="AWS.AWSCALENDAR.showTooltipDate(event, "+bK.idVarCalAWS+", "+bD+");";bG="AWS.AWSCALENDAR.hideTooltipDate(event);"}else{bv="";bG=""}if(typeof(bK.getClassDate)!="undefined"&&bK.getClassDate!=""){bF=bK.getClassDate(bD,bK.monthDisplay+1,bK.yearDisplay)}bA.push("<td align='center' class='"+bF+"'><div style='position:relative;width:100%;height:100%;z-index:0;"+bw+"' onclick='"+bz+"' onmousedown='"+bu+"' onmousemove='"+bv+"' onmouseout='"+bG+"'><div id='"+bf+bK.calendarID+"_"+bD+"' style='position:absolute;visibility:hidden;top:0px;left:0px;width:100%;height:100%;z-index:-1'></div>");bA.push("<font color='"+bK.daysColor+"' class='"+bK.daysColorClass+" "+bF+"'>&nbsp;"+bD+"&nbsp;</font>");bA.push("</div></td>");if((bJ%7)==0){bA.push("</tr>");if(bD<by){bA.push("<tr>");bE++}if(bK.showWeekNumber&&(bD<by)){bA.push("<td align='right' style='border-right:"+bK.vertLineColor+" solid 1px;' class='"+bK.vertLineColorClass+"'><font color='"+bK.numWeekColor+"' class='"+bK.numWeekColorClass+"'>"+aM(bK,new Date(bK.yearDisplay,bK.monthDisplay,bD+1))+"&nbsp;</font></td>")}}}if((bJ%7)!=0){while(bJ%7!=0){bA.push("<td>&nbsp;</td>");bJ++}bA.push("</tr>")}while(bE<6){bA.push("<tr>");if(bK.showWeekNumber){bA.push("<td>&nbsp;</td>")}for(bB=0;bB<7;bB++){bA.push("<td>&nbsp;</td>")}bA.push("</tr>");bE++}bA.push("</table>");document.getElementById(x+bK.calendarID).innerHTML=bA.join("");document.getElementById(ai+bK.calendarID).innerHTML=Z[bK.monthDisplay];document.getElementById(aC+bK.calendarID).innerHTML=bK.yearDisplay;document.getElementById(G+bK.calendarID).style.cursor=(t(bK)&&!bK.disabled)?(AWS.AWSGLOBALS.ie?"hand":"pointer"):"default";document.getElementById(p+bK.calendarID).style.cursor=(v(bK)&&!bK.disabled)?(AWS.AWSGLOBALS.ie?"hand":"pointer"):"default";document.getElementById(a7+bK.calendarID).style.cursor=(aP(bK)&&!bK.disabled)?(AWS.AWSGLOBALS.ie?"hand":"pointer"):"default";document.getElementById(ad+bK.calendarID).style.cursor=(aF(bK)&&!bK.disabled)?(AWS.AWSGLOBALS.ie?"hand":"pointer"):"default";document.getElementById(br+bK.calendarID).style.cursor=(!bK.disabled)?(AWS.AWSGLOBALS.ie?"hand":"pointer"):"default";var bI=0,bH;for(bB=0;bB<7;bB++){bH=document.getElementById(bd+bK.calendarID+"_"+bB);if(bH.offsetWidth>bI){bI=bH.offsetWidth}}if(bI>0){for(bB=0;bB<7;bB++){bH=document.getElementById(bd+bK.calendarID+"_"+bB);bH.width=bI+"px"}}if((bK.monthSelected==bK.monthDisplay)&&(bK.yearSelected==bK.yearDisplay)){aI(bK,bK.daySelected)}}function D(bu,bv,bA,by){var bz=by*10000+bA*100+bv;var bw=bu.minDateYear*10000+bu.minDateMonth*100+bu.minDateDay;var bx=bu.maxDateYear*10000+bu.maxDateMonth*100+bu.maxDateDay;return(bz<=bx)&&(bz>=bw)}function af(bu,bv,bx,bw){var by=new jsGraphics(bf+bu.calendarID+"_"+bv);by.clear();if(bw!=""){by.setColor(bw)}by.fillEllipse(0,0,bx.offsetWidth,bx.offsetHeight);by.paint();bx.style.visibility="visible"}function aI(bv,bw){var bz=document.getElementById(bf+bv.calendarID+"_"+bw);var bx=aN(bv);var by,bu;if((bz.offsetWidth==0)||(bz.offsetHeight==0)){setTimeout(function(){af(bv,bw,bz,bx)},1)}else{af(bv,bw,bz,bx)}bu=bz.parentNode.lastChild;bu.setAttribute("oldColor",bu.color);bu.setAttribute("oldClassName",bu.className);bu.color=bv.titleColor;bu.className=bv.titleColorClass}function k(bv,bw){var by=document.getElementById(bf+bv.calendarID+"_"+bw);var bx,bu;by.style.visibility="hidden";bu=by.parentNode.lastChild;bu.color=bu.getAttribute("oldColor");bu.className=bu.getAttribute("oldClassName")}function au(bu,bw){var bv;switch(bu.type){case AWS.AWSGLOBALS.TA_DATE:bv=bw;break;case AWS.AWSGLOBALS.TA_NUM_P:case AWS.AWSGLOBALS.TA_NUM_E:if(bu.typeLength==6){bv=aR(bw,bu.dateFormat)}else{if(bu.typeLength==8){bv=aq(bw,bu.dateFormat)}else{bv=aG*10000+(ak+1)*100+be}}break}bu.yearSelected=AWS.AWSGLOBALS.getYearAdeliaDate(bv);bu.monthSelected=AWS.AWSGLOBALS.getMonthAdeliaDate(bv)-1;bu.daySelected=AWS.AWSGLOBALS.getDayAdeliaDate(bv)}function bk(bD,bw){var bA=bD.yearSelected;var bx=bD.monthSelected+1;var bB=bD.daySelected;var bz,by,bu=0;var bv=bw.getAttribute("_aws0");var bC=bv!=null?bv.split("\xA8"):null;bz=bC?bC[5]:bw.getAttribute("editcode");by=bC?bC[6]:bw.getAttribute("editword");if(bz==null){bz=AWS.AWSGLOBALS.VGENJSP_EAUCUN}else{bz=parseInt(bz)}switch(bD.type){case AWS.AWSGLOBALS.TA_DATE:return AWS.AWSCTRLSCRIPT.SscDateVersTexte2(bA*10000+bx*100+bB,bz);case AWS.AWSGLOBALS.TA_NUM_P:case AWS.AWSGLOBALS.TA_NUM_E:if(bD.typeLength==6){bu=at(bA,bx,bB,bD.dateFormat)}else{if(bD.typeLength==8){bu=ap(bA,bx,bB,bD.dateFormat)}}return AWS.AWSCTRLSCRIPT.SscItoA2(bu,bD.typeLength,bD.typeNbDec,by,bz)}}function aq(bv,by){var bu=0,bw=0,bx=0;switch(by){case bg:bu=Math.floor(bv/10000);bw=bv%100;bx=Math.floor(bv/100)%100;break;case ah:bu=Math.floor(bv/10000);bw=Math.floor(bv/100)%100;bx=bv%100;break;case j:bu=Math.floor(bv/100)%10000;bw=bv%100;bx=Math.floor(bv/1000000);break;case C:bu=bv%10000;bw=Math.floor(bv/10000)%100;bx=Math.floor(bv/1000000);break;case a:bu=Math.floor(bv/100)%10000;bw=Math.floor(bv/1000000);bx=bv%100;break;case aH:bu=bv%10000;bw=Math.floor(bv/1000000);bx=Math.floor(bv/10000)%100;break;default:break}return(bu*10000+bw*100+bx)}function aR(bv,bz){var bu=0,bx=0,by=0,bw;switch(bz){case bg:bw=Math.floor(bv/10000);bu=bw+(bw<40?2000:1900);bx=bv%100;by=Math.floor(bv/100)%100;break;case ah:bw=Math.floor(bv/10000);bu=bw+(bw<40?2000:1900);bx=Math.floor(bv/100)%100;by=bv%100;break;case j:bw=Math.floor(bv/100)%100;bu=bw+(bw<40?2000:1900);bx=bv%100;by=Math.floor(bv/10000);break;case C:bw=bv%100;bu=bw+(bw<40?2000:1900);bx=Math.floor(bv/100)%100;by=Math.floor(bv/10000);break;case a:bw=Math.floor(bv/100)%100;bu=bw+(bw<40?2000:1900);bx=Math.floor(bv/10000);by=bv%100;break;case aH:bw=bv%100;bu=bw+(bw<40?2000:1900);bx=Math.floor(bv/10000);by=Math.floor(bv/100)%100;break;default:break}return(bu*10000+bx*100+by)}function ap(bv,bx,bu,bw){switch(bw){case bg:return(bv*10000+bu*100+bx);case ah:return(bv*10000+bx*100+bu);case j:return(bu*1000000+bv*100+bx);case C:return(bu*1000000+bx*10000+bv);case a:return(bx*1000000+bv*100+bu);case aH:return(bx*1000000+bu*10000+bv);default:return(0)}}function at(bv,bx,bu,bw){switch(bw){case bg:return((bv%100)*10000+bu*100+bx);case ah:return((bv%100)*10000+bx*100+bu);case j:return(bu*10000+(bv%100)*100+bx);case C:return(bu*10000+bx*100+(bv%100));case a:return(bx*10000+(bv%100)*100+bu);case aH:return(bx*10000+bu*100+(bv%100));default:return(0)}}function bn(bB){var bu=bB.getFullYear();var bz=bB.getMonth();var bC=bB.getDate();var bx=new Date();bx.setFullYear(bu);bx.setMonth(0);bx.setDate(1);var bA=bx.getDay();if(bA==0){bA=6}else{bA--}var bw=((Date.UTC(bu,bz,bC,0,0,0)-Date.UTC(bu,0,1,0,0,0))/1000/60/60/24)+1;if(bA<4){var by=Math.floor((bw+bA-1)/7)+1}else{var by=Math.floor((bw+bA-1)/7);if(by==0){bu--;var bv=new Date();bv.setFullYear(bu);bv.setMonth(0);bv.setDate(1);var bD=bv.getDay();if(bD==0){bD=6}else{bD--}if(bD<4){by=53}else{by=52}}}return by}function aM(bu,bv){var bw=bn(bv);if(bw<10){return"<span style='visibility:hidden'>0</span>"+bw}else{return bw}}function P(bu){if(document.getElementById(ad+bu.calendarID).style.cursor!="default"){bu.yearDisplay++;A(bu)}else{clearInterval(m);try{m=undefined}catch(bv){m=void 0}}}function aE(bu){if(document.getElementById(a7+bu.calendarID).style.cursor!="default"){bu.yearDisplay--;A(bu)}else{clearInterval(m);try{m=undefined}catch(bv){m=void 0}}}function bj(bu){m=setInterval(function(){O(bu)},150)}function ao(bu){m=setInterval(function(){a9(bu)},150)}function a9(bu){if(document.getElementById(p+bu.calendarID).style.cursor!="default"){bu.monthDisplay++;if(bu.monthDisplay>11){bu.monthDisplay=0;bu.yearDisplay++}A(bu)}else{clearInterval(m);try{m=undefined}catch(bv){m=void 0}}}function O(bu){if(document.getElementById(G+bu.calendarID).style.cursor!="default"){bu.monthDisplay--;if(bu.monthDisplay<0){bu.monthDisplay=11;bu.yearDisplay--}A(bu)}else{clearInterval(m);try{m=undefined}catch(bv){m=void 0}}}function V(bu){m=setInterval(function(){aE(bu)},150)}function c(bu){m=setInterval(function(){P(bu)},150)}function a2(bu){document.getElementById(a8+bu.calendarID).style.visibility="visible";try{document.getElementById(bf+bu.calendarID+"_"+bu.daySelected).style.visibility="visible"}catch(bv){}}function aJ(bJ,b0,bF,bu,by,bD,bv,bC,bA,bS,bx,bH,bZ,bV,bL,bY,bX,b4,bO,bG,bK,bE,bM,bT,bP,bU,bz,b1,bI,b2,bw,b3,bB,bR,bQ,bN){this.calendarID=bJ;this.idVarCalAWS=bJ+AWS.AWSCALENDAR.SUFFIXE_VAR_CAL;if(this.idVarCalAWS.indexOf(":")!=-1){this.idVarCalAWS=AWS.AWSGLOBALS.replaceCar(this.idVarCalAWS,":","_")}this.showWeekNumber=b0;this.showToday=bF;this.weekStartDay=bu;this.daysName=bB;this.daySelected=Number.NaN;this.monthSelected=Number.NaN;this.yearSelected=Number.NaN;this.monthDisplay=Number.NaN;this.yearDisplay=Number.NaN;this.minDateYear=AWS.AWSGLOBALS.getYearAdeliaDate(by);this.minDateMonth=AWS.AWSGLOBALS.getMonthAdeliaDate(by)-1;this.minDateDay=AWS.AWSGLOBALS.getDayAdeliaDate(by);this.maxDateYear=AWS.AWSGLOBALS.getYearAdeliaDate(bD);this.maxDateMonth=AWS.AWSGLOBALS.getMonthAdeliaDate(bD)-1;this.maxDateDay=AWS.AWSGLOBALS.getDayAdeliaDate(bD);this.barColor=bv;this.monthBgColor=bC;this.daysColor=bA;this.titleColor=bS;this.horzLineColor=bx;this.vertLineColor=bH;this.daysWeekColor=bZ;this.numWeekColor=bV;this.dateFormat=bL;this.boundCtrlId=bY;this.isBoundCtrl=bY!="";this.type=b4;this.typeLength=bO;this.typeNbDec=bG;this.popupType=bE;this.popupPosition=bM;this.disabled=bT;this.barColorClass=bP;this.monthBgColorClass=bU;this.daysColorClass=bz;this.titleColorClass=b1;this.horzLineColorClass=bI;this.vertLineColorClass=b2;this.daysWeekColorClass=bw;this.numWeekColorClass=b3;this.onChangeTxt=bK;this.barColorClassColor="";if(bP!=""){this.barColorClassColor=ba(bP)}this.daysColorClassColor="";if(bz!=""){this.daysColorClassColor=ax(bz)}if(bK!=""){if(this.onChangeTxt.charAt(this.onChangeTxt.length-1)!=";"){this.onChangeTxt+=";"}this.onChange=function(){if(this.isBoundCtrl&&((this.popupType==aS)||(this.popupType==aa))){window.opener["eval"](this.onChangeTxt)}else{window["eval"](this.onChangeTxt)}}}this.getClassDate=bR;this.getSelectionDate=bQ;this.getTooltipDate=bN;if(!this.isBoundCtrl){au(this,bX)}this.onChangeOnDateSel=false;a1(this);if(this.isBoundCtrl){var bW;bW=document.getElementById(this.calendarID+b);if(bW!=null){AWS.AWSGLOBALS.setBackgroundImageClass(bW.id);if(AWS.AWSGLOBALS.ie){bW.style.cursor="hand"}else{bW.style.cursor="pointer"}}}else{bW=document.getElementById(this.calendarID);if(bW!=null){bW.value=aw(this)}}this.setEnabled=function(b5){if(this.disabled==!b5){return}this.disabled=!b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){var b6;if(this.disabled){b6="default"}else{if(AWS.AWSGLOBALS.ie){b6="hand"}else{b6="pointer"}}document.getElementById(N+this.calendarID).style.cursor=b6;if(a3(this)){A(this)}}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setBarColorClass=function(b5){this.barColorClass=b5;this.barColorClassColor="";if(b5!=""){this.barColorClassColor=ba(b5)}if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(l+this.calendarID).className=b5;if((this.monthDisplay==this.monthSelected)&&(this.yearDisplay==this.yearSelected)&&a3(this)){A(this)}}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setMonthBgColorClass=function(b5){this.monthBgColorClass=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(bp+this.calendarID).className="AWSCalendar "+b5}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setDaysWeekColorClass=function(b5){this.daysWeekColorClass=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setHorzLineColorClass=function(b5){this.horzLineColorClass=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setVertLineColorClass=function(b5){this.vertLineColorClass=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setNumWeekColorClass=function(b5){this.numWeekColorClass=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setTitleColorClass=function(b5){this.titleColorClass=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(ai+this.calendarID).className=b5;document.getElementById(aC+this.calendarID).className=b5;if(a3(this)){A(this)}}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setDaysColorClass=function(b5){this.daysColorClass=b5;this.daysColorClassColor="";if(b5!=""){this.daysColorClassColor=ax(b5)}if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(bc+this.calendarID).className=b5;if((this.monthDisplay==this.monthSelected)&&(this.yearDisplay==this.yearSelected)&&a3(this)){A(this)}}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setBarColor=function(b5){this.barColor=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(l+this.calendarID).style.backgroundColor=b5;if((this.monthDisplay==this.monthSelected)&&(this.yearDisplay==this.yearSelected)&&a3(this)){A(this)}}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setMonthBgColor=function(b5){this.monthBgColor=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(bp+this.calendarID).style.backgroundColor=b5}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setDaysColor=function(b5){this.daysColor=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(bc+this.calendarID).color=b5;if((this.monthDisplay==this.monthSelected)&&(this.yearDisplay==this.yearSelected)&&a3(this)){A(this)}}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setDaysWeekColor=function(b5){this.daysWeekColor=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setHorzLineColor=function(b5){this.horzLineColor=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setVertLineColor=function(b5){this.vertLineColor=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setNumWeekColor=function(b5){this.numWeekColor=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setTitleColor=function(b5){this.titleColor=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(ai+this.calendarID).style.color=b5;document.getElementById(aC+this.calendarID).style.color=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setMaxDate=function(b5){this.maxDateYear=AWS.AWSGLOBALS.getYearAdeliaDate(b5);this.maxDateMonth=AWS.AWSGLOBALS.getMonthAdeliaDate(b5)-1;this.maxDateDay=AWS.AWSGLOBALS.getDayAdeliaDate(b5);if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setMinDate=function(b5){this.minDateYear=AWS.AWSGLOBALS.getYearAdeliaDate(b5);this.minDateMonth=AWS.AWSGLOBALS.getMonthAdeliaDate(b5)-1;this.minDateDay=AWS.AWSGLOBALS.getDayAdeliaDate(b5);if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setWeekStartDay=function(b5){this.weekStartDay=b5;a1(this);if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setDaysName=function(b5){this.daysName=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setWeekNumber=function(b5){this.showWeekNumber=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setPopupPosition=function(b5){this.popupPosition=b5;if(this.isBoundCtrl){switch(this.popupType){case K:if(a3(this)){av(document.getElementById(this.calendarID+b),this);if(AWS.AWSGLOBALS.ie&&AWS.AWSGLOBALS.BrowserDetect.version<7){ay(this)}}break;case aS:if(a3(this)){J(this.calendarID+b,this)}break}}};this.setShowToday=function(b5){if(this.showToday==b5){return}this.showToday=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&document.getElementById(a8+this.calendarID)!=null)){document.getElementById(bq+this.calendarID).style.display=(this.showToday?"":"none")}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setPopupType=function(b6){var b8=false,b5;if((this.popupType==b6)||!this.isBoundCtrl){return}if(this.popupType==K){if(a3(this)){b8=true;I(this)}b5=document.getElementById(a8+this.calendarID);if(b5!=null){b5.parentNode.removeChild(b5)}this.popupType=b6;if(b8){F(document.getElementById(this.calendarID+b),this)}}else{if(b6==K){if(a3(this)){b8=true;this.winPopup.close();this.winPopup=void 0}this.popupType=b6;if(b8){an(this);F(document.getElementById(this.calendarID+b),this)}}else{if(a3(this)){this.winPopup.close();this.winPopup=void 0;var b7=this.popupType;this.popupType=b6;if(b7==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}else{this.popupType=b6}}}};this.setValue=function(b5){au(this,b5);this.monthDisplay=this.monthSelected;this.yearDisplay=this.yearSelected;A(this);document.getElementById(this.calendarID).value=b5};this.setClassDateMethod=function(b5){this.getClassDate=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setSelectionDateMethod=function(b5){this.getSelectionDate=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}};this.setTooltipDateMethod=function(b5){this.getTooltipDate=b5;if((!this.isBoundCtrl)||(this.isBoundCtrl&&(this.popupType==K)&&a3(this))){A(this)}else{if(this.isBoundCtrl&&(this.popupType!=K)&&a3(this)){this.winPopup.close();this.winPopup=void 0;if(this.popupType==aa){setTimeout('AWS.AWSCALENDAR.showCalendarAWS (document.getElementById("'+this.calendarID+b+'"), this.idVarCalAWS)',AWS.AWSCTRLSCRIPT.TIMER_WIN_MODAL+50)}else{F(document.getElementById(this.calendarID+b),this)}}}}}function an(bu){var bz,bB,bA;if(bu.disabled){bz="cursor:default;"}else{if(AWS.AWSGLOBALS.ie){bz="cursor:hand;"}else{bz="cursor:pointer;"}}bB="<table id='"+bp+bu.calendarID+"' cellspacing='0' cellpadding='0' class='AWSCalendar "+bu.monthBgColorClass+"' style='background-color:"+bu.monthBgColor+"'><tr><td><table id='"+l+bu.calendarID+"' class='"+bu.barColorClass+"' style='background-color:"+bu.barColor+"' width='100%'><tr><td align='left'><span id='"+o+bu.calendarID+"'></span></td>";if(bu.isBoundCtrl&&(bu.popupType==K)){bB+="<td align='right'><a href='javascript:AWS.AWSCALENDAR.closeCalendar("+bu.idVarCalAWS+")'><img id='"+aW+bu.calendarID+"' class='AWSCalendarImgClose' border='0' title='"+aB.getString("CLOSE_CALENDAR").replace("'","&#39;")+"'></a></td>"}bB+="</tr></table></td></tr><tr><td style='padding:5px'><span id='"+x+bu.calendarID+"'></span></td></tr>";bB+="<tr id='"+bq+bu.calendarID+"' style='display:"+(bu.showToday?"":"none")+"'><td><span id='"+N+bu.calendarID+"' title='"+aB.getString("GOTO_TODAY").replace("'","&#39;")+"' style='"+bz+"' onclick='AWS.AWSCALENDAR.setToday("+bu.idVarCalAWS+");'></span></td></tr>";bB+="</table>";if(bu.isBoundCtrl&&(bu.popupType==K)){bA=document.createElement("div");bA.setAttribute("id",a8+bu.calendarID);bA.innerHTML=bB;if(AWS.AWSGLOBALS.ie){bA.style.setAttribute("cssText","visibility:hidden;position:absolute;top:0px;left:0px;z-index:1;")}else{bA.setAttribute("style","visibility:hidden;position:absolute;top:0px;left:0px;z-index:1;")}var bx=document.getElementById(bu.calendarID+b);var by;if(bx.parentNode.tagName&&AWS.AWSGLOBALS.AJAX_TAG_NAME.endWith(bx.parentNode.tagName.toUpperCase())){by=bx.parentNode.parentNode}else{by=bx.parentNode}if(by.tagName&&AWS.AWSGLOBALS.ALLOWED_PARENT_DIV_TAG.adel_ValueExist(by.tagName.toLowerCase())){bx.parentNode.insertBefore(bA,bx)}else{document.body.insertBefore(bA,document.body.firstChild)}}else{if(AWS.AWSAJAX&&AWS.AWSAJAX.AjaxRequestManager.ajaxCtx){var bw=document.getElementById(bu.calendarID);if(AWS.AWSGLOBALS.ie){bw.insertAdjacentHTML("BeforeBegin",bB)}else{var bv=document.createElement("div");bv.innerHTML=bB;bw.parentNode.insertBefore(bv.firstChild,bw)}}else{document.write(bB)}}if(bu.isBoundCtrl&&(bu.popupType==K)){setBackgroundImageClass(aW+bu.calendarID)}az(bu);aK()}function M(bv,bu){if(bv.style.cursor!="default"){a9(bu)}}function aU(bv,bu){if(bv.style.cursor!="default"){O(bu)}}function aL(bv,bu){if(bv.style.cursor!="default"){P(bu)}}function bm(bv,bu){if(bv.style.cursor!="default"){aE(bu)}}function aX(){if(typeof(m)!="undefined"){clearInterval(m)}}function Y(){if(typeof(s)!="undefined"){clearTimeout(s);try{s=undefined}catch(bu){s=void 0}}if(typeof(m)!="undefined"){clearInterval(m);try{m=undefined}catch(bu){m=void 0}}}function d(bv,bu){if(bv.style.cursor!="default"){if(typeof(s)!="undefined"){clearTimeout(s)}s=setTimeout(function(){bj(bu)},500)}}function ab(bv,bu){if(bv.style.cursor!="default"){if(typeof(s)!="undefined"){clearTimeout(s)}s=setTimeout(function(){V(bu)},500)}}function g(bv,bu){if(bv.style.cursor!="default"){if(typeof(s)!="undefined"){clearTimeout(s)}s=setTimeout(function(){c(bu)},500)}}function aD(bv,bu){if(bv.style.cursor!="default"){if(typeof(s)!="undefined"){clearTimeout(s)}s=setTimeout(function(){ao(bu)},500)}}function R(bu){if(bu.disabled){return}bu.monthDisplay=ak;bu.yearDisplay=aG;A(bu)}function a0(bu){if(bu.disabled){return}bu.monthDisplay=bu.monthSelected;bu.yearDisplay=bu.yearSelected;A(bu)}function bi(bu){I(bu);if((bu.popupType==aS)||(bu.popupType==aa)){self.close()}}function W(bu,bw){var by=bu.daySelected;var bv=bu.monthSelected;var bz=bu.yearSelected;var bx;bu.daySelected=bw;bu.monthSelected=bu.monthDisplay;bu.yearSelected=bu.yearDisplay;if(bu.isBoundCtrl){if(bu.popupType==K){bx=document.getElementById(bu.boundCtrlId)}else{bx=window.opener.document.getElementById(bu.boundCtrlId)}a4(bx,bk(bu,bx));bi(bu)}else{dateSelected=aw(bu);document.getElementById(bu.calendarID).value=dateSelected}if((typeof bu.onChange!="undefined")&&((by!=bw)||(bu.monthSelected!=bv)||(bu.yearSelected!=bz)||bu.onChangeOnDateSel)){bu.onChange()}}function aV(bw,bu,bv){if(AWS.AWSGLOBALS.ie){window.event.cancelBubble=true}else{bw.stopPropagation()}if(!bu.isBoundCtrl){if((bu.daySelected==bv)&&(bu.monthDisplay==bu.monthSelected)&&(bu.yearDisplay==bu.yearSelected)){return}k(bu,bu.daySelected);aI(bu,bv)}else{if((bu.daySelected==bv)&&(bu.monthDisplay==bu.monthSelected)&&(bu.yearDisplay==bu.yearSelected)){return}if((bu.monthDisplay==bu.monthSelected)&&(bu.yearDisplay==bu.yearSelected)){k(bu,bu.daySelected)}aI(bu,bv)}}function F(bw,bu){var bv;if(!bu.isBoundCtrl){return}bv=document.getElementById(bu.boundCtrlId);if((bv==null)||(((bv.tagName!="INPUT")||(bv.type!="text"))&&(bv.tagName!="SPAN")&&(bv.tagName!="A"))){return}switch(bu.popupType){case K:if(document.getElementById(a8+bu.calendarID)==null){an(bu)}T(bw,bu);break;case aS:case aa:aZ(bw,bu,bu.popupType==aS);break}}function e(){var b5=String(window.location);var b1=AWS.AWSGLOBALS.getURLParameterString(b5,"id");var bI=AWS.AWSGLOBALS.getURLParameterBoolean(b5,"showWeekNumber");var b7=AWS.AWSGLOBALS.getURLParameterBoolean(b5,"showToday");var bC=AWS.AWSGLOBALS.getURLParameterString(b5,"weekStartDay");var bx=AWS.AWSGLOBALS.getURLParameterInt(b5,"minDate");var bF=AWS.AWSGLOBALS.getURLParameterInt(b5,"maxDate");var bu=AWS.AWSGLOBALS.getURLParameterString(b5,"barColor");var bE=AWS.AWSGLOBALS.getURLParameterString(b5,"monthBgColor");var bz=AWS.AWSGLOBALS.getURLParameterString(b5,"daysColor");var bY=AWS.AWSGLOBALS.getURLParameterString(b5,"titleColor");var bw=AWS.AWSGLOBALS.getURLParameterString(b5,"horzLineColor");var bK=AWS.AWSGLOBALS.getURLParameterString(b5,"vertLineColor");var b6=AWS.AWSGLOBALS.getURLParameterString(b5,"daysWeekColor");var b3=AWS.AWSGLOBALS.getURLParameterString(b5,"numWeekColor");var bQ=AWS.AWSGLOBALS.getURLParameterString(b5,"dateFormat");var b4=AWS.AWSGLOBALS.getURLParameterString(b5,"boundCtrlId");var cc=AWS.AWSGLOBALS.getURLParameterString(b5,"type");var bT=AWS.AWSGLOBALS.getURLParameterInt(b5,"typeLength");var bJ=AWS.AWSGLOBALS.getURLParameterInt(b5,"typeNbDec");var bH=AWS.AWSGLOBALS.getURLParameterString(b5,"popupType");var bR=AWS.AWSGLOBALS.getURLParameterString(b5,"popupPosition");var bG=AWS.AWSGLOBALS.getURLParameterString(b5,"idObjBtn");var bZ=AWS.AWSGLOBALS.getURLParameterBoolean(b5,"disabled");var bV=AWS.AWSGLOBALS.getURLParameterString(b5,"barColorClass");var b2=AWS.AWSGLOBALS.getURLParameterString(b5,"monthBgColorClass");var by=AWS.AWSGLOBALS.getURLParameterString(b5,"daysColorClass");var b8=AWS.AWSGLOBALS.getURLParameterString(b5,"titleColorClass");var bL=AWS.AWSGLOBALS.getURLParameterString(b5,"horzLineColorClass");var ca=AWS.AWSGLOBALS.getURLParameterString(b5,"vertLineColorClass");var bv=AWS.AWSGLOBALS.getURLParameterString(b5,"daysWeekColorClass");var cb=AWS.AWSGLOBALS.getURLParameterString(b5,"numWeekColorClass");var bP=AWS.AWSGLOBALS.getURLParameterString(b5,"onChange");var bA=AWS.AWSGLOBALS.getURLParameterString(b5,"daysName");var bX=AWS.AWSGLOBALS.getURLParameterString(b5,"getClassDate");var bW=AWS.AWSGLOBALS.getURLParameterString(b5,"getSelectionDate");var bS=AWS.AWSGLOBALS.getURLParameterString(b5,"getTooltipDate");var bU="";var bD=bX==""?"":window.opener[bX];var bO=bW==""?"":window.opener[bW];var b0=bS==""?"":window.opener[bS];var bM=new aJ(b1,bI,b7,bC,bx,bF,bu,bE,bz,bY,bw,bK,b6,b3,bQ,b4,"",cc,bT,bJ,bP,bH,bR,bZ,bV,b2,by,b8,bL,ca,bv,cb,bA,bD,bO,b0);if(b1.indexOf(":lst:")==0){bU=AWS.AWSGLOBALS.replaceCar(b1,":","_")}else{bU=b1}window[bU+AWS.AWSCALENDAR.SUFFIXE_VAR_CAL]=bM;an(bM);var bB=bl(bM,window.opener.document.getElementById(b4));bM.daySelected=AWS.AWSGLOBALS.getDayAdeliaDate(bB);bM.monthDisplay=bM.monthSelected=AWS.AWSGLOBALS.getMonthAdeliaDate(bB)-1;bM.yearDisplay=bM.yearSelected=AWS.AWSGLOBALS.getYearAdeliaDate(bB);A(bM);var bN=document.getElementById(bp+bM.calendarID);if(!AWS.AWSGLOBALS.ie){window.sizeToContent()}else{var b9=bN.offsetWidth;window.resizeTo(100,100);if(document.documentElement&&document.documentElement.clientWidth){window.width=b9+4+9;window.height=100-document.documentElement.clientHeight+bN.offsetHeight}else{if(document.body){window.width=b9+4+9;window.height=100-document.body.clientHeight+bN.offsetHeight}}window.resizeTo(window.width,window.height)}J(bG,bM)}function aw(bu){var bw=bu.yearSelected;var bx=bu.monthSelected+1;var bv=bu.daySelected;switch(bu.type){case AWS.AWSGLOBALS.TA_DATE:return bw*10000+bx*100+bv;case AWS.AWSGLOBALS.TA_NUM_P:case AWS.AWSGLOBALS.TA_NUM_E:if(bu.typeLength==6){return at(bw,bx,bv,bu.dateFormat)}else{if(bu.typeLength==8){return ap(bw,bx,bv,bu.dateFormat)}else{return 0}}}}function am(bv,bu){if(AWS.AWSGLOBALS.ie){S=event.clientX;aj=event.clientY}else{S=bv.pageX;aj=bv.pageY;bv.preventDefault()}aO=document.getElementById(a8+bu.calendarID);h=parseInt(aO.style.left);aQ=parseInt(aO.style.top);if(document.captureEvents){document.captureEvents(Event.MOUSEMOVE)}AWS.AWSGLOBALS.addEventHandler(document,"mousemove",E,false);return false}function w(bu){if(document.captureEvents){document.releaseEvents(Event.MOUSEMOVE)}AWS.AWSGLOBALS.removeEventHandler(document,"mousemove",E,false)}function bh(by,bC,bA){var bw=bC.getTooltipDate(bA,bC.monthDisplay+1,bC.yearDisplay);var bB,bv,bu,bz,bx;if(bw==null||bw.ttText==""){return}bB=document.getElementById(B);if(AWS.AWSGLOBALS.ie){bB.setAttribute("className",bw.ttClass);bv=window.event.clientX;bu=window.event.clientY}else{bB.setAttribute("class",bw.ttClass);bv=by.clientX;bu=by.clientY}if(!AWS.AWSGLOBALS.ie){bv+=window.pageXOffset;bu+=window.pageYOffset;bz=window.innerWidth+window.pageXOffset;bx=window.innerHeight+window.pageYOffset}else{if(document.documentElement&&document.documentElement.clientWidth){bv+=document.documentElement.scrollLeft;bu+=document.documentElement.scrollTop;bz=document.documentElement.clientWidth+document.documentElement.scrollLeft;bx=document.documentElement.clientHeight+document.documentElement.scrollTop}else{if(document.body){bv+=document.body.scrollLeft;bu+=document.body.scrollTop;bz=document.body.clientWidth+document.body.scrollLeft;bx=document.body.clientHeight+document.body.scrollTop}}}if(bB.style.visibility!="visible"){bB.innerHTML=unescape(bw.ttText)}if(bv+10+bB.offsetWidth>bz){bB.style.left=bz-bB.offsetWidth+"px"}else{bB.style.left=bv+10+"px"}if(bu+15+bB.offsetHeight>bx){bB.style.top=bx-bB.offsetHeight+"px"}else{bB.style.top=bu+15+"px"}if(bB.style.visibility!="visible"){bB.style.visibility="visible"}}function U(bv){var bu=document.getElementById(B);if(bu.style.visibility=="visible"){bu.style.visibility="hidden"}}function aA(bu){return(document.getElementById(bu)!=null||document.getElementById(bu+b)!=null)}return{SUFFIXE_VAR_CAL:"CalAWS",convertDateToInt:aw,showCalendarAWS:F,CreateGUICalendar:an,CalendarAWS:aJ,onClickImgIncrMonth:M,onClickImgDecrMonth:aU,onClickImgIncrYear:aL,onClickImgDecrYear:bm,onMouseOutImgIncrDecr:aX,onMouseUpImgIncrDecr:Y,onMouseDownImgDecrMonth:d,onMouseDownImgDecrYear:ab,onMouseDownImgIncrYear:g,onMouseDownImgIncrMonth:aD,setToday:R,gotoDateSelected:a0,hideTooltipDate:U,showTooltipDate:bh,endDrag:w,startDrag:am,createCalendarAWSInWin:e,changeDisplaySelectedDay:aV,selectDay:W,closeCalendar:bi,AWSCalendarExiste:aA,f1:F,f2:an}}()};
