<!--
// usatCommon.js

// newFunction
var selectedRow;

function highlight(item) {
	if (item != selectedRow) {
		item.className = "termsHighlight";
	}
}

function cancelHighlight(item) {
	if (item != selectedRow) {
		item.className =  "termsNormal";
	}
}

function selectRow(theid) {
	var row = document.getElementById(theid);
	
	if (selectedRow) {
		selectedRow.className = "termsNormal";
		var columns = selectedRow.getElementsByTagName("td");   
		for(i = 0; i < columns.length; i++){
			columns[i].className = "usatTermsFontNormal";
		}
	}
	row.className = "termsSelected";
	var columns2 = row.getElementsByTagName("td");
	for(i = 0; i < columns2.length; i++){
		columns2[i].className = "usatTermsFontSelected";
	}
	selectedRow = row;
}

function selectRadioAndHighlight(row) {
	
	var radio = row.getElementsByTagName('input');
	if (radio[0]) {
		radio[0].checked = true;
		selectRow(row.id);
	}
}

function selectRadio(row) {
	
	var radio = row.getElementsByTagName('input');
	if (radio[0]) {
		radio[0].checked = true;
	}
}

function selectInitialRow(table) {
	var rows = table.getElementsByTagName('tr');
	for(i = 0; i < rows.length; i++){
		var radio = rows[i].getElementsByTagName('input');
		if (radio && radio[0] && radio[0].checked) {
			selectRadioAndHighlight(rows[i]);
			break;
		}
	}
	
}

function respondToFlashClickEvent( whereToGo ) {
	if (typeof whereToGo == 'string' &&  whereToGo.length > 0) {
	    document.location = whereToGo;
	}
}

//  -->