
function SetRowState(el) {
	if (el == null) return;
	var row = el.parentNode;
	while (row != null && row.tagName != 'TR') {row = row.parentNode;} 
	if (row == null) return;
	rowfill=false;
	isRadio=el.type && el.type=='radio';
	switch (el.tagName) {
	    case 'SELECT': rowfill = (el.value > 0);break;
	    case 'INPUT': rowfill = el.checked;break;
	    case 'SPAN': rowfill = el.childNodes[0].checked;break;
	    case 'A': rowfill = true;break;
	}
	row.className = (rowfill) ? 'fill_item' : 'fill_white';
	if (isRadio) ClearOtherRows(row);
}


function ClearOtherRows(row) {
	var rowgroup = row.parentNode.childNodes;
	for (i = 1;i < rowgroup.length; i++) {
	    if (rowgroup[i] != row && rowgroup[i].tagName=='TR') {rowgroup[i].className = 'fill_white';}}
}
