rem: return (element.checked) ? element[i].value : ""; 
add: return (element.checked) ? element.value : ""; 
context: function element_value(element) {	// if element doesn't exist, die	if (element == null) return "";	// if its null then probably because it's an array, take the type from the first element	if (element.type == null) element.type = element[0].type;	switch (element.type) {		case "select-one" :			if (element.selectedIndex >= 0) {				return element.options[element.selectedIndex].value;			}		break;				case "select-multiple" :			if (element.selectedIndex >= 0) {				var retArr = new Array();				for(var i = 0; i < element.options.length; i++) {					if (element.options[i].selected) {						retArr.push(element.options[i].value);					}// endif				}// end for				if (retArr.length > 0) {					return retArr;				}			}		break;		case "radio" :			// if its an array of radio buttons then cycle through them			if (element.length != null) {				for(var i = 0; i < element.length; i++) {					if (element[i].checked) {						return element[i].value;					}// endif				}// end for			} else {				return element.value;			}		break;		case "checkbox" :			 return (element.checked) ? element[i].value : "";		break;		default :			// if its an array of elements return the first ones value			if (element.length != null && element[0] != null) {				return element[0].value ;							// else just return the value			} else {				return element.value;			}	}// end switch	// else something not right so return blank	return "";}// end element_value()
meta: 5635	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5635/740ce646ffda6c89fb5de463d9dbafb8ed1d7b06/html_form.js/clean/core/lib/html_form/html_form.js