function elapsedSeconds() {
	var currentDate = new Date();
	var totalSeconds = (currentDate.getHours() * 3600) + (currentDate.getMinutes() * 60) + currentDate.getSeconds();
	return totalSeconds;
}
function roundNumber(rnum, rlength) { // Arguments: number to round, number of decimal places
	var newnumber = Math.round(rnum * Math.pow(10, rlength)) / Math.pow(10, rlength);
	return newnumber;
}
function formatCurrency(num) {
num = num.toString().replace(/\$|\,/g,'');
if(isNaN(num))
num = "0";
sign = (num == (num = Math.abs(num)));
num = Math.floor(num*100+0.50000000001);
num = Math.floor(num/100).toString();
for (var i = 0; i < Math.floor((num.length-(1+i))/3); i++)
num = num.substring(0,num.length-(4*i+3))+','+
num.substring(num.length-(4*i+3));
return (((sign)?'':'-') + '$' + num);
}
function showCurrentValue() { //Get Current Value of Script
	$.ajax({
		url: "http://www.fathomdelivers.com/scripts/get_update.php?choice=current",
		cache: false,
		success: function(html) {
			$('#value').html(html);
			
		}
	});
}

$(document).ready(function() {
showCurrentValue();
setInterval('showCurrentValue()', 1000);
});

