  // Teste si le mail a une forme correcte
  function checkmail(email) {
     var reg = /^[a-z0-9._-]+@[a-z0-9.-]{2,}[.][a-z]{2,4}$/
     return (reg.exec(email) != null)
  }

  function startTime() {
    var today = new Date();
    var mois = today.getMonth() + 1;
    var jour = today.getDate();
	  var h = today.getHours();
    var m = today.getMinutes();
    var s = today.getSeconds();
	
    mois = checkTen(mois);
    jour = checkTen(jour);
    m = checkTen(m);
    s = checkTen(s);
    document.getElementById('horloge').innerHTML = jour + "/" + mois + "/" + today.getYear() +
	                                               " - " + h + ":" + m + ":" + s;
    t = setTimeout('startTime()', 1000);
  }

  // Add a zero in front of numbers < 10
  function checkTen(iVal) {
    if (iVal < 10) {iVal= "0" + iVal}
    return iVal;
  }
	
	function DoReset() {
		document.location.href = "index.php";
	}
	
	function HilightInput(elem) {
//	  elem.height = '18';
	  elem.style.background = '#FCF';
//		elem.style.color='#000';
//		elem.style.borderstyle='outset';
//		elem.style.border = '1px solid #7F9DB9';
		elem.focus();
	}
	
	function ResetInput(elem) {
//	  elem.height = '18';
		elem.style.background = '#FFF';
//		elem.style.border = '1px solid #7F9DB9';
	}
	
	