﻿/* change the following date in order to modify the countdown timer */
countdown("12/03/2012 8:00 AM");

/* countdown function below */
function countdown(dateString) {
	// get dates
	var today = new Date();
	var countDate = new Date();
	countDate.setTime(Date.parse(dateString));
	// find difference between dates
	var mseconds = countDate.getTime()-today.getTime();
	var timeLeft = Math.round(mseconds/1000);
	var days = Math.floor(timeLeft/60/60/24);
	timeLeft = timeLeft-(days*60*60*24);
	var hours = Math.floor(timeLeft/60/60);
	timeLeft = timeLeft-(hours*60*60);
	var minutes = Math.ceil(timeLeft/60);
	document.write(days+" DAYS -<br />"+hours+" HOURS -<br />"+minutes+" MINUTES");
}
