var scwDateNow=new Date(Date.parse(new Date().toDateString()));var scwBaseYear=scwDateNow.getFullYear()-100;var scwDropDownYears=110;var scwLanguage;function scwSetDefaultLanguage(){try{scwSetLanguage()}catch(A){scwToday='<img src="'+images_path+'module/calendar/calendrier.gif" alt="" class="vam mr5" />Aujourd\'hui : le';scwDrag="Glisser / Déposer";scwArrMonthNames=["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"];scwArrWeekInits=["DI","LU","MA","ME","JE","VE","SA"];scwInvalidDateMsg="La date saisie est invalide.\n";scwOutOfRangeMsg="La date saisie est en dehors de la fourchette spécifiée.";scwDoesNotExistMsg="La date saisie n'existe pas.";scwInvalidAlert=["Date invalide (",") Ignorer."];scwDateDisablingError=["Erreur "," n'est pas un objet date."];scwRangeDisablingError=["Erreur "," doit &ecirc;tre entre 2 &eacute;l&eacute;ments."]}}var scwWeekStart=1;var scwWeekNumberDisplay=true;var scwWeekNumberBaseDay=4;var scwShowInvalidDateMsg=true,scwShowOutOfRangeMsg=true,scwShowDoesNotExistMsg=true,scwShowInvalidAlert=true,scwShowDateDisablingError=true,scwShowRangeDisablingError=true;var scwArrDelimiters=["/","-",".",","," "];var scwDateDisplayFormat="dd/mm/yy";var scwDateOutputFormat="DD/MM/YYYY";var scwDateInputSequence="DMY";var scwZindex=500;var scwBlnStrict=false;var scwEnabledDay=[true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true];var scwDisabledDates=new Array();var scwActiveToday=true;var scwOutOfRangeDisable=true;var scwAllowDrag=true;var scwClickToHide=false;document.writeln('<style type="text/css">.scw           {padding:1px;vertical-align:middle;}iframe.scw     {position:absolute;z-index:'+scwZindex+";top:0px;left:0px;visibility:hidden;width:1px;height:1px;}table.scw      {padding:0px;visibility:hidden;position:absolute;cursor:default;width:200px;top:0px;left:0px;z-index:"+(scwZindex+1)+";text-align:center;}</style>");document.writeln('<style type="text/css">/* IMPORTANT:  The SCW calendar script requires all                the classes defined here.*/table.scw      {padding:       1px;vertical-align:middle;border:        1px solid #D6D5D9; filter:progid:DXImageTransform.Microsoft.Shadow(color=#C6C6C6, Direction=120, Strength=3)font-size:     10px;font-family:   Arial,Helvetica,Sans-Serif;font-weight:   normal;}td.scwDrag,td.scwHead                 {padding:       0px 0px;text-align:    center}td.scwDrag                 {font-size:     10px;}select.scwHead             {margin:        3px 1px;}input.scwHead              {height:        17px;width:         17px;vertical-align:middle;text-align:    center;margin:        2px 1px;font-weight:   normal;font-size:     2px;font-family:   fixedSys; cursor:pointer}td.scwWeekNumberHead,td.scwWeek                 {padding:       0px;text-align:    center;font-weight:   normal;}td.scwFoot,td.scwFootHover,td.scwFoot:hover,td.scwFootDisabled         {padding:       0px;text-align:    center;font-weight:   normal;}table.scwCells             {text-align:    right;font-size:     10px;width:         100%;}td.scwCells,td.scwCellsHover,td.scwCells:hover,td.scwCellsDisabled,td.scwCellsExMonth,td.scwCellsExMonthHover,td.scwCellsExMonth:hover,td.scwCellsExMonthDisabled,td.scwCellsWeekend,td.scwCellsWeekendHover,td.scwCellsWeekend:hover,td.scwCellsWeekendDisabled,td.scwInputDate,td.scwInputDateHover,td.scwInputDate:hover,td.scwInputDateDisabled,td.scwWeekNo,td.scwWeeks                {padding:           3px;width:             16px;height:            16px;font-weight:       normal;vertical-align:    middle;}/* Blend the colours into your page here...    *//* Calendar background */table.scw                  {background-color:  #FFFFFF;}/* Drag Handle */td.scwDrag                 {background:url('+images_path+'module/calendar/fonddrag.gif) no-repeat; height:16px;color:             #FFFFFF;}/* Week number heading */td.scwWeekNumberHead       {color:             #1D6EA4;}/* Week day headings */td.scwWeek                 {color:             #990000; border:1px solid #cccccc;}/* Week numbers */td.scwWeekNo               {background-color:  #FFFFFF; border:1px solid #cccccc;color:             #990000;}/* Enabled Days *//* Week Day */td.scwCells                {background-color:  #FFFFFF;color:             #000000;}/* Day matching the input date */td.scwInputDate            {background-color:  #990000;color:             #FFFFFF;}/* Weekend Day */td.scwCellsWeekend         {background-color:  #EDEDED;color:             #333333;}/* Day outside the current month */td.scwCellsExMonth         {background-color:  #FFFFFF;color:             #999999;}/* Today selector */td.scwFoot                 {background-color:  #FFFFFF;color:             #990000; font-weight:normal; height:25px; cursor:hand}td.scwFoot span           {color:#990000}/* MouseOver/Hover formatting        If you want to "turn off" any of the formatting        then just set to the same as the standard format       above.        Note: The reason that the following are       implemented using both a class and a :hover       pseudoclass is because Opera handles the rendering       involved in the class swap very poorly and IE6        (and below) only implements pseudoclasses on the       anchor tag.*//* Active cells */td.scwCells:hover,td.scwCellsHover           {background-color:  #990000;cursor:            pointer;cursor:            hand;color:             #FFFFFF;}/* Day matching the input date */td.scwInputDate:hover,td.scwInputDateHover       {background-color:  #990000;cursor:            pointer;cursor:            hand;color:             #FFFFFF;}/* Weekend cells */td.scwCellsWeekend:hover,td.scwCellsWeekendHover    {background-color:  #990000;cursor:            pointer;cursor:            hand;color:             #FFFFFF;}/* Day outside the current month */td.scwCellsExMonth:hover,td.scwCellsExMonthHover    {background-color:  #990000;cursor:            pointer;cursor:            hand;color:             #FFFFFF;}/* Today selector */td.scwFoot:hover,td.scwFootHover            {color:             #990000;cursor:            pointer;cursor:            hand;font-weight:       normal; text-decoration:underline; height:25px}/* Disabled cells *//* Week Day *//* Day matching the input date */td.scwInputDateDisabled    {background-color:  #999999;color:             #000000;}td.scwCellsDisabled        {background-color:  #999999;color:             #000000;}/* Weekend Day */td.scwCellsWeekendDisabled {background-color:  #EDEDED;color:             #CC6666;}/* Day outside the current month */td.scwCellsExMonthDisabled {background-color:  #EDEDED;color:             #666666;}td.scwFootDisabled         {background-color:  #FFFFFF;color:             #FFFFFF;}</style>');var scwTargetEle,scwTriggerEle,scwMonthSum=0,scwBlnFullInputDate=false,scwPassEnabledDay=new Array(),scwSeedDate=new Date(),scwParmActiveToday=true,scwWeekStart=scwWeekStart%7,scwToday,scwDrag,scwArrMonthNames,scwArrWeekInits,scwInvalidDateMsg,scwOutOfRangeMsg,scwDoesNotExistMsg,scwInvalidAlert,scwDateDisablingError,scwRangeDisablingError;Date.prototype.scwFormat=function(E){var B=0,D="",A="";for(var C=0;C<=E.length;C++){if(C<E.length&&E.charAt(C)==D){B++}else{switch(D){case"y":case"Y":A+=(this.getFullYear()%Math.pow(10,B)).toString().scwPadLeft(B);break;case"m":case"M":A+=(B<3)?(this.getMonth()+1).toString().scwPadLeft(B):scwArrMonthNames[this.getMonth()];break;case"d":case"D":A+=this.getDate().toString().scwPadLeft(B);break;default:while(B-->0){A+=D}}if(C<E.length){D=E.charAt(C);B=1}}}return A};String.prototype.scwPadLeft=function(C){var A="";for(var B=0;B<(C-this.length);B++){A+="0"}return(A+this)};Function.prototype.runsAfterSCW=function(){var C=this,A=new Array(arguments.length);for(var B=0;B<A.length;++B){A[B]=arguments[B]}return function(){for(var D=0;D<arguments.length;++D){A[A.length]=arguments[D]}return(A.shift()==scwTriggerEle)?C.apply(this,A):null}};var scwNextActionReturn,scwNextAction;function showCal(B,A){scwShow(B,A)}function scwShow(E,D){scwTriggerEle=D;scwParmActiveToday=true;for(var B=0;B<7;B++){scwPassEnabledDay[(B+7-scwWeekStart)%7]=true;for(var A=2;A<arguments.length;A++){if(arguments[A]==B){scwPassEnabledDay[(B+7-scwWeekStart)%7]=false;if(scwDateNow.getDay()==B){scwParmActiveToday=false}}}}document.getElementById("scwYears").style.visibility="";document.getElementById("scwMonths").style.visibility="";scwSeedDate=scwDateNow;E.value=E.value.replace(/^\s+/,"").replace(/\s+$/,"");scwSetDefaultLanguage();document.getElementById("scwDragText").innerHTML=scwDrag;document.getElementById("scwMonths").options.length=0;for(B=0;B<scwArrMonthNames.length;B++){document.getElementById("scwMonths").options[B]=new Option(scwArrMonthNames[B],scwArrMonthNames[B])}document.getElementById("scwYears").options.length=0;for(B=0;B<scwDropDownYears;B++){document.getElementById("scwYears").options[B]=new Option((scwBaseYear+B),(scwBaseYear+B))}for(B=0;B<scwArrWeekInits.length;B++){document.getElementById("scwWeekInit"+B).innerHTML=scwArrWeekInits[(B+scwWeekStart)%scwArrWeekInits.length]}if(document.getElementById("scwFoot")){document.getElementById("scwFoot").innerHTML=scwToday+" "+scwDateNow.scwFormat(scwDateDisplayFormat)}if(E.value.length==0){scwBlnFullInputDate=false;if((new Date(scwBaseYear+scwDropDownYears-1,11,31))<scwSeedDate||(new Date(scwBaseYear,0,1))>scwSeedDate){scwSeedDate=new Date(scwBaseYear+Math.floor(scwDropDownYears/2),5,1)}}else{function H(J){var N=new Array(),I=E.value.split(new RegExp("[\\"+scwArrDelimiters.join("\\")+"]+","g"));if(I[0].length==0){I.splice(0,1)}if(I[I.length-1].length==0){I.splice(I.length-1,1)}scwBlnFullInputDate=false;switch(I.length){case 1:N[0]=parseInt(I[0],10);N[1]="6";N[2]=1;break;case 2:N[0]=parseInt(I[scwDateInputSequence.replace(/D/i,"").search(/Y/i)],10);N[1]=I[scwDateInputSequence.replace(/D/i,"").search(/M/i)];N[2]=1;break;case 3:N[0]=parseInt(I[scwDateInputSequence.search(/Y/i)],10);N[1]=I[scwDateInputSequence.search(/M/i)];N[2]=parseInt(I[scwDateInputSequence.search(/D/i)],10);scwBlnFullInputDate=true;break;default:N[0]=0;N[1]=0;N[2]=0}var L=/^(0?[1-9]|[1-2]\d|3[0-1])$/,K=new RegExp("^(0?[1-9]|1[0-2]|"+scwArrMonthNames.join("|")+")$","i"),M=/^(\d{1,2}|\d{4})$/;if(M.exec(N[0])==null||K.exec(N[1])==null||L.exec(N[2])==null){if(scwShowInvalidDateMsg){alert(scwInvalidDateMsg+scwInvalidAlert[0]+J+scwInvalidAlert[1])}scwBlnFullInputDate=false;N[0]=scwBaseYear+Math.floor(scwDropDownYears/2);N[1]="6";N[2]=1}return N}scwArrSeedDate=H(E.value);if(scwArrSeedDate[0]<100){scwArrSeedDate[0]+=(scwArrSeedDate[0]>50)?1900:2000}if(scwArrSeedDate[1].search(/\d+/)!=0){month=scwArrMonthNames.join("|").toUpperCase().search(scwArrSeedDate[1].substr(0,3).toUpperCase());scwArrSeedDate[1]=Math.floor(month/4)+1}scwSeedDate=new Date(scwArrSeedDate[0],scwArrSeedDate[1]-1,scwArrSeedDate[2])}if(isNaN(scwSeedDate)){if(scwShowInvalidDateMsg){alert(scwInvalidDateMsg+scwInvalidAlert[0]+E.value+scwInvalidAlert[1])}scwSeedDate=new Date(scwBaseYear+Math.floor(scwDropDownYears/2),5,1);scwBlnFullInputDate=false}else{if((new Date(scwBaseYear,0,1))>scwSeedDate){if(scwBlnStrict&&scwShowOutOfRangeMsg){alert(scwOutOfRangeMsg)}scwSeedDate=new Date(scwBaseYear,0,1);scwBlnFullInputDate=false}else{if((new Date(scwBaseYear+scwDropDownYears-1,11,31))<scwSeedDate){if(scwBlnStrict&&scwShowOutOfRangeMsg){alert(scwOutOfRangeMsg)}scwSeedDate=new Date(scwBaseYear+Math.floor(scwDropDownYears)-1,11,1);scwBlnFullInputDate=false}else{if(scwBlnStrict&&scwBlnFullInputDate&&(scwSeedDate.getDate()!=scwArrSeedDate[2]||(scwSeedDate.getMonth()+1)!=scwArrSeedDate[1]||scwSeedDate.getFullYear()!=scwArrSeedDate[0])){if(scwShowDoesNotExistMsg){alert(scwDoesNotExistMsg)}scwSeedDate=new Date(scwSeedDate.getFullYear(),scwSeedDate.getMonth()-1,1);scwBlnFullInputDate=false}}}}for(var B=0;B<scwDisabledDates.length;B++){if(!((typeof scwDisabledDates[B]=="object")&&(scwDisabledDates[B].constructor==Date))){if((typeof scwDisabledDates[B]=="object")&&(scwDisabledDates[B].constructor==Array)){var G=true;if(scwDisabledDates[B].length!=2){if(scwShowRangeDisablingError){alert(scwRangeDisablingError[0]+scwDisabledDates[B]+scwRangeDisablingError[1])}G=false}else{for(var A=0;A<scwDisabledDates[B].length;A++){if(!((typeof scwDisabledDates[B][A]=="object")&&(scwDisabledDates[B][A].constructor==Date))){if(scwShowRangeDisablingError){alert(scwDateDisablingError[0]+scwDisabledDates[B][A]+scwDateDisablingError[1])}G=false}}}if(G&&(scwDisabledDates[B][0]>scwDisabledDates[B][1])){scwDisabledDates[B].reverse()}}else{if(scwShowRangeDisablingError){alert(scwDateDisablingError[0]+scwDisabledDates[B]+scwDateDisablingError[1])}}}}scwMonthSum=12*(scwSeedDate.getFullYear()-scwBaseYear)+scwSeedDate.getMonth();document.getElementById("scwYears").options.selectedIndex=Math.floor(scwMonthSum/12);document.getElementById("scwMonths").options.selectedIndex=(scwMonthSum%12);document.getElementById("scwDrag").style.display=(scwAllowDrag)?((document.getElementById("scwIFrame")||document.getElementById("scwIEgte7"))?"block":"table-row"):"none";scwShowMonth(0);var C=parseInt(E.offsetTop,10)+parseInt(E.offsetHeight,10),F=parseInt(E.offsetLeft,10);scwTargetEle=E;if(!window.opera){while(E.tagName!="BODY"&&E.tagName!="HTML"){C-=parseInt(E.scrollTop,10);F-=parseInt(E.scrollLeft,10);E=E.parentNode}E=scwTargetEle}do{E=E.offsetParent;C+=parseInt(E.offsetTop,10);F+=parseInt(E.offsetLeft,10)}while(E.tagName!="BODY"&&E.tagName!="HTML");document.getElementById("scw").style.top=C+"px";document.getElementById("scw").style.left=F+"px";if(document.getElementById("scwIframe")){document.getElementById("scwIframe").style.top=C+"px";document.getElementById("scwIframe").style.left=F+"px";document.getElementById("scwIframe").style.width=(document.getElementById("scw").offsetWidth-6)+"px";document.getElementById("scwIframe").style.height=(document.getElementById("scw").offsetHeight-6)+"px";document.getElementById("scwIframe").style.visibility="visible"}document.getElementById("scw").style.visibility="visible";if(typeof event=="undefined"){D.parentNode.addEventListener("click",scwStopPropagation,false)}else{event.cancelBubble=true}}function scwHide(){document.getElementById("scw").style.visibility="hidden";if(document.getElementById("scwIframe")){document.getElementById("scwIframe").style.visibility="hidden"}if(typeof scwNextAction!="undefined"&&scwNextAction!=null){scwNextActionReturn=scwNextAction();scwNextAction=null}}function scwCancel(A){if(scwClickToHide){scwHide()}scwStopPropagation(A)}function scwStopPropagation(A){if(A.stopPropagation){A.stopPropagation()}else{A.cancelBubble=true}}function scwBeginDrag(E){var G=document.getElementById("scw");var C=E.clientX,A=E.clientY,D=G;do{C-=parseInt(D.offsetLeft,10);A-=parseInt(D.offsetTop,10);D=D.offsetParent}while(D.tagName!="BODY"&&D.tagName!="HTML");if(document.addEventListener){document.addEventListener("mousemove",F,true);document.addEventListener("mouseup",B,true)}else{G.attachEvent("onmousemove",F);G.attachEvent("onmouseup",B);G.setCapture()}scwStopPropagation(E);function F(H){if(!H){H=window.event}G.style.left=(H.clientX-C)+"px";G.style.top=(H.clientY-A)+"px";if(document.getElementById("scwIframe")){document.getElementById("scwIframe").style.left=(H.clientX-C)+"px";document.getElementById("scwIframe").style.top=(H.clientY-A)+"px"}scwStopPropagation(H)}function B(H){if(!H){H=window.event}if(document.removeEventListener){document.removeEventListener("mousemove",F,true);document.removeEventListener("mouseup",B,true)}else{G.detachEvent("onmouseup",B);G.detachEvent("onmousemove",F);G.releaseCapture()}scwStopPropagation(H)}}function scwShowMonth(F){var P=new Date(Date.parse(new Date().toDateString())),D=new Date();P.setHours(12);scwSelYears=document.getElementById("scwYears");scwSelMonths=document.getElementById("scwMonths");if(scwSelYears.options.selectedIndex>-1){scwMonthSum=12*(scwSelYears.options.selectedIndex)+F;if(scwSelMonths.options.selectedIndex>-1){scwMonthSum+=scwSelMonths.options.selectedIndex}}else{if(scwSelMonths.options.selectedIndex>-1){scwMonthSum+=scwSelMonths.options.selectedIndex}}P.setFullYear(scwBaseYear+Math.floor(scwMonthSum/12),(scwMonthSum%12),1);document.getElementById("scwWeek_").style.display=(scwWeekNumberDisplay)?((document.getElementById("scwIFrame")||document.getElementById("scwIEgte7"))?"block":"table-cell"):"none";if((12*parseInt((P.getFullYear()-scwBaseYear),10))+parseInt(P.getMonth(),10)<(12*scwDropDownYears)&&(12*parseInt((P.getFullYear()-scwBaseYear),10))+parseInt(P.getMonth(),10)>-1){scwSelYears.options.selectedIndex=Math.floor(scwMonthSum/12);scwSelMonths.options.selectedIndex=(scwMonthSum%12);scwCurMonth=P.getMonth();P.setDate((((P.getDay()-scwWeekStart)<0)?-6:1)+scwWeekStart-P.getDay());var B=new Date(P.getFullYear(),P.getMonth(),P.getDate()).valueOf();D=new Date(P);var N=document.getElementById("scwFoot");function K(){Q(scwDateNow)}if(scwDisabledDates.length==0){if(scwActiveToday&&scwParmActiveToday){N.onclick=K;N.className="scwFoot";if(document.getElementById("scwIFrame")){N.onmouseover=J;N.onmouseout=J}}else{N.onclick=null;N.className="scwFootDisabled";if(document.getElementById("scwIFrame")){N.onmouseover=null;N.onmouseout=null}if(document.addEventListener){N.addEventListener("click",scwStopPropagation,false)}else{N.attachEvent("onclick",scwStopPropagation)}}}else{for(var H=0;H<scwDisabledDates.length;H++){if(!scwActiveToday||!scwParmActiveToday||((typeof scwDisabledDates[H]=="object")&&(((scwDisabledDates[H].constructor==Date)&&scwDateNow.valueOf()==scwDisabledDates[H].valueOf())||((scwDisabledDates[H].constructor==Array)&&scwDateNow.valueOf()>=scwDisabledDates[H][0].valueOf()&&scwDateNow.valueOf()<=scwDisabledDates[H][1].valueOf())))){N.onclick=null;N.className="scwFootDisabled";if(document.getElementById("scwIFrame")){N.onmouseover=null;N.onmouseout=null}if(document.addEventListener){N.addEventListener("click",scwStopPropagation,false)}else{N.attachEvent("onclick",scwStopPropagation)}break}else{N.onclick=K;N.className="scwFoot";if(document.getElementById("scwIFrame")){N.onmouseover=J;N.onmouseout=J}}}}function Q(R){scwTargetEle.value=R.scwFormat(scwDateOutputFormat);scwTargetEle.onchange();scwHide()}function C(R){var T=M(R),S=new Date(D);if(T.nodeType==3){T=T.parentNode}S.setDate(D.getDate()+parseInt(T.id.substr(8),10));Q(S)}function J(R){var S=M(R);if(S.nodeType==3){S=S.parentNode}switch(S.className){case"scwCells":S.className="scwCellsHover";break;case"scwCellsHover":S.className="scwCells";break;case"scwCellsExMonth":S.className="scwCellsExMonthHover";break;case"scwCellsExMonthHover":S.className="scwCellsExMonth";break;case"scwCellsWeekend":S.className="scwCellsWeekendHover";break;case"scwCellsWeekendHover":S.className="scwCellsWeekend";break;case"scwFoot":S.className="scwFootHover";break;case"scwFootHover":S.className="scwFoot";break;case"scwInputDate":S.className="scwInputDateHover";break;case"scwInputDateHover":S.className="scwInputDate"}return true}function M(R){if(!R){R=event}return R.target||R.srcElement}function E(S){var U=new Date(S);U.setDate(U.getDate()-U.getDay()+scwWeekNumberBaseDay+((S.getDay()>scwWeekNumberBaseDay)?7:0));var T=new Date(U.getFullYear(),0,1);T.setDate(T.getDate()-T.getDay()+scwWeekNumberBaseDay);if(T<new Date(U.getFullYear(),0,1)){T.setDate(T.getDate()+7)}var R=new Date(T-scwWeekNumberBaseDay+S.getDay());if(R>T){R.setDate(R.getDate()-7)}var V="0"+(Math.round((U-T)/604800000,0)+1);return V.substring(V.length-2,V.length)}var G=document.getElementById("scwCells");for(i=0;i<G.childNodes.length;i++){var O=G.childNodes[i];if(O.nodeType==1&&O.tagName=="TR"){if(scwWeekNumberDisplay){O.childNodes[0].innerHTML=E(P);O.childNodes[0].style.display=(document.getElementById("scwIFrame")||document.getElementById("scwIEgte7"))?"block":"table-cell"}else{O.childNodes[0].style.display="none"}for(j=1;j<O.childNodes.length;j++){var I=O.childNodes[j];if(I.nodeType==1&&I.tagName=="TD"){O.childNodes[j].innerHTML=P.getDate();var L=O.childNodes[j],A=(scwOutOfRangeDisable&&(P<(new Date(scwBaseYear,0,1))||P>(new Date(scwBaseYear+scwDropDownYears-1,11,31))))?true:false;for(var H=0;H<scwDisabledDates.length;H++){if((typeof scwDisabledDates[H]=="object")&&(scwDisabledDates[H].constructor==Date)&&B==scwDisabledDates[H].valueOf()){A=true}else{if((typeof scwDisabledDates[H]=="object")&&(scwDisabledDates[H].constructor==Array)&&B>=scwDisabledDates[H][0].valueOf()&&B<=scwDisabledDates[H][1].valueOf()){A=true}}}if(A||!scwEnabledDay[j-1+(7*((i*G.childNodes.length)/6))]||!scwPassEnabledDay[(j-1+(7*(i*G.childNodes.length/6)))%7]){O.childNodes[j].onclick=null;if(document.getElementById("scwIFrame")){O.childNodes[j].onmouseover=null;O.childNodes[j].onmouseout=null}L.className=(P.getMonth()!=scwCurMonth)?"scwCellsExMonthDisabled":(scwBlnFullInputDate&&P.toDateString()==scwSeedDate.toDateString())?"scwInputDateDisabled":(P.getDay()%6==0)?"scwCellsWeekendDisabled":"scwCellsDisabled"}else{O.childNodes[j].onclick=C;if(document.getElementById("scwIFrame")){O.childNodes[j].onmouseover=J;O.childNodes[j].onmouseout=J}L.className=(P.getMonth()!=scwCurMonth)?"scwCellsExMonth":(scwBlnFullInputDate&&P.toDateString()==scwSeedDate.toDateString())?"scwInputDate":(P.getDay()%6==0)?"scwCellsWeekend":"scwCells"}P.setDate(P.getDate()+1);B=new Date(P.getFullYear(),P.getMonth(),P.getDate()).valueOf()}}}}}document.getElementById("scw").style.visibility="hidden";document.getElementById("scw").style.visibility="visible"}document.write("<!--[if gte IE 7]><div id='scwIEgte7'></div><![endif]--><!--[if lt  IE 7]><iframe class='scw' src='js/scwblank.htm' id='scwIframe' name='scwIframe' frameborder='0' scrolling='no'></iframe><![endif]--><table id='scw' class='scw'><tr class='scw'><td class='scw'><table class='scwHead' id='scwHead' width='100%' cellspacing='0' cellpadding='0'><tr id='scwDrag' style='display:none;'><td colspan='4' class='scwDrag' onmousedown='scwBeginDrag(event);' style='cursor:move'><div id='scwDragText'></div></td></tr><tr class='scwHead' ><td class='scwHead'><img src='"+images_path+"module/calendar/gauche.gif' class='scwHead cursor' id='scwHeadLeft' onclick='scwShowMonth(-1)' title='mois pr&eacute;c&eacute;dent' alt='mois pr&eacute;c&eacute;dent' /></td><td class='scwHead'><select id='scwMonths' class='scwHead' onchange='scwShowMonth(0);'></select></td><td class='scwHead'><select id='scwYears' class='scwHead' onchange='scwShowMonth(0);'></select></td><td class='scwHead'><img src='"+images_path+"module/calendar/droite.gif' class='scwHead cursor' id='scwHeadRight' onclick='scwShowMonth(1)' title='mois suivant' alt='mois suivant' /></td></td></tr></table></td></tr><tr class='scw'><td class='scw'><table class='scwCells' align='center'><thead><tr><td class='scwWeekNumberHead' id='scwWeek_' ></td>");for(i=0;i<7;i++){document.write("<td class='scwWeek' id='scwWeekInit"+i+"'></td>")}document.write("</tr></thead><tbody id='scwCells' onClick='scwStopPropagation(event);'>");for(i=0;i<6;i++){document.write("<tr><td class='scwWeekNo' id='scwWeek_"+i+"'></td>");for(j=0;j<7;j++){document.write("<td class='scwCells' id='scwCell_"+(j+(i*7))+"'></td>")}document.write("</tr>")}document.write("</tbody>");if((new Date(scwBaseYear+scwDropDownYears,11,32))>scwDateNow&&(new Date(scwBaseYear,0,0))<scwDateNow){document.write("<tfoot class='scwFoot'><tr class='scwFoot'><td class='scwFoot' id='scwFoot' colspan='8'></td></tr></tfoot>")}document.write("</table></td></tr></table>");if(document.addEventListener){document.getElementById("scw").addEventListener("click",scwCancel,false);document.getElementById("scwHeadLeft").addEventListener("click",scwStopPropagation,false);document.getElementById("scwMonths").addEventListener("click",scwStopPropagation,false);document.getElementById("scwMonths").addEventListener("change",scwStopPropagation,false);document.getElementById("scwYears").addEventListener("click",scwStopPropagation,false);document.getElementById("scwYears").addEventListener("change",scwStopPropagation,false);document.getElementById("scwHeadRight").addEventListener("click",scwStopPropagation,false)}else{document.getElementById("scw").attachEvent("onclick",scwCancel);document.getElementById("scwHeadLeft").attachEvent("onclick",scwStopPropagation);document.getElementById("scwMonths").attachEvent("onclick",scwStopPropagation);document.getElementById("scwMonths").attachEvent("onchange",scwStopPropagation);document.getElementById("scwYears").attachEvent("onclick",scwStopPropagation);document.getElementById("scwYears").attachEvent("onchange",scwStopPropagation);document.getElementById("scwHeadRight").attachEvent("onclick",scwStopPropagation)}if(document.addEventListener){document.addEventListener("click",scwHide,false)}else{document.attachEvent("onclick",scwHide)};
