// JavaScript Document
<!--
// (comp function from My first JavaScript. 7/22/96 Paul Lutus)

function num_format(amount) {

	// returns the amount in the .907 format

	return (amount == Math.floor(amount)) ? amount + '.000' : ((amount*10 == Math.floor(amount*10)) ? amount + '00' : ((amount*100 == Math.floor(amount*100)) ? amount + '0' : amount));

}


function round(number,X) {
	// rounds number to X decimal places, defaults to 2
	X = (!X ? 2 : X);
	return Math.round(number*Math.pow(10,X))/Math.pow(10,X);
}


// end hide -->