function getTime() {
now = new Date();
target_date = new Date("Feb 23 2012 19:00:00");
days = (target_date - now) / 1000 / 60 / 60 / 24;
daysRound = Math.floor(days);
hours = (target_date - now) / 1000 / 60 / 60 - (24 * daysRound);
hoursRound = Math.floor(hours);
minutes = (target_date - now) / 1000 /60 - (24 * 60 * daysRound) - (60 * hoursRound);
minutesRound = Math.floor(minutes);
seconds = (target_date - now) / 1000 - (24 * 60 * 60 * daysRound) - (60 * 60 * hoursRound) - (60 * minutesRound);
secondsRound = Math.round(seconds);
sec = (secondsRound == 1) ? "<span>second</span>." : "<span>seconds</span>.";
min = (minutesRound == 1) ? "<span>min</span>" : "<span>mins</span>";
hr = (hoursRound == 1) ? "<span>HR</span>" : "<span>HRS</span> ";
dy = (daysRound == 1)  ? "<span>day</span>" : "<span>days</span> "
document.getElementById('timeRemain').innerHTML = daysRound  + dy + hoursRound + hr + minutesRound + min;
newtime = window.setTimeout("getTime();", 1000);
}
window.onload=getTime;

