function countdown(elementString, dateString, name) { // date in format "12 25, 2005 00:00:00 GMT-500"

if (name == null) name = 'one';
	var clock = document.getElementById(elementString);
	var eventdate = new Date(dateString); // in format "January 1, 2005 00:00:00 GMT"
	now = new Date();
	nowtime = now.getTime(); // now in milliseconds
	eventtime = eventdate.getTime(); // event in milliseconds

	timeleft = Math.round((eventtime-nowtime) / 1000); // timeleft in seconds
	
	var passed = 0;
	if (timeleft < 0) { // if event has passed
		timeleft = Math.abs(timeleft);
		passed = 1;
	}
	
	if (timeleft != 0) {
		// Let's get a whole bunch of values
		days = Math.floor(timeleft/86400);
		hours = Math.floor((((timeleft%31556926)%2629744)%86400)/3600);
		minutes = Math.floor(((((timeleft%31556926)%2629744)%86400)%3600)/60);
		seconds = Math.floor(((((timeleft%31556926)%2629744)%86400)%3600)%60);
	}
	
	// Now lets build a response to print
	var togo = ''; // set up our variable

     if (name != '0') togo += name + ' ';

     if (passed==1 && elementString=='two') {
        togo += '-';
     }

	if (timeleft != 0) {
		if (days >= 0) {
		     if (days<10) {
		        togo += '0';
		     }
			togo += days + ':';
		}

		if (hours >= 0) {
		     if (hours<10) {
		        togo += '0';
		     }
			togo += hours + ':';
		}

		if (minutes >= 0) {
		     if (minutes<10) {
		        togo += '0';
		     }
			togo += minutes + ':';
		}

		if (seconds >= 0) {
		     if (seconds<10) {
		        togo += '0';
		     }
			togo += seconds ;
		}

	} else {
		var togo = togo + 'Now!';
	}
	
	// Now lets print it
	clock.innerHTML = togo;
	
	setTimeout('countdown(\'' + elementString + '\', \'' + dateString + '\', "' + name + '");', 1000); // re-execute the function in 1 second
}

