		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() {
		days = daysSince();
		return 1002777690 + 275000*days;
	}
	
	function daysSince() {
		startDate = new Date(2011,01,10);
		mDate = new Date;
		diffSec = (mDate.getTime() - startDate.getTime()) / (60*60*24*1000);
		return Math.floor(diffSec);
	}
	
	varPresentValue = 900000000;
	function showTheCounter() {
//		console.log(varPresentValue);
		if (varPresentValue < (getNewValue()) ) {
			$("#showCounter").val(addCommas(varPresentValue));
//				document.theForm.showCounter.value = addCommas(varPresentValue)
				setTimeout("showTheCounter()", 1)
				varPresentValue = varPresentValue + 111111
			
		}

	}
	
