function doClick(o,a){
	 var j; var id; var e;
	
	 for(var i=0;i<=11;i++){
	   id ="nav"+i;
	   j = document.getElementById(id);
	   e = document.getElementById("sub"+i);
	   if(id != o.id){
			j.className="nav_link";
			e.style.display = "none";
	   }else{
			j.className="nav_current";
			e.style.display = "block";
	   }
	 }
}
function cent(amount) {
// returns the amount in the .99 format
    amount -= 0;
    return (outputComma(amount == Math.floor(amount)) ? amount + '.00' : (  (amount*10 == Math.floor(amount*10)) ? amount + '0' : amount));
}
function outputComma(number) {
    number = '' + number
    if (number.length > 3) {
        var mod = number.length%3;
        var output = (mod > 0 ? (number.substring(0,mod)) : '');
        for (i=0 ; i < Math.floor(number.length/3) ; i++) {
            if ((mod ==0) && (i ==0))
                output+= number.substring(mod+3*i,mod+3*i+3);
            else
                output+= ',' + number.substring(mod+3*i,mod+3*i+3);
        }
        return (output);
    }
    else return number;
}
