		var Mois = new Array(12);
		var Jours = new Array(7);
		
		function Decompte(endmsg,datetemoin,cible,Fonction) {
		
			this.Target = cible;
			this.fonction = Fonction + '.Affiche()';	// Nom de l'objet JavaScript
			this.timeout = null;
			this.datebase = new Date(datetemoin);
			this.end = endmsg;
			this.ToStop = false;
		
			this.Init = Initialise;
			this.Affiche = Affichage;
			this.Stop = StopAll;
		
			this.Init();
			this.Affiche();
		}
		
		function Initialise() {
			var cur = new Date();
			var diff = this.datebase.getTime() - cur.getTime();
			this.ToStop = (this.end != '');
		}
		
		function Affichage() {
			var out;
			curdate = new Date();
			if ( (this.ToStop) && ( (this.datebase.getTime() - curdate.getTime()) <= 0 ) ) {
				if (this.Target == "") {
					window.status = this.end;
				}
				else {
					this.Target.value = this.end;
				}
				StopAll();
			}
			else {
				difference = Math.abs(this.datebase.getTime() - curdate.getTime());
				difference = Math.floor(difference / 1000);
				nbj = Math.floor(difference / 86400);
				difference = difference % 86400;
				nbh = Math.floor(difference / 3600);
				difference = difference % 3600;
				nbm = Math.floor(difference / 60);
				difference = difference % 60;
				nbs = difference;
				
				document.images['jj'].src = 'img/' + Math.floor(nbj / 10) + '.gif';
				document.images['j'].src = 'img/' + nbj % 10 + '.gif';
				document.images['hh'].src = 'img/' + Math.floor(nbh / 10) + '.gif';
				document.images['h'].src = 'img/' + nbh % 10 + '.gif';
				document.images['mm'].src = 'img/' + Math.floor(nbm / 10) + '.gif';
				document.images['m'].src = 'img/' + nbm % 10 + '.gif';
				document.images['ss'].src = 'img/' + Math.floor(nbs / 10) + '.gif';
				document.images['s'].src = 'img/' + nbs % 10 + '.gif';
				
				this.timeout = window.setTimeout(this.fonction,1000);
			}
		}	
		
		// Fonction Arret
		function StopAll() {
			clearTimeout(this.timeout);
			this.timeout = null;
		}
		//-->
