/*
Count down until any date script-
By JavaScript Kit (www.javascriptkit.com)
Over 200+ free scripts here!
Modified by Robert M. Kuhnhenn, D.O. 
on 5/30/2006 to count down to a specific date AND time
and on 10/20/2007 to a new format
*/

//-->change the text below to reflect what you want the script to display when the target date and time are reached, limit to 20 characters
var current="Summer has arrived!"
var montharray=new Array("Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec")

function countdownTable(yr,m,d,hr,min){
theyear=yr;themonth=m;theday=d;thehour=hr;theminute=min
var today=new Date()
var todayy=today.getYear()
if (todayy < 1000) {
todayy+=1900 }
var todaym=today.getMonth()
var todayd=today.getDate()
var todayh=today.getHours()
var todaymin=today.getMinutes()
var todaysec=today.getSeconds()
var todaystring=montharray[todaym]+" "+todayd+", "+todayy+" "+todayh+":"+todaymin+":"+todaysec
futurestring=montharray[m-1]+" "+d+", "+yr+" "+hr+":"+min
dd=Date.parse(futurestring)-Date.parse(todaystring)
dday=Math.floor(dd/(60*60*1000*24)*1)
dhour=Math.floor((dd%(60*60*1000*24))/(60*60*1000)*1)
dmin=Math.floor(((dd%(60*60*1000*24))%(60*60*1000))/(60*1000)*1)
dsec=Math.floor((((dd%(60*60*1000*24))%(60*60*1000))%(60*1000))/1000*1)
if(dday<=0&&dhour<=0&&dmin<=0&&dsec<=0){
	document.forms.count.dday.style.display="none";
	document.forms.count.dhour.style.display="none";
	document.forms.count.dmin.style.display="none";
	document.forms.count.dsec.style.display="none";
	document.forms.count.days.style.display="none";
	document.forms.count.hours.style.display="none";
	document.forms.count.minutes.style.display="none";
	document.forms.count.seconds.style.display="none";
	return;
}else {
	document.forms.count.dday.value=dday;
	document.forms.count.dhour.value=dhour;
	document.forms.count.dmin.value=dmin;
	document.forms.count.dsec.value=dsec;
	setTimeout("countdownTable(theyear,themonth,theday,thehour,theminute)",1000);
}
}
