var month = 5; // 0-11 
var day = 24;
var hour = 20;    // 0 through 23 for the hour of the day
var lab = 'cd';  // id of the entry on the page where the counter is to be inserted

function start() {displayCountdown(setCountdown(month,day,hour),lab);}
window.onload = start;

// Some text changed, hope it's OK :)
function setCountdown(month,day,hour) {var toDate = new Date(); toDate.setDate(1); toDate.setMonth(month); toDate.setDate(day); toDate.setHours(hour);toDate.setMinutes(0);toDate.setSeconds(0);var fromDate = new Date();return Math.floor((fromDate-toDate).valueOf()/1000);}
function displayCountdown(countdn,cd) {var secs = countdn % 60; if (secs < 10) secs = '0'+secs;var countdn1 = (countdn - secs) / 60;var mins = countdn1 % 60; if (mins < 10) mins = '0'+mins;countdn1 = (countdn1 - mins) / 60;var hours = countdn1 % 24;var days = (countdn1 - hours) / 24; document.getElementById(cd).innerHTML = days+' dni + '+hours+' : '+mins+' : '+secs; setTimeout('displayCountdown('+(countdn+1)+',\''+cd+'\');',999);}
