function showDropDownListCountries(dropDownListContinentsID, divCountriesID, anchorLinkButtonGoID, dropDownListCountryDefaultID, arrayContinentNames, importersHomeUrl, allContinentCodes)
{
    var dropDownListContinents = document.getElementById(dropDownListContinentsID);
	var divCountries = document.getElementById(divCountriesID);
	
	if ( dropDownListContinents.selectedIndex > 0 && dropDownListContinents.options[0].value == "" )
		dropDownListContinents.remove(0);
	
	var dropDownListCountryID;
	for ( var i = 0; i < divCountries.childNodes.length; i++ )
	{
		var displayValue = "none";
		if ( i == dropDownListContinents.selectedIndex + 1 )
		{
			dropDownListCountryID = divCountries.childNodes[i].id;
			displayValue = "block";
		}
		divCountries.childNodes[i].style.display = displayValue;
	}
	
	onChange_dropDownListCountry(dropDownListContinentsID, dropDownListCountryID, anchorLinkButtonGoID, dropDownListCountryDefaultID, arrayContinentNames, importersHomeUrl, allContinentCodes);
}

function onChange_dropDownListCountry(dropDownListContinentsID, dropDownListCountryID, anchorLinkButtonGoID, dropDownListCountryDefaultID, arrayContinentNames, importersHomeUrl, allContinentCodes)
{
	var dropDownListCountry = document.getElementById(dropDownListCountryID);
	var dropDownListContinents = document.getElementById(dropDownListContinentsID);
	var linkButtonGo = document.getElementById(anchorLinkButtonGoID);
	var dropDownListCountryDefault = document.getElementById(dropDownListCountryDefaultID);
	
	var continentsSelectedIndex = dropDownListContinents.selectedIndex;
	var continentsSelectedValue = dropDownListContinents.options[continentsSelectedIndex].value;
	var urlAddressesIndex = -1;
	for ( var i = 0; i < allContinentCodes.length; i++ )
	{
		if (allContinentCodes[i] == continentsSelectedValue)
			urlAddressesIndex = i;
	}
	var linkUrl = "";
	
	linkButtonGo.target = "";
	
	if ( dropDownListCountry != null )
		linkUrl = dropDownListCountry.options[dropDownListCountry.selectedIndex].value;
		
	if ( linkUrl == "" )
	{
		var continentName = dropDownListContinents.options[continentsSelectedIndex].value;
		if ( continentName == "" )
		{
			linkUrl = importersHomeUrl;
			dropDownListCountryDefault.style.display = "block";
		}
		else
		{
			linkUrl = arrayContinentNames[urlAddressesIndex];
			if ( linkUrl == null || linkUrl == "" )
				linkUrl = importersHomeUrl;
		}
	}
	else
	{
		linkButtonGo.target = "_blank";
	}
	
	if ( linkUrl == null || linkUrl == "" )
		linkUrl = document.location.href;
	
	linkButtonGo.href = linkUrl;
}