function showHide(sender)
{
	// get the facilities row:
	var rowFacilities = document.getElementById("rowFacilities");
	var rowFacilitiesLine = document.getElementById("rowFacilitiesLine");
	var advancedSearch = document.getElementById("advancedSearch");

	// if it exists:
	if (rowFacilities != null)
	{
		// if it's not hidden, hide it:
		if (rowFacilities.style.display != "none")
		{
			rowFacilities.style.display = "none";
			rowFacilitiesLine.style.display = "none";
			rowFacilities.style.visibility = "hidden";
			rowFacilitiesLine.style.visibility = "hidden";
			sender.innerHTML = "Advanced Search";
			advancedSearch.value = "false";
		}
		else // if it is hidden, show it:
		{
			rowFacilities.style.display = "";
			rowFacilitiesLine.style.display = "";
			rowFacilities.style.visibility = "visible";
			rowFacilitiesLine.style.visibility = "visible";			
			sender.innerHTML = "Simple Search";
			advancedSearch.value = "true";
		}
	}

	// get the location row:
	var rowLocation = document.getElementById("rowLocation");
	var rowLocationLine = document.getElementById("rowLocationLine");
	// if it exists:
	if (rowLocation != null)
	{
		// if it's not hidden, hide it:
		if (rowLocation.style.display != "none")
		{
			rowLocation.style.display = "none";
			rowLocationLine.style.display = "none";
			rowLocation.style.visibility = "hidden";
			rowLocationLine.style.visibility = "hidden";			
			sender.innerHTML = "Advanced Search";
			advancedSearch.value = "false";
		}
		else // if it is hidden, show it:
		{
			rowLocation.style.display = "";
			rowLocationLine.style.display = "";
			rowLocation.style.visibility = "visible";
			rowLocationLine.style.visibility = "visible";			
			sender.innerHTML = "Simple Search";
			advancedSearch.value = "true";
		}
	}
}