function updateDistrictsSearch() {

	if ($F('search_country') && $F('search_country') != "") {
		HTML_AJAX.replace('search_districts',URLWEBSITE + 'index.php?action=suchergebnisseajaxbundeslaender&land=' + $('search_country').value);
	
		$('search_region').options.length = 0;
		
		$('search_region').options[0] = new Option('Alle Regionen', '');
		
		$('search_city').options.length = 0;
		
		$('search_city').options[0] = new Option('Alle Orte', '');
	} else {
		$('search_region').options.length = 0;
		
		$('search_region').options[0] = new Option('Alle Regionen', '');
		
		$('search_district').options.length = 0;
		
		$('search_district').options[0] = new Option('Alle Bundesländer', '');
		
		$('search_city').options.length = 0;
		
		$('search_city').options[0] = new Option('Alle Orte', '');
		
	}
	
}

function updateCitiesSearch() {

	if ($F('search_district') && $F('search_district') != "") {
		HTML_AJAX.replace('search_cities',URLWEBSITE + 'index.php?action=suchergebnisseajaxorte&bundesland=' + $('search_district').value);
	} else {
		if ($F('search_country') && $F('search_country') != "") {
			HTML_AJAX.replace('search_cities',URLWEBSITE + 'index.php?action=suchergebnisseajaxortevonland&land=' + $('search_country').value);
		} else {
			$('search_city').options.length = 0;
			
			$('search_city').options[0] = new Option('Alle Orte', '');
		}
	}
	
}

function updateCitiesByCountrySearch() {

	if ($F('search_country') && $F('search_country') != "") {
		HTML_AJAX.replace('search_cities',URLWEBSITE + 'index.php?action=suchergebnisseajaxortevonland&land=' + $('search_country').value);
	} else {
		$('search_city').options.length = 0;
		
		$('search_city').options[0] = new Option('Alle Orte', '');
	}
	
}

function updateRegionsSearch() {

	if ($F('search_district') && $F('search_district') != "") {
		HTML_AJAX.replace('search_regions',URLWEBSITE + 'index.php?action=suchergebnisseajaxregionen&bundesland=' + $('search_district').value);
	} else {
		if ($F('search_country') && $F('search_country') != "") {
			HTML_AJAX.replace('search_regions',URLWEBSITE + 'index.php?action=suchergebnisseajaxregionenvonland&land=' + $('search_country').value);
		} else {
			$('search_region').options.length = 0;
		
			$('search_region').options[0] = new Option('Alle Regionen', '');
		}
	}
	
}

function updateRegionsByCountrySearch() {

	if ($F('search_country') && $F('search_country') != "") {
		HTML_AJAX.replace('search_regions',URLWEBSITE + 'index.php?action=suchergebnisseajaxregionenvonland&land=' + $('search_country').value);
	} else {
		$('search_region').options.length = 0;
		
		$('search_region').options[0] = new Option('Alle Regionen', '');
	}
	
}