<!--

function calcForm() {
	var w = document.calculator.width.value;
	var h = document.calculator.height.value;
	var t = document.calculator.type.value;
	document.calculator.total.value = calc(w,h,t);
}

function calc(width,height,type) {
	var amount = parseFloat(width) * parseFloat(height) * parseFloat(val[type]);
	if (isNaN(amount)) return 0;
	return amount.toFixed(2);
}

// -->