// Following function specifies how many days are left until the target date. Date Format "Day Month, Year".

function timer(targetdate)
{
	today = new Date();
	todayEpoch  = today.getTime();
	target = new Date(targetdate); 
	targetEpoch = target.getTime();
	daysLeft = Math.floor(((targetEpoch - todayEpoch) / (60*60*24)) / 1000);
	document.write(daysLeft);
}