function ChangeRegion()
	{
		idx = document.getElementById("regions").selectedIndex;
		id = parseInt(document.getElementById("regions")[idx].value);
		if (regions[id])
		{
			map.setCenter(regions[id].point, parseInt(regions[id].zoom));
			map.closeInfoWindow();
		}
		document.getElementById("countries").selectedIndex = 0;
		document.title = text12;
		map.closeInfoWindow();
	}
	
	function ChangeCountry()
	{
		idx = document.getElementById("countries").selectedIndex;
		id = parseInt(document.getElementById("countries")[idx].value);
		if(countries[id])
		{
			map.setCenter(countries[id].point, parseInt(countries[id].zoom));
			map.openInfoWindowHtml(countries[id].point, getCountryShortDescription(id));
			document.getElementById('country_text_container').innerHTML = getCountryDescription(id);
			document.title = text13 + document.getElementById("countries")[idx].text + text14;
		}
		else
		{
			document.title = text12;
		}
		
	}
	
	function ChangeDisease()
	{
		idx = document.getElementById("diseases").selectedIndex;
		id = parseInt(document.getElementById("diseases")[idx].value);

		for(j = 0; j < countries.length; j++)
		{
			if(countries[j])
			{
				if (!countries[j].diseases[id])
				{
					if(markers[countries[j].id].visible==true)
					{
						map.removeOverlay(markers[countries[j].id].marker);
						markers[countries[j].id].visible=false;
					}
				}
				else
				{
					if(!markers[countries[j].id].visible==true)
					{
						map.addOverlay(markers[countries[j].id].marker);
						markers[countries[j].id].visible=true;
					}
				}
			}
		}
					
		//if(countries[id])
			//map.setCenter(new GLatLng(countries[id].lat, countries[id].lng), parseInt(countries[id].zoom));
		map.setCenter(regions[0].point,regions[0].zoom);
		document.getElementById("regions").selectedIndex = 0;
		document.getElementById("countries").selectedIndex = 0;
		map.closeInfoWindow();
	}
	
	function ClearDefault()
	{
		if ( document.getElementById('address').value == 'Søk etter land eller reisemål' )
			document.getElementById('address').value = '';
	}
	
	function AddDefault()
	{
		if ( document.getElementById('address').value == '' )
			document.getElementById('address').value = 'Søk etter land eller reisemål';
	}
	
	function SafeText(str)
	{
		var str1;
		str1 = str;
		str1 = str1.replace(/ø/g,"o");
		str1 = str1.replace(/Ø/g,"O");
		str1 = str1.replace(/é/g,"e");
		str1 = str1.replace(/ã/g,"a");
		str1 = str1.replace(/å/g,"a");
		str1 = str1.replace(/\./g,"");
		str1 = str1.replace(/í/g,"i");
		
		str1 = str1.replace(/ /g,"-");
		str1 = str1.toLowerCase();
		
		return str1;
	}