/*
 *   File getRadioValue.js
 * 
 * determines the value of the currently selected
 * radio button control
 * 
 * Function can be used in example  
 * alert (getRadioValue(document.CriteriaForm.batbowl));
 *
 * Example from Visual Interdev Hour 6 page 107
 *
 * Include with: <SCRIPT SRC="javascript/browser.js"></SCRIPT>
 */
 function getRadioValue(radioButtons)
 {
	bFoundValue = false;
	i=0;
	while (!bFoundValue && i < radioButtons.length)
	{
		bFoundValue = radioButtons[i++].checked;
	}
	return (bFoundValue ? radioButtons[i-1].value : null);
 }
 
 