function decompteur(jour,mois,annee,heure,minute,seconde){Resultat="";now=new Date();goal=new Date(annee,mois-1,jour,heure,minute,seconde);ts=Math.abs((now.getTime()/1000)-(goal.getTime()/1000));if((goal.getTime()/1000)<(now.getTime()/1000)){location.reload();}
fjour=Math.floor(ts/(3600*24));if(fjour<=1){Resultat=fjour+" jour ";}else{Resultat=fjour+" jours ";}
ts=ts-(fjour*24*3600);fheure=Math.floor((ts/3600));if(fheure<10){Resultat+=" 0"+fheure+"h ";}else{Resultat+=" "+fheure+"h ";}
ts=ts-(fheure*3600);minutes=Math.floor((ts/60));if(minutes<10){Resultat+="0"+minutes+"m ";}else{Resultat+=minutes+"m ";}
ts=ts-(minutes*60);fseconde=Math.floor(ts);if(fseconde<10){Resultat+="0"+fseconde+"s"}else{Resultat+=fseconde+"s"}
return Resultat}
function startXbox(timestampArray){for(boxid in timestampArray){if(document.getElementById(boxid)&&timestampArray[boxid].length==6){document.getElementById(boxid).innerHTML=decompteur(timestampArray[boxid][0],timestampArray[boxid][1],timestampArray[boxid][2],timestampArray[boxid][3],timestampArray[boxid][4],timestampArray[boxid][5]);}}
timeout=window.setTimeout("startXbox(timestampArray)",1000);}
var timestampArray=new Array();
