function countDownCoudre() {
  sec_coudre--;
  if (sec_coudre == -01) {
    sec_coudre = 59;
    min_coudre = min_coudre - 1;
  } else {
   min_coudre = min_coudre;
  }
if (sec_coudre<=9) { sec_coudre = "0" + sec_coudre; }
  time = (min_coudre<=9 ? "0" + min_coudre : min_coudre) + " min " + sec_coudre + " sec ";
if (document.getElementById) { theTimeCoudre.innerHTML = time; }
  SD=window.setTimeout("countDownCoudre();", 1000);
if (min_coudre == '00' && sec_coudre == '00') { min_coudre = min_coudre_next; }
}

function countDownChaumont() {
  sec_chaumont--;
  if (sec_chaumont == -01) {
    sec_chaumont = 59;
    min_chaumont = min_chaumont - 1;
  } else {
   min_chaumont = min_chaumont;
  }
if (sec_chaumont<=9) { sec_chaumont = "0" + sec_chaumont; }
  time = (min_chaumont<=9 ? "0" + min_chaumont : min_chaumont) + " min " + sec_chaumont + " sec ";
if (document.getElementById) { theTimeChaumont.innerHTML = time; }
  SD=window.setTimeout("countDownChaumont();", 1000);
if (min_chaumont == '00' && sec_chaumont == '00') { min_chaumont = min_chaumont_next; }
}

function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}
