/**
 * Converts Seconds to Countdown like 09:59
 */
function countdown(Secs,Id) {
	var Sec = Secs;
	var Min = 0;
	if (Sec>=60) {
		var Min = Math.max(0,Math.floor(Sec/60));
		Sec = Math.max(0,Sec-Min*60);
	}
	if (Min<10) Min = '0'+Min;
	if (Sec<10) Sec = '0'+Sec;
	Secs--;
	document.getElementById(Id).innerHTML = Min+':'+Sec;
	if (Secs>=0) window.setTimeout("countdown("+Secs+",'"+Id+"')", 1000);
}
