// JScript source code
function eis_GetSelectedRadio(container) {
	var cntrl;
	for(i = 0;i < container.rows.length;i++) {
		for(j = 0;j < container.rows(i).cells.length;j++) {
			cntrl = eis_GetDeepestChild(container.rows(i).cells(j));
			if(cntrl.tagName.toLowerCase() == "input" && cntrl.type.toLowerCase() == "radio" && cntrl.checked == true) {
				return cntrl;	
			}
		}
	}
}

function eis_GetDeepestChild(prnt) {
	if(prnt.childNodes == null || prnt.childNodes.length < 1) {
		return prnt;
	}
	return eis_GetDeepestChild(prnt.childNodes[0]);
}

function eis_GetSelectedRadioValue(rbg) {
	return eis_GetSelectedRadio(rbg).value;
}