/* 
	add code to do checks on radio buttons being selected
*/
function radio_button_checker()
{
// set var radio_choice to false
var radio_choice = false;

// Loop from zero to the one minus the number of radio button selections
for (counter = 0; counter < frmResidency.approve.length; counter++)
{
// If a radio button has been selected it will return true
// (If not it will return false)
if (frmResidency.approve[counter].checked)
radio_choice = true; 
}

if (!radio_choice) {
	// If there were no selections made display an alert box 
	alert("Please select a Approved or Denied.");
	frmResidency.approve[0].focus();
	return (false);
}
else if ( frmResidency.approve[1].checked ) {
	if ( frmResidency.reject_msg.value == "" ) {
		alert('Please enter denial reason');
		frmResidency.reject_msg.focus();
		return false;
	}
}
return (true);
}