// JavaScript Document
function countDown(id, sec){
	var tmp = sec;
	var h = Math.floor(tmp/ 3600);
	tmp %= 3600;
	var m = Math.floor( (tmp / 60) % 60 );
	tmp %= 60;
	var s = Math.floor(tmp);

	document.getElementById(id + "-saat").innerHTML = h;
	document.getElementById(id + "-dakika").innerHTML = m;
	document.getElementById(id + "-saniye").innerHTML = s;
	
	if(sec > 0)
		window.setTimeout(function(){countDown(id, --sec)}, 1000);
}
