function doCalcTotal() {
	var amt = 0;
	for (i=0; i<document.quote.elements.length; i++) {
		var checkbox = document.quote.elements[i];
		if (checkbox.id == "clearBoxes") continue;
		if (checkbox.checked) amt += parseInt(checkbox.value);
	}
	var newText = "Total = " + amt;
	var divId = "total";
	with (document) if (getElementById && ((obj=getElementById(divId))!=null))
 		with (obj) innerHTML = unescape(newText);
}

function doClearBoxes() {
	for (i=0; i<document.quote.elements.length; i++) {
		var checkbox = document.quote.elements[i];
		if (checkbox.id == "clearBoxes") continue;
		checkbox.checked = false;
	}
	doCalcTotal();
}
