/******************************************************************************
** Created:  06/07/00 by SEA Group, Inc. - JB
** Modified:
** Purpose:  finds an item in an option list and sets the index of the 
**           combo box to that value's index
******************************************************************************/
function findComboItemInList(cbo, varValue) {
	cbo.selectedIndex = -1;
	for(var i = 0; i < cbo.length; i++) {
		if (cbo.options[i].value == varValue) {
			cbo.selectedIndex = i;
			break;
		}
	}
}

/******************************************************************************
** Created:  06/27/00 by SEA Group, Inc. - JB
** Modified:
** Purpose:  returns the selected value of a combo box, this is the way to do
**           it in Netscape
******************************************************************************/
function getComboValue(cbo) {
	var cboVal = "";
	if (cbo.selectedIndex >= 0) 
		cboVal = cbo.options[cbo.selectedIndex].value;
	return cboVal;
}

/******************************************************************************
** Created:  06/29/00 by SEA Group, Inc. - JB
** Modified:
** Purpose:  returns the value property of the selected radio button in a 
**           radio button collection 
******************************************************************************/
function getRadioValue(opt) {
	var val = "";
	
	for (var i = 0; i < opt.length; i++) {
		if (opt[i].checked) {
			val = opt[i].value;
			break;
		}
	}
	return val;
}
