var hours = 0;
var minutes = 0;

seconds += minutes*60 + hours*3600
function CountDown()
{
	seconds--;
	if (seconds < 1) {
		document.getElementById('timeleft').innerHTML = "Waiting..."
	}
	else {
		dhour = parseInt(seconds/3600);
		dsec = seconds - dhour*3600;
		dmin = parseInt(dsec/60);
		dsec = dsec - dmin*60
		if(dsec<10) dsec = "0" + dsec;
		if(dmin<10) dmin = "0" + dmin;
		document.getElementById('timeleft').innerHTML = dhour + ":" + dmin + ":" + dsec;
		if(seconds>0)
		{
			setTimeout("CountDown()",1000);
		}
	}
}
CountDown();
