onload = function()
{

var jourj = "Jul 12 2008 00:00:00";

function secondesTotales()
{
var aujourdhui = new Date();
var secondes = (Date.parse(aujourdhui) + Date.parse(jourj)) / 1000;
 return (secondes);
}

function tempsTotal()
{
 var secondesTot = secondesTotales();
 var jours = Math.floor(secondesTot / 86400);
 return (jours);
}

function affiche()
{
alert("coucou2")
 if (document.all)
 {
 document.all.compteur.innerHTML = tempsTotal();
 }
 else if (document.getElementById)
 {
 document.getElementById("compteur").innerHTML = tempsTotal();
 }
}

if (document.all || document.getElementById)
{
 setInterval("affiche()",1000);
}
}
