function CountrySelectorChange (countrySelector, countryOtherSpan, stateSelector, stateOtherSelector) 
{
	var countryIndex = countrySelector.selectedIndex - 1;
	
	if (stateSelector != -1) {
		var stateIndex = stateSelector.selectedIndex - 1;
		var currentStatesCountryIndex;
	
		if (StateA[stateIndex]) currentStatesCountryIndex = StateA[stateIndex]['countryid'];
		else currentStatesCountryIndex = -1;
	}
	
	if(CountryA[countryIndex]) 
	{
		countryOtherSpan.style.display = 'none';
		if (stateSelector != -1) {
			if(countryIndex != currentStatesCountryIndex && stateSelector.selectedIndex != (stateSelector.options.length - 1)) {
				stateSelector.selectedIndex = 0;
			}
		}
	}
	else if (countryIndex == -1) 
	{
		countryOtherSpan.style.display = 'none';
	} 
	else
	{
		countryOtherSpan.style.display = 'inline';
	}
	return true;
}
