function clearOne(theElement,theCleared) {	theForm = theElement.form;	elementName = theElement.name;	theBoxes = theForm[elementName];	if (theElement.checked == true) {		//then we need to clear the other element		for (boxCount = theBoxes.length-1; boxCount >=0; boxCount--) {			if (theBoxes[boxCount].value == theCleared) {				theBoxes[boxCount].checked = false;			}		}	} else {		//otherwise, we need to see if no elements are checked		ensureChecked(theBoxes, theCleared);	}	return true;}function clearButOne(theElement) {	theForm = theElement.form;	elementName = theElement.name;	theBoxes = theForm[elementName];	if (theElement.checked == true) {		for (boxCount = theBoxes.length-1; boxCount >= 0; boxCount--) {			if (theBoxes[boxCount] != theElement) {				theBoxes[boxCount].checked = false;			}		}	} else {		ensureChecked(theBoxes, theElement);	}	return true;}function ensureChecked(theBoxes, checkBoxValue) {	somethingStillChecked = false;	for (boxCount = theBoxes.length-1; boxCount >=0; boxCount--) {		if (theBoxes[boxCount].value == checkBoxValue) {			//remember this one			theAllBox = theBoxes[boxCount]		}				if (theBoxes[boxCount].checked == true) {			somethingStillChecked = true;		}	}	if (checkBoxValue.value) {		theAllBox = checkBoxValue;	}	if (!somethingStillChecked && theAllBox) {		theAllBox.checked = true;	}}