function GetCount(){

	dateNow = new Date();									//grab current date
	timeLeft = dateOfRace.getTime() - dateNow.getTime();		//calc milliseconds between dates
	delete dateNow;

	// time is already past
	if(timeLeft < 0){
		document.getElementById('countbox').innerHTML="The race has begun!!";
		document.getElementById('countbox1').innerHTML="The race has begun!!";
	}
	// date is still good
	else{
		days=0;
		daysStr=null;
		hours=0;
		hoursStr=null;
		mins=0;
		minsStr=null;
		secs=0;
		secsStr=null;
		displayMsg="";

		timeLeft = Math.floor(timeLeft/1000);//kill the "milliseconds" so just secs

		days=Math.floor(timeLeft/86400);//days
		timeLeft=timeLeft%86400;

		hours=Math.floor(timeLeft/3600);//hours
		timeLeft=timeLeft%3600;

		mins=Math.floor(timeLeft/60);//minutes
		timeLeft=timeLeft%60;

		secs=Math.floor(timeLeft);//seconds

		if(days != 0){daysStr = " day"+((days!=1)?"s":"")+", ";}
		if(days != 0 || hours != 0){hoursStr = " hr"+((hours!=1)?"s":"")+", ";}
		if(days != 0 || hours != 0 || mins != 0){minsStr = " min"+((mins!=1)?"s":"")+", ";}
		secsStr = " sec"+((secs!=1)?"s":"");;
		document.getElementById('countbox').innerHTML= "Countdown to the Start: " + "<strong>" + days + "</strong>" + daysStr + "<strong>" + hours + "</strong>" + hoursStr + "<span style='font-size: 36px; font-style: italic; font-weight: bold; font-family: Palatino;'>" + mins + "</span>" + minsStr + "<span style='font-size: 36px; font-style: italic; font-weight: bold; font-family: Palatino;'>" + secs + "</span>" + secsStr + ".";
		document.getElementById('countbox1').innerHTML= days + daysStr + hours + hoursStr + mins + minsStr + secs + secsStr;

		setTimeout("GetCount()", 1000);
	}
}

window.onload=function(){GetCount();}//call when everything has loaded