	function select_focus(){
		document.getElementById('search_text').value = '';
	}
	//gan cac gia tri tim kiem vao the hidden
	function select_search(){
		district = document.getElementById('district').selectedIndex;
		if(district != 0){
			text_district = document.getElementById('district').options[district].text;
			document.getElementById('save_district').value = text_district;
		}
		city = document.getElementById('city').selectedIndex;
		if(city != 0){
			text_city = document.getElementById('city').options[city].text;
			document.getElementById('save_city').value = text_city;
		}
		price = document.getElementById('price').selectedIndex;
		if(price != 0){
			text_price = document.getElementById('price').options[price].text;
			document.getElementById('save_price').value = text_price;
		}
		number = document.getElementById('number').selectedIndex;
		if(number != 0){
			text_number = document.getElementById('number').options[number].text;
			document.getElementById('save_number').value = text_number;
		}
		area = document.getElementById('area').selectedIndex;
		if(area != 0){
			text_area = document.getElementById('area').options[area].text;
			document.getElementById('save_area').value = text_area;
		}
	}
	function change_tag(obj){
		document.getElementById('body_search').style.display='block';
		if(obj.id == 'find1'){
			document.getElementById('body_search').style.background = '#E4F4C3';
			
			document.getElementById('price').getElementsByTagName('optgroup')[0].style.display = 'block';
			document.getElementById('price').getElementsByTagName('optgroup')[1].style.display = 'none';
			document.getElementById('type_bds').value=1;
			document.getElementById('type_bds_type').value=1;
			document.getElementById('find1').style.borderBottomColor='#E4F4C3';
			document.getElementById('find2').style.borderBottomColor='#A0C652';
			document.getElementById('find3').style.borderBottomColor='#A0C652';
			document.getElementById('find4').style.borderBottomColor='#A0C652';
		}
		if(obj.id == 'find2'){
			document.getElementById('body_search').style.background = '#E9EDF8';
			document.getElementById('price').getElementsByTagName('optgroup')[0].style.display = 'none';
			document.getElementById('price').getElementsByTagName('optgroup')[1].style.display = 'block';
			document.getElementById('type_bds').value=4;
			document.getElementById('type_bds_type').value=4;
			document.getElementById('find1').style.borderBottomColor='#A0C652';
			document.getElementById('find2').style.borderBottomColor='#E9EDF8';
			document.getElementById('find3').style.borderBottomColor='#A0C652';
			document.getElementById('find4').style.borderBottomColor='#A0C652';

		}
		if(obj.id == 'find3'){
			document.getElementById('body_search').style.background = '#FFFCE1';
			
			document.getElementById('price').getElementsByTagName('optgroup')[0].style.display = 'block';
			document.getElementById('price').getElementsByTagName('optgroup')[1].style.display = 'none';
			document.getElementById('type_bds').value=3;
			document.getElementById('type_bds_type').value=3;
			document.getElementById('find1').style.borderBottomColor='#A0C652';
			document.getElementById('find2').style.borderBottomColor='#A0C652';
			document.getElementById('find3').style.borderBottomColor='#FFFCE1';
			document.getElementById('find4').style.borderBottomColor='#A0C652';
		}
		if(obj.id == 'find4'){
			document.getElementById('body_search').style.background = '#FBF7F7';
			
			document.getElementById('price').getElementsByTagName('optgroup')[0].style.display = 'none';
			document.getElementById('price').getElementsByTagName('optgroup')[1].style.display = 'block';
			document.getElementById('type_bds').value=2;
			document.getElementById('type_bds_type').value=2;
			document.getElementById('find1').style.borderBottomColor='#A0C652';
			document.getElementById('find2').style.borderBottomColor='#A0C652';
			document.getElementById('find3').style.borderBottomColor='#A0C652';
			document.getElementById('find4').style.borderBottomColor='#FBF7F7';
		}
	}
	