/* ________________________________________________________________________________________________________________________ */

function unselectAllExcept(selectObject, option)
{
	/**
	 * Resets a <select> element so that if a certain option is selected, all other options are unselected.
	 * If option is not specified, defaults to first option in list (0th element).
	 */
	
	var option = (option == null) ? 0 : option;
	
	//alert(selectObject.selectedIndex);
	
	if(selectObject.selectedIndex == option)
	{
		// unselect previously selected options
		selectObject.selectedIndex = -1;
		
		// select the desired option only
		selectObject.selectedIndex = option;
	}

}

/* ________________________________________________________________________________________________________________________ */