//countdown script
var date = new Date();
var current = date.getTime();
var date1 = Date.parse("Wed Oct 28 8:00:00 EDT 2009");

if (current < date1)
{
	var correct = "Wed Oct 28 8:00:00 EDT 2009";
	var correct_date = "Wednesday, October 28, 2009";
}

function setNewTimeAgain(){
	setNewTime();
	}
function setNewTime(){
	now = new Date();
	timeNow = now.getTime();
	meeting = Date.parse(correct);
	timeLeft = timeNow - meeting;
	timeLeft = timeLeft * -1
	days = parseInt(timeLeft / 86400000);
	timeLeft = parseInt(timeLeft % 86400000);
	if (isNaN(days)){
		days = 0;
	}
	hours = parseInt(timeLeft / 3600000);
	timeLeft = parseInt(timeLeft % 3600000);
	mins = parseInt(timeLeft / 60000);
	timeLeft = parseInt(timeLeft % 60000);
	secs = parseInt(timeLeft / 1000);
	h1 = parseInt(hours / 10);
	if ( isNaN(h1))
		h1 = 0;
	h2 = parseInt(hours % 10);
	if ( isNaN(h2))
		h2 = 0;
	m1 = parseInt(mins / 10);
	if ( isNaN(m1))
		m1 = 0;
	m2 = parseInt(mins % 10);
	if ( isNaN(m2))
		m2 = 0;
	s1 = parseInt(secs / 10);
	if ( isNaN(s1))
		s1 = 0;
	s2 = parseInt(secs % 10);
	if ( isNaN(s2))
		s2 = 0;
	if (days > 1)
		day_text = "Days,";
	if (days <= 1)
		day_text = "Day,";
	if (days == 0)
		day_text = "Days,";
	document.forms.countdown.nextmeeting.value = days + " " + day_text + " " + h1 + h2 + " Hours, " + m1 + m2 + " Minutes, " + s1 + s2 + " Seconds";
	setTimeout("setNewTimeAgain()", 500);
	return;
	}
