var millisPerMinute = 1000*60;var millisPerHour = millisPerMinute*60;var millisPerDay = millisPerHour*24;var tuition = 61205;var totalDays = 525;var targetDate = new Date();targetDate.setFullYear(2008,6,2);targetDate.setHours(0);targetDate.setMinutes(0);targetDate.setSeconds(0);targetDate.setMilliseconds(0);var ratePerSecond = tuition / (totalDays * 60*60*24);var startDate = new Date(targetDate.getTime() - (totalDays*millisPerDay));Event.observe(window, "load", onLoad)function onLoad() {	update();	new PeriodicalExecuter(function(pe) {		update();	}, 1);			}		function update() {	var now = new Date();	var secondsSinceStart = (now.getTime() - startDate.getTime()) / 1000;	var totalSoFar = secondsSinceStart * ratePerSecond;	totalSoFar = totalSoFar.toFixed(2);	$('counter').innerHTML = "$" + addCommas(totalSoFar);							var remaining = tuition - totalSoFar;	remaining = remaining.toFixed(2);	$('remaining').innerHTML = "$" + addCommas(remaining);}function addCommas(nStr) {	nStr += '';	x = nStr.split('.');	x1 = x[0];	x2 = x.length > 1 ? '.' + x[1] : '';	var rgx = /(\d+)(\d{3})/;	while (rgx.test(x1)) {		x1 = x1.replace(rgx, '$1' + ',' + '$2');	}	return x1 + x2;}