function CreateDate(Datum)
 { if (Datum) this.Date = new Date(Datum)
    else this.Date = new Date();
   this.DayOfWeekName = GetDayOfWeekName;
   this.MonthName = GetMonthName;
   this.Format = FormatDate;
 }

function GetMonthName()
 { var Mois = new Array("janvier","f&eacute;vrier","mars","avril","mai","juin","juillet","aout","septembre","octobre","novembre","d&eacute;cembre");
   return Mois[this.Date.getMonth()];
 }

function GetDayOfWeekName()
 { var Jours = new Array("dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi");
   return Jours[this.Date.getDay()];
 }

function FormatDate(Format)
 { /* [d] = jour mois numérique
      [dd] = jour mois numérique
      [ddd] = jour de la semaine minuscule
      [Ddd] = jour de la semaine 1ère lettre majuscule
      [DDD] = jour de la semaine majuscule
      [m] = mois numérique
      [mm] = mois numérique
      [mmm] = mois minuscule
      [Mmm] = mois 1ère lettre majuscule
      [MMM] = mois majuscule
      [yyyy] = Année
      [hh] = heures
      [min] = minutes
      [ss] = secondes
   */
   var SearchArray = new Array("[d]","[dd]","[ddd]","[Ddd]","[DDD]","[m]","[mm]","[mmm]","[Mmm]","[MMM]","[yyyy]","[hh]","[min]","[ss]");
   for (SearchIdx in SearchArray)
    { position = Format.indexOf(SearchArray[SearchIdx]);
      if (position != -1)
       { FirstPart = Format.substring(0,position);
         SecondPart = Format.substring(position+SearchArray[SearchIdx].length, Format.length);
         if (SearchArray[SearchIdx] == "[d]") Format = FirstPart + this.Date.getDate() + SecondPart;
         if (SearchArray[SearchIdx] == "[dd]") Format = FirstPart + ((this.Date.getDate()<10) ? "0" : "") +this.Date.getDate() + SecondPart;
         if (SearchArray[SearchIdx] == "[ddd]") Format = FirstPart + this.DayOfWeekName() + SecondPart;
         if (SearchArray[SearchIdx] == "[Ddd]") Format = FirstPart + this.DayOfWeekName() + SecondPart;
         if (SearchArray[SearchIdx] == "[DDD]") Format = FirstPart + this.DayOfWeekName() + SecondPart;
         if (SearchArray[SearchIdx] == "[m]") Format = FirstPart + (this.Date.getMonth()+1) + SecondPart;
         if (SearchArray[SearchIdx] == "[mm]") Format = FirstPart +((this.Date.getMonth()<9) ? "0" : "")+ (this.Date.getMonth()+1) + SecondPart;
         if (SearchArray[SearchIdx] == "[mmm]") Format = FirstPart + this.MonthName() + SecondPart;
         if (SearchArray[SearchIdx] == "[Mmm]") Format = FirstPart + this.MonthName() + SecondPart;
         if (SearchArray[SearchIdx] == "[MMM]") Format = FirstPart + this.MonthName() + SecondPart;
         if (SearchArray[SearchIdx] == "[yyyy]") Format = FirstPart + this.Date.getFullYear() + SecondPart;
         if (SearchArray[SearchIdx] == "[hh]") Format = FirstPart +((this.Date.getHours()<10) ? "0" : "")+ this.Date.getHours() + SecondPart;
         if (SearchArray[SearchIdx] == "[min]") Format = FirstPart +((this.Date.getMinutes()<10) ? "0" : "")+ this.Date.getMinutes() + SecondPart;
         if (SearchArray[SearchIdx] == "[ss]") Format = FirstPart +((this.Date.getSeconds()<10) ? "0" : "")+ this.Date.getSeconds() + SecondPart;
       }
    }
   return Format;
 }

objToday = new CreateDate();
objLastUpdate = new CreateDate(document.lastModified);
