<!--
function LocationCategoryDropDownChanged(controlClientId, defaultLanguage, filterOptionArray)
{
	var dropDown = GetLocationCategoryDropDown(controlClientId);
	var dropDownValue = dropDown.options[dropDown.selectedIndex].value;
	var categoryValue = dropDownValue.substring(0,3);
	HideShowLocationContactData(categoryValue, defaultLanguage, controlClientId, filterOptionArray)
}

function HideShowLocationContactData(category, defaultLanguage, controlClientId, filterOptionArray)
{
	var i=0;
	var languageLabel = controlClientId + "_LanguageLabel";
	var languageDropDown = controlClientId + "_LanguageDropDown";
	var matchingLanguageArray = new Array;
	
	var dropDownControl = GetLocationLanguageDropDown(controlClientId);
	
	var newOption;
	var languageMatches = false;
	var selectedIndex = 0;
	
	for(i=0;i<filterOptionArray.length;i++)
	{
		hideControl(filterOptionArray[i][0]);
		
		if(filterOptionArray[i][1] == category)
		{
			matchingLanguageArray[matchingLanguageArray.length] = new Array(filterOptionArray[i][2], filterOptionArray[i][3], filterOptionArray[i][0]);
		}
	}
	
	if(matchingLanguageArray.length == 0)
	{
		hideControl(languageDropDown);
		showControl(languageLabel);
		UpdateLabel(languageLabel, "");
	}	
	else if(matchingLanguageArray.length == 1)
	{
		hideControl(languageDropDown);
		showControl(matchingLanguageArray[0][2]);
		showControl(languageLabel);
		UpdateLabel(languageLabel, matchingLanguageArray[0][1]);
	}
	else
	{
		hideControl(languageLabel);
		
		for (i=dropDownControl.options.length - 1; i >= 0; i--)
		{
		dropDownControl.options[i] = null;
		}
		
	
		for(i=0;i<matchingLanguageArray.length;i++)
		{
			newOption = document.createElement("OPTION");
			newOption.value = matchingLanguageArray[i][0];
			newOption.text = matchingLanguageArray[i][1];
			dropDownControl.options.add(newOption);
			
			if(matchingLanguageArray[i][0] == defaultLanguage)
			{
				selectedIndex = i;
			}
		}
		
		dropDownControl.selectedIndex = selectedIndex;
		dropDownControl.style.display = "";
		
		showControl(matchingLanguageArray[selectedIndex][2]);
	}
	
}

function GetLocationCategoryDropDown(controlClientId)
{
	return document.getElementById(controlClientId + "_CategoryDropDown");
}

function GetLocationLanguageDropDown(controlClientId)
{
	return document.getElementById(controlClientId + "_LanguageDropDown");
}

function LocationLanguageDropDownChanged(controlClientId, filterOptionArray)
{
	var languageDropDown = GetLocationLanguageDropDown(controlClientId);
	var categoryDropDown = GetLocationCategoryDropDown(controlClientId);
	
	var selectedLanguage = languageDropDown.options[languageDropDown.selectedIndex].value;
	var selectedCategory = categoryDropDown.options[categoryDropDown.selectedIndex].value;
	
	var categoryValue = selectedCategory.substring(0,3);
	
	var i = 0;
	
	for(i=0;i<filterOptionArray.length;i++)
	{
		if(filterOptionArray[i][1] == categoryValue && filterOptionArray[i][2] == selectedLanguage)
		{
			showControl(filterOptionArray[i][0]);
		}
		else
		{
			hideControl(filterOptionArray[i][0]);
		}
	}
}

function hideControl(id)
{
	document.getElementById(id).style.display = "none";
}

function showControl(id)
{
	document.getElementById(id).style.display = "";
}


//-->