function showAdvancedSearch()
{
	document.getElementById('advanced_search').removeChild(document.getElementById('advanced_search_off'));
	var objDolly = document.getElementById('advanced_search_on').cloneNode(true);
	objDolly.style.visibility = 'visible';
	document.getElementById('advanced_search').appendChild(objDolly);
}

function checkIndexAll(in_objElement)
{
	if (in_objElement.selectedIndex == 0)
	{
		in_objElement.selectedIndex = 0;
	}
}

function getMultipleSelectValues(in_objSelect)
{
	var arrValues = new Array();
	for (var i = 0; i < in_objSelect.options.length; i++)
	{
		if (in_objSelect.options[i].selected)
		{
			arrValues.push(in_objSelect.options[i].value);
		}
	}
	return arrValues;
}

function getMultipleSelectLabels(in_objSelect)
{
	var arrValues = new Array();
	for (var i = 0; i < in_objSelect.options.length; i++)
	{
		if (in_objSelect.options[i].selected)
		{
			arrValues.push(in_objSelect.options[i].text);
		}
	}
	return arrValues;
 }