
	function tourLoadArea(area,defaultValue){	

		$(area).length = 1;
		
		if(tourAreaList == null)
			return;
		for(var i = 0; i < tourAreaList.length;i++){
			
			$(area).options.add(new Option(tourAreaList[i].name.unEscapeHTML(),tourAreaList[i].code));
			
		}
		if(defaultValue != null && defaultValue != "") {
			$(area).value = defaultValue;
		}
	}
	function tourCheckArea(area,country,city,defaultValue){

		$(city).length = 1;
		$(country).length = 1;
		
		$(city).value = "";
		$(country).value = "";
		if($(area).value == ""){	
			return;
		}
		if(tourAreaGroup[0] == null || tourAreaGroup[0][$(area).value]== null)
			return;
		var arr = tourAreaGroup[0][$(area).value];

		for(var i = 0; i < arr.length;i++){	
			$(country).options.add(new Option(arr[i].name.unEscapeHTML(),arr[i].code));
		}
		
		if(defaultValue != null && defaultValue != "") {		
			$(country).value = defaultValue;
		}
	}
	function tourCheckCountry(area,country,city,defaultValue){
	
		$(city).length = 1;
		$(city).value = "";
		
		if($(country).value == ""){
			
			return;
		}
		if(tourCountryGroup[0] == null || tourCountryGroup[0][$(country).value]== null)
			return;
		var country = tourCountryGroup[0][$(country).value];
		for(var i = 0; i < country.length;i++){		
			$(city).options.add(new Option(country[i].name.unEscapeHTML(),country[i].code));	
		}
		if(defaultValue != null && defaultValue != "") {
			$(city).value = defaultValue;
		}			
	}
	