// Implantation du calendrier
var calendTrn = new CalendarPopup("calendardiv");
calendTrn.setCssPrefix("CAL_STYLE"); calendTrn.setYearSelectStartOffset(0); calendTrn.setWeekStartDay(1); calendTrn.setDayHeaders("D","L","M","M","J","V","S"); calendTrn.setTodayText("Aujourd'hui"); calendTrn.setMonthNames("Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre");  
today = new Date;
mo = today.getMonth()+1;
day = today.getDate()-1;
year = today.getFullYear();

// Désactivation de dates dans le passé
//if (day == 0){
// mo--;
// if (mo == 0){ mo = 12; year = year-1; }
// if (mo == 2){ if ((year%4) == 0) day = 29; else day = 28; } else { if ((mo == 1) || (mo == 3) || (mo == 5) || (mo == 7) || (mo == 8) || (mo == 10) || (mo == 12)) day = 31; else day = 30; }
//}

//date = year + "-" + mo + "-" + day;
//date = "2005-05-29";
//calendTrn.addDisabledDates(null, date);

// Désactivation de dates dans le futur
//mo = mo + 6; if (mo > 12){ year++; mo -= 12; } 
//datefintrn = year + "-" + mo + "-28"; 
//calendTrn.addDisabledDates(datefintrn, null);
