function changeCountryCookie() 
{
	var sWas = readCookie("Country");
	
	var oCountryDropDown = document.getElementById("CountryCookie");
	var sSelectedCountry = oCountryDropDown.options[oCountryDropDown.selectedIndex].value;
	createCookie('Country', sSelectedCountry, 1);
	createCookie('CountryCode', oCountryDropDown.value, 1);
	
	var sNow = sSelectedCountry;

	// If you change from Australia to other, or other to Australia, then a refresh is required.
	// Otherwise, no refresh is required.
	if ((sWas == "AU" && sNow != "AU") || (sWas != "AU" && sNow == "AU"))
	{
		window.location.reload(true);
	}
	// otherwise, it was NON GST, and STILL IS!
}


// When loading a page, the country dropdown must be synced to the correct country.
// If there is no country already selected, default to Australia!
function checkCountryCookie() 
{
	var oCountryDropDown = document.getElementById("CountryCookie");
	var sCountryCookieValue = readCookie("Country");

	if (!sCountryCookieValue)
	{
		sCountryCookieValue = "AU";			// Assume Australia!
		createCookie('Country', "AU", 1);	// Set the Australian cookie now.
	}

	// Now, we are ready to set the dropdown.
	for (i = 0; i < oCountryDropDown.options.length; i++) 
	{
		if (oCountryDropDown.options[i].value == sCountryCookieValue) 
		{
			oCountryDropDown.options[i].selected = true;
			break;
		}
	}
	oCountryDropDown.remove(0);	// Now, remove the first blank option!
}


