		function clearText(val) {
			val.value = "";
		}

		function msearcher(frm) {
			if(frm.keyword.value == "") {
				frm.keyword.value = "";
			}

			if(fnTrim(frm.keyword.value) == "") {
				alert("°Ë»ö¾î¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");
				frm.keyword.focus();
				return false;
			}

			if(frm.keyword.value.length <= 1) {
				alert("°Ë»ö¾î¸¦ 1ÀÚ ÀÌ»ó ÀÔ·ÂÇÏ¼¼¿ä.");
				frm.keyword.focus();
				return false;
			}
			
			/* Æ¯Á¤´Ü¾î °Ë»ö½Ã ¿øÇÏ´Â ÆäÀÌÁö·Î ÀÌµ¿ */
			if(frm.keyword.value == "°Ë»öÃ¢¿¡ 'ºäÆ¼¿¢½ºÆ÷'¸¦ ÃÄº¸¼¼¿ä" || frm.keyword.value == "ºäÆ¼¿¢½ºÆ÷" ) {
				frm.keyword.value = "ºäÆ¼¿¢½ºÆ÷";
				frm.target = "_blank";
				frm.action = "/cp_joint/expo.htm";
			}else {
				/*frm.action = '/search/keyword_search.asp';*/
				frm.target = "_self";

				frm.action = 'http://www.beautynury.com/search/keyword_search.asp';
			}
		}

		function searchChange(val,where) {
			if(val == "0") {
				for(i = 1; i < 4; i++) {
					document.all["searchtype_"+i].style.display= 'none';
				}
				document.msearch.keyword.readOnly  = false;

			}else {
				overM(this,val,where);
				document.msearch.keyword.readOnly  = true;
			}
		}


		function subjectsearcher(code, codename) {
			var frm = document.subjectform;
			frm.code.value = code;
			frm.codeName.value = codename;
			frm.action = '/search/subject_search.asp';
			//frm.target = 'multi_search';
			//document.all["searchtype_1"].style.display= 'none';
			frm.submit();

		}

		function companyhub(name, code) {
			var frm = document.companyform;
			frm.companycode.value = code;
			frm.companyname.value = name;
			frm.action = '/search/company_search.asp';
			//frm.target = 'multi_search';
			//document.all["searchtype_2"].style.display= 'none';
			frm.submit();

		}

		function brandsearcher(frm) {
			if(fnTrim(frm.brandname.value) == "") {
				alert("ºê·£µå¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
				frm.brandname.focus();
				return false;
			}
		}

		function brandhub(companycode,brandcode,brandname) {
			var frm = document.brandform;
			frm.companycode.value = companycode;
			frm.brandcode.value = brandcode;
			frm.brandname.value = brandname;
			frm.action = '/search/brand_search.asp';
			//frm.target = 'multi_search';
			//document.all["searchtype_3"].style.display= 'none';
			frm.submit();

		}

		function overM(obj,num,where) {
			for(i = 1; i < 4; i++) {
				document.all["searchtype_"+i].style.display= 'none';
			}

			document.all["searchtype_"+num].style.display = 'block';
			if(where == "main") {
				document.all["search_"+num].style.left = 51;				
				document.all["search_"+num].style.top = 12;				
			}else if(where == "ubook" || where == "fnj") {
				document.all["search_"+num].style.left = 495;				
				document.all["search_"+num].style.top = 75;				
			}else if(where == "recruit" || where == "bnh") {
				document.all["search_"+num].style.left = 495;				
				document.all["search_"+num].style.top = 60;				
			}else if(where == "campus") {
				document.all["search_"+num].style.left = 495;				
				document.all["search_"+num].style.top = 100;				
			}else if(where == "news") {
				document.all["search_"+num].style.left = 435;				
				document.all["search_"+num].style.top = 60;				
			}else if(where == "search") {
				document.all["search_"+num].style.left = 175;				
				document.all["search_"+num].style.top = 0;				
			}else {
				document.all["search_"+num].style.left = 200;				
				document.all["search_"+num].style.top = -4;				
			}
		}

		function outM(obj,num) {
			var searchtype = eval('searchtype_' + num);
			searchtype.style.display = 'none';
		}

		/* À§ µÎ°³ function °ú ÀÇ¹Ì´Â °°À¸´Ï ebrand ¿¡¼­¸¸ »ç¿ëÇÔ */
		function overMEBrand(obj,num,where) {
			for(i = 1; i < 4; i++) {
				document.all["searchtype_"+i].style.display= 'none';
			}

			document.all["searchtype_"+num].style.display = 'block';
			document.all["search_"+num].style.left = 495;				
			document.all["search_"+num].style.top = 100;				
		}

		function outMEBrand(obj,num) {
			var searchtype = eval('searchtype_' + num);
			searchtype.style.display = 'none';
		}


		function clearDiv() {
			for(i = 1; i < 4; i++) {
				document.all["searchtype_"+i].style.display= 'none';
			}
		}

		function resizeHeight(fr) {
			fr = typeof fr == 'string' ? document.getElementById(fr) : fr;
			fr.setExpression('height',multi_search.document.body.scrollHeight);
		}
		
		/* ajax Åë½Å È¸»ç °¡Á®¿À±â */
		var ajaxCompanyList;

		function getCompanyList(){
			var obj = document.getElementById("whatcompanyname");
			if(fnTrim(obj.value) == "") {
				alert("È¸»ç¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
				obj.focus();
				return;
			}

			ajaxCompanyList = new ActiveXObject("Microsoft.XMLHTTP");

			ajaxCompanyList.onreadystatechange = ajaxCompanyListCallBack;
			ajaxCompanyList.open("GET", "/search/company_select.asp?companyname=" + obj.value, true);
			ajaxCompanyList.send();
		}

	 

		function ajaxCompanyListCallBack() {
			if(ajaxCompanyList.readyState == 4){
				if(ajaxCompanyList.status == 200){
					if(typeof(document.all.div_company_list) == "object"){
						if(ajaxCompanyList.responseText.length > 0){
							document.all.div_company_list.style.display = "";
							document.all.div_company_list.innerHTML = ajaxCompanyList.responseText;
						} else {
							document.all.div_company_list.style.display = "none";
						}
					}
				}
			}
		}

		/* ajax Åë½Å ºê·£µå °¡Á®¿À±â */
		var ajaxBrandList;

		function getBrandList(){
			var obj = document.getElementById("whatbrandname");
			if(fnTrim(obj.value) == "") {
				alert("ºê·£µå¸íÀ» ÀÔ·ÂÇÏ¼¼¿ä.");
				obj.focus();
				return;
			}

			ajaxBrandList = new ActiveXObject("Microsoft.XMLHTTP");

			ajaxBrandList.onreadystatechange = ajaxBrandListCallBack;
			ajaxBrandList.open("GET", "/search/brand_select.asp?brandname=" + obj.value, true);
			ajaxBrandList.send();
		}

	 

		function ajaxBrandListCallBack() {
			if(ajaxBrandList.readyState == 4){
				if(ajaxBrandList.status == 200){
					if(typeof(document.all.div_brand_list) == "object"){
						if(ajaxBrandList.responseText.length > 0){
							document.all.div_brand_list.style.display = "";
							document.all.div_brand_list.innerHTML = ajaxBrandList.responseText;
						} else {
							document.all.div_brand_list.style.display = "none";
						}
					}
				}
			}
		}

		function beautycity(comcode) {
			window.open('/search/beautycity_info.asp?companyCode='+comcode,'beautycity','top=0, left=0, toolbar=no,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0,width=800,height=680')
		}

		// tool tip º¸ÀÌ±â
		function showSearchTip(e1, e2) {
			if (typeof(e2) != "undefined") {
					e2.style.display = "";
					e2.style.height = e1.offsetHeight;
					e2.style.width = e1.offsetWidth;
					e2.style.left = e1.offsetLeft-61;
					e2.style.top = e1.offsetTop + e1.offsetHeight;
			}
		}
		// tool tip ¼û±â±â
		function hiddenSearchTip(e) {
			if (typeof(e) != "undefined") {
					e.style.display = "none";   
			}
		}
