	function taxCalculator(amount,form) {
		if(isNaN(amount.value)) {
			alert("Amount must be numeric");
			amount.value = "";
			amount.select();
		} else {
			gross = Math.round(amount.value);
			amount = gross + ".99";

			if (amount >0 && amount <=188) {
				result	=	"0.00"; 
			} 
			if (amount > 189 && amount <= 332) {
				result	=	Math.round(eval(amount * 0.15) - 28.2692) +".00"; 
			} 
			if (amount > 332 && amount <= 391) {
				result	=	Math.round(eval(amount * 0.25) - 61.5554) +".00"; 
			}
			if (amount > 391  && amount <= 576 ) {
				result	=	Math.round(eval(amount * 0.1650) - 28.2697) +".00"; 
			}
			if (amount > 576  && amount <= 653 ) {
				result	=	Math.round(eval(amount * 0.1850) - 39.8081) +".00"; 
			}
			if (amount > 653  && amount <= 1153 ) {
				result	=	Math.round(eval(amount * 0.3350) - 137.8851) +".00"; 
			}
			if (amount > 1153  && amount <= 1538 ) {
				result	=	Math.round(eval(amount * 0.3150) - 114.8081) +".00"; 
			}
			if (amount > 1538  && amount <= 3461 ) {
				result	=	Math.round(eval(amount * 0.4150) - 268.6543) +".00"; 
			}
			if (amount > 3461) {
				result	=	Math.round(eval(amount * 0.4650) - 441.7312) +".00"; 
			}
		}
		
		switch (form) {
			case 0:
			document.getElementById("taxresult").innerHTML	= result;
			break;
			case 1:
			document.getElementById("taxresult").value	= result;
			break;
		}
		
	}



sfHover = function() {
	var sfEls = document.getElementById("nav").getElementsByTagName("LI");
	for (var i=0; i<sfEls.length; i++) {
		sfEls[i].onmouseover=function() {
			this.className+=" sfhover";
		}
		sfEls[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" sfhover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", sfHover);