function timer_func()
{

$('#div_counter_container').html(addCommas(get_next_counter_value(current_counter,increase_step_per_second)) + '&nbsp;&nbsp;<span id="spn_counter_text">' + $('#spn_counter_text').text() + '</span>');
setTimeout("timer_func()",1000);
}

function get_next_counter_value(crnt_value,seconds)
{
	var res=crnt_value + (seconds * increase_step_per_second);
	current_counter=res;
	return Math.round(res);
}

function get_estimated_curent_counter_value(org_cntr,time_n_sec,incr_n_sec)
{
	var res= org_cntr + (time_n_sec * incr_n_sec);
	return res;
}
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;
}

