<!--
function openWin( windowURL, windowName, windowFeatures ) {
	// default to this dimension if no dimension specified
	if ( windowFeatures == "" ) {
		windowFeatures = "width=480,height=300,toolbar=0,location=0,directories=0,status=0,menuBar=0,scrollBars=1,resizable=0,left=120, top=80"
	}
	newWindow = window.open( windowURL, windowName, windowFeatures ) ; 
	newWindow.focus();
	//return newWindow; 
} 
// -->

<!-- start hiding script
// no popup window <select onChange="jumpHere( this, false )">
// with popup window <select onChange="jumpHere( this, true )">
function jumpHere (which, win)
{
	n = which.selectedIndex;
	var URL = which.options[which.selectedIndex].value;
	if (win){
		openWindow(URL);
	}
	else{
		window.location.href = URL;
	}
}
// end hiding scrupt --->



/*
 * returns the value of the selected item from the select_id provided
 */
function getSelectValue( select_id )
{
	var oSelect = document.getElementById(select_id);
	
	return oSelect.options[oSelect.selectedIndex].value;
}
/*
 * returns an array with the associative 'text' and 'value' for each selected item 
 * from the select_id provided
 */
function getMultipleSelectValue( select_id )
{
	var oSelect = document.getElementById(select_id);
	var selectedItems = new Array();
	var count = 0;
	
	for(var i=0; i<oSelect.options.length; i++)
	{
		if(oSelect.options[i].selected == true)
		{
			selectedItems[count] = new Array();
			selectedItems[count]['value'] = oSelect.options[i].value;
			selectedItems[count]['text'] = getText(oSelect.options[i]);
			count++;
		}
	}	
	
	if( checked_items.length > 0)
	{
		return selectedItems;
	}
	else
	{
		return false; //nothing checked
	}
}

/*
 * returns the value of the radio item selected, or returns FALSE if none was selected
 * from the radio_name provided
 */
function getRadioValue( radio_name )
{
	var temp_obj = document.getElementsByName(radio_name);
	for (var i=0; i<temp_obj.length; i++) 
	{
		if(temp_obj[i].checked == true)
		{
			return temp_obj[i].value ;
		}
	}
	return false; //nothing checked
}

/*
 * returns an array of the values of checkboxes that have been checked
 * from the checkbox_name provided
 */
function getCheckboxValue( checkbox_name )
{
	var temp_obj = document.getElementsByName(checkbox_name);
	var checked_items = new Array();
	var count = 0;
	
	for (var i=0; i<temp_obj.length; i++) 
	{
		if(temp_obj[i].checked == true)
		{
			return temp_obj[i].value ;
			
			checked_items[count] = new Array();
			checked_items[count]['value'] = temp_obj[i].value;
			count++;
		}
	}
	
	if( checked_items.length > 0)
	{
		return checked_items;
	}
	else
	{
		return false; //nothing checked
	}
}


