var Counter=function(a,b){this.count=parseInt(a,10);this.selectionDeCvIds=b;this.HTML_COUNT_NUMBER_ID_PREFIX="count";this.HTML_COUNT_S_TEXT_ID_PREFIX="suffix";this.refreshView()};Counter.prototype.increase=function(){this.count++;this.refreshView()};Counter.prototype.decrease=function(){this.count--;if(this.count<0){this.count=0}this.refreshView()};Counter.updateCheck=function(b,a){if(b){a.increase()}else{a.decrease()}};Counter.prototype.refreshView=function(){for(var a=0;a<this.selectionDeCvIds.length;++a){document.getElementById("count"+this.selectionDeCvIds[a]).innerHTML=this.count;if(this.count<=0){document.getElementById("suffix"+this.selectionDeCvIds[a]).innerHTML="";document.getElementById(this.selectionDeCvIds[a]).className="comp-selecZone-inactive"}else{document.getElementById("suffix"+this.selectionDeCvIds[a]).innerHTML="(s)";document.getElementById(this.selectionDeCvIds[a]).className="comp-selecZone-active"}}};Counter.prototype.setCount=function(a){this.count=a;this.refreshView()};Counter.prototype.getCount=function(){return this.count};var Calendar=function(){};Calendar.TODAY=new Date();Calendar.TOMORROW=new Date();Calendar.TOMORROW.setDate(Calendar.TOMORROW.getDate()+1);Calendar.YESTERDAY=new Date();Calendar.YESTERDAY.setDate(Calendar.YESTERDAY.getDate()-1);Calendar.propositionFilterCalendarOptions={close:true,maxdate:Calendar.YESTERDAY,title:"Calendrier",START_WEEKDAY:1,MDY_DAY_POSITION:1,MDY_MONTH_POSITION:2,MDY_YEAR_POSITION:3,MD_DAY_POSITION:1,MD_MONTH_POSITION:2,MONTHS_SHORT:["Jan","F\u00e9v","Mar","Avr","Mai","Jui","Jul","Ao\u00fb","Sep","Oct","Nov","D\u00e9c"],MONTHS_LONG:["Janvier","F\u00e9vrier","Mars","Avril","Mai","Juin","Juillet","Ao\u00fbt","Septembre","Octobre","Novembre","D\u00e9cembre"],WEEKDAYS_1CHAR:["D","L","M","M","J","V","S"],WEEKDAYS_SHORT:["Di","Lu","Ma","Me","Je","Ve","Sa"],WEEKDAYS_MEDIUM:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],WEEKDAYS_LONG:["Dimanche","Lundi","Mardi","Mercredi","Jeudi","Vendredi","Samedi"]};Calendar.handleSelect=function(g,f,c){var a=f[0];var b=a[0];var h=b[0],d=b[1],i=b[2];var e=document.getElementById(c.inputId);e.value=i+"/"+d+"/"+h};Calendar.validateDate=function(c,b){var a=b.split("/");return !c.isDateOOB(new Date(a[2],parseInt(a[1])-1,a[0]))};Calendar.placeCalendar=function(b,a){var d=YAHOO.util.Dom.getX(a);var c=YAHOO.util.Dom.getY(a);document.body.appendChild(document.getElementById(b));document.getElementById(b).style.zIndex=Calendar.count;Calendar.count=Calendar.count+1;YAHOO.util.Dom.setX(b,d);YAHOO.util.Dom.setY(b,c+20)};Calendar.count=1;var DomUtils={};DomUtils.showId=function(a){document.getElementById(a).style.display=""};DomUtils.hideId=function(a){document.getElementById(a).style.display="none"};DomUtils.switchVisibilities=function(b){var d=b.split(",");for(var a=0;a<d.length;++a){var c=d[a];if(document.getElementById(c)){DomUtils.switchVisibility(c)}}};DomUtils.switchVisibility=function(a){if(DomUtils.isVisible(a)){DomUtils.hideId(a)}else{DomUtils.showId(a)}};DomUtils.isVisible=function(a){return document.getElementById(a).style.display!="none"};var BlocTitle={};BlocTitle.switchText=function(b){if(b.className=="comp-blocTitle-hideMain"){b.className="comp-blocTitle-showMain"}else{b.className="comp-blocTitle-hideMain"}};var AfficherCriteres={};AfficherCriteres.switchText=function(b){var c=document.getElementById(b);if(c.className=="comp-afficherCritere-hideMain"){c.className="comp-afficherCritere-showMain"}else{c.className="comp-afficherCritere-hideMain"}};var Tab=function(a){this.id=a;this.selectedNum=null};Tab.prototype.show=function(a){if(this.selectedNum==a){return}if(this.selectedNum!=null){this.hide(this.selectedNum)}document.getElementById(this.getHeader(a)).className="comp-tab-headerSelected";document.getElementById(this.getContent(a)).className="comp-tab-contentShown";this.selectedNum=a};Tab.prototype.hide=function(a){document.getElementById(this.getHeader(a)).className="comp-tab-header";document.getElementById(this.getContent(a)).className="comp-tab-contentHidden"};Tab.prototype.getHeader=function(a){return this.id+"_header_"+a};Tab.prototype.getContent=function(a){return this.id+"_content_"+a};function redirect(a){window.location=a}function hole(){}var regNumerique=new RegExp("^([0-9]+)$");function isNumerique(a){return regNumerique.test(a)}Counter.refreshStyle=function(d,c,a){var b=c.checked;if(b&&a=="true"){document.getElementById(d).className="bdp-checkBox"}else{if(b&&a=="false"){document.getElementById(d).className="bdp-checkBoxGris"}else{document.getElementById(d).className="centerDivContenuG"}}};var BlocCachable={};BlocCachable.switchBloc=function(a){if(YAHOO.util.Dom.hasClass(a,"comp-blocCachable-mainClosed")){BlocCachable.openBloc(a)}else{BlocCachable.closeBloc(a)}};BlocCachable.closeBloc=function(a){if(YAHOO.util.Dom.hasClass(a,"comp-blocCachable-mainClosed")){return}YAHOO.util.Dom.removeClass(a,"comp-blocCachable-mainOpened");YAHOO.util.Dom.addClass(a,"comp-blocCachable-mainClosed")};BlocCachable.openBloc=function(a){if(YAHOO.util.Dom.hasClass(a,"comp-blocCachable-mainOpened")){return}YAHOO.util.Dom.addClass(a,"comp-blocCachable-mainOpened");YAHOO.util.Dom.removeClass(a,"comp-blocCachable-mainClosed")};BlocCachable.closeGroup=function(c){var a=YAHOO.util.Dom.getElementsByClassName("bloc-group-"+c,null,document.body);for(var b=0;b<a.length;++b){BlocCachable.closeBloc(a[b].id)}DomUtils.hideId(c+"-moins");DomUtils.showId(c+"-plus")};BlocCachable.openGroup=function(c){var a=YAHOO.util.Dom.getElementsByClassName("bloc-group-"+c,null,document.body);for(var b=0;b<a.length;++b){BlocCachable.openBloc(a[b].id)}DomUtils.showId(c+"-moins");DomUtils.hideId(c+"-plus")};