function setSubmit(theElement) {
	theForm = theElement.form;
	boxName = theElement.name;
	theSubmit = theForm['modify'];

	theBoxes = theForm[boxName];

	oneChecked = false;
	oneUnChecked = false;
	for (boxCount = theBoxes.length-1; boxCount >= 0; boxCount--) {
		if (theBoxes[boxCount].checked == true) {
			oneChecked = true;
		} else {
			oneUnChecked = true;
		}
	}
	
	if (oneChecked && oneUnChecked) {
		theSubmit.value="Modify Checked Finals";
	} else {
		theSubmit.value="Modify All Finals";
	}
}
