today  = new Date();
todayEpoch  = today.getTime();
target = new Date("23 August, 2006"); 
targetEpoch = target.getTime();
daysLeft = Math.floor(((targetEpoch - todayEpoch) / (60*60*24)) / 1000);

