var universaltime;
var running;
var where;

function launch_chrono(temps,idtag,cible)
{
	universaltime = temps;
	where = cible;
	document.getElementById(idtag).innerHTML = universaltime--; 
	running = setInterval(function(){chrono(idtag)},1000);
}
 
function chrono(idtag)
{	
	document.getElementById(idtag).innerHTML = universaltime ; 
	if (universaltime==0)
	{
		clearTimeout(running);
		self.location.href = where;
	}
	universaltime--;
}
