var strEventDate = new Date("Februar 06, 2010 19:00:00 GMT+1");

function toDateString(strTempString) {
	strReturnString = "";
	if (strTempString < 10) {
		strReturnString += "0";
	}
	return strReturnString + strTempString.toString();
}
 
function visszaszamlalo() {
	
//	cl = document.clock;
	newDate = new Date();
	intCount = Math.floor((strEventDate.getTime() - newDate.getTime())/1000);
	if(intCount <= 0) {
		return;
	}

	intSeconds = toDateString(intCount % 60);
	intCount = Math.floor(intCount / 60);
	intMinutes = toDateString(intCount % 60);
	intCount = Math.floor(intCount / 60);
	intHours = toDateString(intCount % 24);
	intCount = Math.floor(intCount / 24);
	intDays = intCount;    

	document.getElementById("szamlalo").innerHTML = "A klub 100 éves évfordulójáig még <b>" +
		intDays + "</b> nap <b>" + 
		intHours + "</b> óra <b>" + 
		intMinutes + "</b> perc <b>" + 
		intSeconds + "</b> másodperc van hátra."; 
		
	setTimeout("visszaszamlalo();", 500);
	
}