
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;
}
	
	function getNewValue() {
		now = new Date
		startDate = new Date(2005,11,31)
		timeSince = now - startDate
		dayOfYear = Math.floor((timeSince/(1000 * 60 * 60 * 24)))
		newNumber = 324242376 + (dayOfYear * 275000)
		return (newNumber)
	}
	
    val1 = 750000000;
	function showTheCounter() {
		if (val1 < (getNewValue() + 111111) ) {
			$("#showCounter").val(addCommas(val1));
//				document.theForm.showCounter.value = addCommas(val1)
				setTimeout("showTheCounter()", 1)
				val1 = val1 + 111111
			
		}
	}
	