		function lqa_clean() {
			document.forms[0].lqa_group.value = "";
			document.forms[0].lqa_family.value = "";
		}

		function lqa_clean2() {
			document.forms[0].lqa_group.value = "";
			document.forms[0].lqa_family.value = "";

			if (document.forms[0].oha_rank.value == "") {
				document.forms[0].oha_rank.value = "any";
			}
		}

		function oha_clean() {
			document.forms[0].oha_rank.value = "";
			document.forms[0].oha_family.value = "";
		}

		function oha_clean2() {
			document.forms[0].oha_rank.value = "";
			document.forms[0].oha_family.value = "";

			if (document.forms[0].lqa_group.value == "") {
				document.forms[0].lqa_group.value = "any";
			}
		}
		
		function area_of_house(loc) {
			if (loc == "all") {
				if (document.forms[0].area_all.checked) {
					document.forms[0].area_yongsan.checked = true;
					document.forms[0].area_gangbuk.checked = true;
					document.forms[0].area_gangnam.checked = true;
					document.forms[0].area_others2.checked = true;
				
				} else {
					document.forms[0].area_yongsan.checked = false;
					document.forms[0].area_gangbuk.checked = false;
					document.forms[0].area_gangnam.checked = false;
					document.forms[0].area_others2.checked = false;
				}
				check_yongsan();
				check_gangbuk();
				
			} else if (loc == "Yongsan") {
				check_yongsan();
			
			} else if (loc == "Gangbuk") {
				check_gangbuk();
				
			} else if (loc == "Others2") {
				if (document.forms[0].area_others2.checked) {
					document.forms[0].area_all.checked = false;
					document.forms[0].area_yongsan.checked = false;
					document.forms[0].area_gangbuk.checked = false;
					document.forms[0].area_gangnam.checked = false;
				} else {
					document.forms[0].area_all.checked = false;
				}
				
				check_yongsan();
				check_gangbuk();
				
			} else if (loc == "sub_Yongsan") {
				document.forms[0].area_all.checked = false;
				document.forms[0].area_yongsan.checked = false;
			
			} else if (loc == "sub_Gangbuk") {
				document.forms[0].area_all.checked = false;
				document.forms[0].area_gangbuk.checked = false;

			} else {
				if (!loc) {
					document.forms[0].area_all.checked = false;
				}
			}
		}
		
		function check_others2() {
			if (document.forms[0].area_others2.checked) {
				alert("다른것 지우기");
			} else {
				alert("");
			
			}		
		}
		
		function check_yongsan() {
			if (document.forms[0].area_yongsan.checked) {
				document.forms[0].area_itaewon.checked = true;
				document.forms[0].area_hannam.checked = true;
				document.forms[0].area_dongbinggo.checked = true;
				document.forms[0].area_ichon.checked = true;
				document.forms[0].area_un.checked = true;

			} else {
				document.forms[0].area_all.checked = false;
				
				document.forms[0].area_itaewon.checked = false;
				document.forms[0].area_hannam.checked = false;
				document.forms[0].area_dongbinggo.checked = false;
				document.forms[0].area_ichon.checked = false;
				document.forms[0].area_un.checked = false;
			}
		}
		
		function check_gangbuk() {
			if (document.forms[0].area_gangbuk.checked) {
				document.forms[0].area_seongbuk.checked = true;
				document.forms[0].area_pyeongchang.checked = true;
				document.forms[0].area_yeonhui.checked = true;

			} else {
				document.forms[0].area_all.checked = false;

				document.forms[0].area_seongbuk.checked = false;
				document.forms[0].area_pyeongchang.checked = false;
				document.forms[0].area_yeonhui.checked = false;

			}
		}
		
		function view_house(i_hnum) {
			document.forms[0].i_hnum.value = i_hnum; 
			document.forms[0].action = '/iestate/view.php'; 
			document.forms[0].submit();
		}
		
		function view_sale_house(i_hnum) {
			document.forms[0].i_hnum.value = i_hnum;
			document.forms[0].sell_type_sale.value = 'Y';
			document.forms[0].action = '/iestate/view.php'; 
			document.forms[0].submit();
		}

		function view_jnse_house(i_hnum) {
			document.forms[0].i_hnum.value = i_hnum;
			document.forms[0].sell_type_jnse.value = 'Y';
			document.forms[0].action = '/iestate/view.php'; 
			document.forms[0].submit();
		}

		function view_rent_house(i_hnum) {
			document.forms[0].i_hnum.value = i_hnum;
			document.forms[0].sell_type_rent.value = 'Y';
			document.forms[0].action = '/iestate/view.php'; 
			document.forms[0].submit();
		}

		function add_to_mypicks(i_hnum) {
			document.forms[0].i_hnum.value = i_hnum; 
			document.forms[0].action = '/iestate/mypicks.php'; 
			document.forms[0].submit();
		}

		function ask_house(i_hnum) {
			document.forms[0].i_hnum.value = i_hnum; 
			document.forms[0].action = '/request/index.php'; 
			document.forms[0].submit();
		}
		
		function print_house(hnum) {
			document.forms[0].hnum.value = hnum; 
			document.forms[0].action = 'print.php'; 
			document.forms[0].submit();
		}

		function add_to_mypicks2() {
			document.forms[0].action = '/iestate/mypicks.php'; 
			document.forms[0].submit();
		}
		
		function view_all() {
			document.forms[0].action = '/iestate/mypicks.php?mode=vall';
			document.forms[0].submit();
		}

		function change_sell_rent() {
			var rent = document.forms[0].sell_type_rent.checked;
			var price_unit = document.forms[0].price_unit.value;

			if (rent) {
				document.forms[0].sell_type_sale.checked = false;
				document.forms[0].sell_type_jnse.checked = false;
			} else {
				document.forms[0].sell_type_rent.checked = true;
			}
			
			if (price_unit == "usd") {
				change_price_usd2();
				
			} else if (price_unit == "krw") {
				change_price_krw2();
			}
		}


		function change_sell_sale() {
			var sale = document.forms[0].sell_type_sale.checked;
			var price_unit = document.forms[0].price_unit.value;

			if (sale) {
				document.forms[0].sell_type_rent.checked = false;
				document.forms[0].sell_type_jnse.checked = false;
			} else {
				document.forms[0].sell_type_sale.checked = true;
			}

			if (price_unit == "usd") {
				change_price_usd3();
				
			} else if (price_unit == "krw") {
				change_price_krw3();
			}
		}

		function change_sell_jnse() {
			var jnse = document.forms[0].sell_type_jnse.checked;
			var price_unit = document.forms[0].price_unit.value;

			if (jnse) {
				document.forms[0].sell_type_rent.checked = false;
				document.forms[0].sell_type_sale.checked = false;
			} else {
				document.forms[0].sell_type_jnse.checked = true;
			}

			if (price_unit == "usd") {
				change_price_usd3();
				
			} else if (price_unit == "krw") {
				change_price_krw3();
			}
		}

		function change_type_any() {
			var any = document.forms[0].estate_type_any.checked;
			//alert(any);
			if (any) {
				document.forms[0].estate_type_apt.checked = true;
				document.forms[0].estate_type_apt.disabled = true;

				document.forms[0].estate_type_house.checked = true;
				document.forms[0].estate_type_house.disabled = true;

				document.forms[0].estate_type_villa.checked = true;
				document.forms[0].estate_type_villa.disabled = true;
				
			} else {
				document.forms[0].estate_type_apt.checked = false;
				document.forms[0].estate_type_apt.disabled = false;

				document.forms[0].estate_type_house.checked = false;
				document.forms[0].estate_type_house.disabled = false;

				document.forms[0].estate_type_villa.checked = false;
				document.forms[0].estate_type_villa.disabled = false;
			}
		}
		
		function change_price_unit()	{
			var unit = document.forms[0].price_unit.value;
			var rent = document.forms[0].sell_type_rent.checked;
			
			if (unit == "usd") {
				if (rent) {
					change_price_usd2();
				} else {
					change_price_usd3();
				}

			} else if (unit == "krw") {
				if (rent) {
					change_price_krw2();
				} else {
					change_price_krw3();
				}
			}
		}

		function change_price_unit2()	{
			var unit = document.forms[0].price_unit.value;
			var rent = document.forms[0].sell_type_rent.value;
			
			if (unit == "usd") {
				if (rent == "Y") {
					change_price_usd2();
				} else {
					change_price_usd3();
				}

			} else if (unit == "krw") {
				if (rent == "Y") {
					change_price_krw2();
				} else {
					change_price_krw3();
				}
			}
		}

		function change_price_usd() {
			var usd = document.forms[0].usd.checked;
			var krw = document.forms[0].krw.checked;
			
			if (usd) {
				document.forms[0].krw.checked = false;
			}

			if (!krw) {
				document.forms[0].usd.checked = true;
			}
		
			change_price_usd2();	
		}
		
		// 렌트가격
		function change_price_usd2() {
			document.forms[0].price.options[0] = new Option("Price Range (USD)", "all");
			document.forms[0].price.options[1] = new Option("- - - - - - - - - - - - - - - -", "");
			document.forms[0].price.options[2] = new Option("$1,000 ~ $2,000", "usd/1000/2000");
			document.forms[0].price.options[3] = new Option("$2,000 ~ $3,000", "usd/2000/3000");
			document.forms[0].price.options[4] = new Option("$3,000 ~ $4,000", "usd/3000/4000");
			document.forms[0].price.options[5] = new Option("$4,000 ~ $6,000", "usd/4000/6000");
			document.forms[0].price.options[6] = new Option("$6,000 ~ $8,000", "usd/6000/8000");
			document.forms[0].price.options[7] = new Option("$8,000 ~ $10,000", "usd/8000/10000");
			document.forms[0].price.options[8] = new Option("OVER $10,000", "usd/10000/");
		}
		
		// 매매, 전세가격		
		function change_price_usd3() {
			document.forms[0].price.options[0] = new Option("Price Range (USD)", "all");
			document.forms[0].price.options[1] = new Option("- - - - - - - - - - - - - - - -", "");
			document.forms[0].price.options[2] = new Option("$50,000 ~ $100,000", "usd/50000/100000");
			document.forms[0].price.options[3] = new Option("$100,000 ~ $300,000", "usd/100000/300000");
			document.forms[0].price.options[4] = new Option("$300,000 ~ $500,000", "usd/300000/500000");
			document.forms[0].price.options[5] = new Option("$500,000 ~ $700,000", "usd/500000/700000");
			document.forms[0].price.options[6] = new Option("$700,000 ~ $900,000", "usd/700000/900000");
			document.forms[0].price.options[7] = new Option("$900,000 ~ $1,100,000", "usd/900000/1100000");
			document.forms[0].price.options[8] = new Option("OVER $1,100,000", "usd/1100000/");
		}
		
		function change_price_krw() {
			var usd = document.forms[0].usd.checked;
			var krw = document.forms[0].krw.checked;

			if (krw) {
				document.forms[0].usd.checked = false;
			}
			
			if (!usd) {
				document.forms[0].krw.checked = true;
			}
			
			change_price_krw2();
		}
		
		// 렌트가격		
		function change_price_krw2() {
			document.forms[0].price.options[0] = new Option("Price Range (KRW)", "all");
			document.forms[0].price.options[1] = new Option("- - - - - - - - - - - - - - - -", "");
			document.forms[0].price.options[2] = new Option("1,000,000 ~ 2,000,000", "krw/1000000/2000000");
			document.forms[0].price.options[3] = new Option("2,000,000 ~ 3,000,000", "krw/2000000/3000000");
			document.forms[0].price.options[4] = new Option("3,000,000 ~ 4,000,000", "krw/3000000/4000000");
			document.forms[0].price.options[5] = new Option("4,000,000 ~ 6,000,000", "krw/4000000/6000000");
			document.forms[0].price.options[6] = new Option("6,000,000 ~ 8,000,000", "krw/6000000/8000000");
			document.forms[0].price.options[7] = new Option("8,000,000 ~ 10,000,000", "krw/8000000/10000000");
			document.forms[0].price.options[8] = new Option("OVER 10,000,000", "krw/10000000/");
		}
		
		// 매매, 전세가격
		function change_price_krw3() {
			document.forms[0].price.options[0] = new Option("Price Range (KRW)", "all");
			document.forms[0].price.options[1] = new Option("- - - - - - - - - - - - - - - -", "");
			document.forms[0].price.options[2] = new Option("50,000,000 ~ 100,000,000", "krw/50000000/100000000");
			document.forms[0].price.options[3] = new Option("100,000,000 ~ 300,000,000", "krw/100000000/300000000");
			document.forms[0].price.options[4] = new Option("300,000,000 ~ 500,000,000", "krw/300000000/500000000");
			document.forms[0].price.options[5] = new Option("500,000,000 ~ 700,000,000", "krw/500000000/700000000");
			document.forms[0].price.options[6] = new Option("700,000,000 ~ 900,000,000", "krw/700000000/900000000");
			document.forms[0].price.options[7] = new Option("900,000,000 ~ 1,100,000,000", "krw/900000000/1100000000");
			document.forms[0].price.options[8] = new Option("OVER 1,100,000,000", "krw/1100000000/");
		}

		function change_size_unit()	{
			var unit = document.forms[0].size_unit.value;
			if (unit == "sqm") {
				change_size_sqm2();

			} else if (unit == "sqft") {
				change_size_sqft2();
				
			} else if (unit == "pyong") {
				change_size_pyong2();
			}
		}

		function change_size_sqm() {
			var sqm = document.forms[0].sqm.checked;
			var sqft = document.forms[0].sqft.checked;
			var pyong = document.forms[0].pyong.checked;
			
			if (sqm) {
				document.forms[0].sqft.checked = false;
				document.forms[0].pyong.checked = false;
			}
			
			if (!sqft && !pyong) {
				document.forms[0].sqm.checked = true;
			}
			
			change_size_sqm2();
		}
		
		function change_size_sqm2() {
			document.forms[0].size.options[0] = new Option("Property Size (㎡)", "all");
			document.forms[0].size.options[1] = new Option("- - - - - - - - -", "");
			document.forms[0].size.options[2] = new Option("10 ~ 100 ㎡", "sqm/10/100");
			document.forms[0].size.options[3] = new Option("100 ~ 150 ㎡", "sqm/100/150");
			document.forms[0].size.options[4] = new Option("150 ~ 200 ㎡", "sqm/150/200");
			document.forms[0].size.options[5] = new Option("200 ~ 300 ㎡", "sqm/200/300");
			document.forms[0].size.options[6] = new Option("300 ~ 400 ㎡", "sqm/300/400");
			document.forms[0].size.options[7] = new Option("400 ~ 500 ㎡", "sqm/400/500");
			document.forms[0].size.options[8] = new Option("OVER 500 ㎡", "sqm/500/");
		}

		function change_size_sqft() {
			var sqm = document.forms[0].sqm.checked;
			var sqft = document.forms[0].sqft.checked;
			var pyong = document.forms[0].pyong.checked;

			if (sqft) {
				document.forms[0].sqm.checked = false;
				document.forms[0].pyong.checked = false;
			}

			if (!sqm && !pyong) {
				document.forms[0].sqft.checked = true;
			}
			
			change_size_sqft2();
		}
		
		function change_size_sqft2() {
			document.forms[0].size.options[0] = new Option("Property Size (ft²)", "all");
			document.forms[0].size.options[1] = new Option("- - - - - - - - -", "");
			document.forms[0].size.options[2] = new Option("100 ~ 1000 ft²", "sqft/100/1000");
			document.forms[0].size.options[3] = new Option("1000 ~ 1500 ft²", "sqft/1000/1500");
			document.forms[0].size.options[4] = new Option("1500 ~ 2000 ft²", "sqft/1500/2000");
			document.forms[0].size.options[5] = new Option("2000 ~ 3000 ft²", "sqft/2000/3000");
			document.forms[0].size.options[6] = new Option("3000 ~ 4000 ft²", "sqft/3000/4000");
			document.forms[0].size.options[7] = new Option("4000 ~ 5000 ft²", "sqft/4000/5000");
			document.forms[0].size.options[8] = new Option("OVER 5000 ft²", "sqft/5000/");
		}
		
		
		function change_size_pyong() {
			var sqm = document.forms[0].sqm.checked;
			var sqft = document.forms[0].sqft.checked;
			var pyong = document.forms[0].pyong.checked;

			if (pyong) {
				document.forms[0].sqm.checked = false;
				document.forms[0].sqft.checked = false;
			}
			
			if (!sqm && !sqft) {
				document.forms[0].pyong.checked = true;
			}
			
			change_size_pyong2();
		}
		
		function change_size_pyong2() {
			document.forms[0].size.options[0] = new Option("Property Size (py)", "all");
			document.forms[0].size.options[1] = new Option("- - - - - - - - -", "");
			document.forms[0].size.options[2] = new Option("10 ~ 20 py", "py/10/20");
			document.forms[0].size.options[3] = new Option("20 ~ 30 py", "py/20/30");
			document.forms[0].size.options[4] = new Option("30 ~ 40 py", "py/30/40");
			document.forms[0].size.options[5] = new Option("40 ~ 60 py", "py/40/60");
			document.forms[0].size.options[6] = new Option("60 ~ 80 py", "py/60/80");
			document.forms[0].size.options[7] = new Option("80 ~ 100 py", "py/80/100");
			document.forms[0].size.options[8] = new Option("OVER 100 py", "py/100/");
		}

		function ace_trim(str) {
			var word = '';
			
			for(i = 0; i < str.length; i++) {
				if (str.charAt(i) == " ") {
				} else  {
					word = word + str.charAt(i);
				}
			}
			return word;
		}
		
		function check_email(mail) {
			//alert(mail);
			if (mail.indexOf("@") == -1){
				return true;
			}
			if (mail.lastIndexOf(".") == -1){
				return true;
			}
			if (mail.substring(0, mail.indexOf("@")) == ""){
				return true;
			}
			if (mail.indexOf("@") + 1 == mail.indexOf(".")){
				return true;
			}
			if (mail.substring(mail.lastIndexOf(".") + 1) == ""){
				return true;
			}
		}
		
		document.oncontextmenu=new Function("return false");
		//document.ondragstart=new Function("return false");
		//document.onselectstart=new Function("return false");
		
		
		// 구글 애널리틱스(www.acerealty.kr)
		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		try {
		var pageTracker = _gat._getTracker("UA-7350053-3");
		pageTracker._trackPageview();
		} catch(err) {}
		
		
		// 구글 애널리틱스(www.acerealty.co.kr)
		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		try {
		var pageTracker = _gat._getTracker("UA-7350053-5");
		pageTracker._trackPageview();
		} catch(err) {}	
		
		// 구글 애널리틱스(www.korea-apartment.net)
		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		try {
		var pageTracker = _gat._getTracker("UA-7350053-6");
		pageTracker._trackPageview();
		} catch(err) {}
		
		
		// 구글 애널리틱스(www.seoul-apartment.net)
		var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
		document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
		try {
		var pageTracker = _gat._getTracker("UA-7350053-7");
		pageTracker._trackPageview();
		} catch(err) {}	