function runClock() {
  today   = new Date();
  hours   = today.getHours();
  minutes = today.getMinutes();
  seconds = today.getSeconds();
   month = today.getMonth()+1;
  year = today.getYear();
  dat = today.getDay();
  day = today.getDate();
  year= ((year < 1000) ? year-100+2000 : year);
  if(dat==0){j="Dimanche";}
  if(dat==1){j="Lundi";}
  if(dat==2){j="Mardi";}
  if(dat==3){j="Mercredi";}
  if(dat==4){j="Jeudi";}
  if(dat==5){j="Vendredi";}
  if(dat==6){j="Samedi";}
  
  day=((day < 10) ? "0" : "") + day;
  timeValue =j+" "+day+"/"+month+"/"+year+" - "+hours;
  

  // Les deux prochaines conditions ne servent que pour l'affichage.
  // Si le nombre de minute est inférieur à 10, alors on rajoute un 0 devant...

  timeValue += ((minutes < 10) ? ":0" : ":") + minutes;
  timeValue += ((seconds < 10) ? ":0" : ":") + seconds;
  document.getElementById("time").value = timeValue;
  timerRunning = true;
}
timerID = setInterval(runClock,1000);
