
///#########################################################################################################
/*
	var arrSido = new Array();
	var arrGu = new Array();
	var arrJobKind = new Array();
	var arrJobKindSub = new Array();
*/
//	var nvalue;
//	var description;
/*
	function clsSido(nvalue, description) {
		this.nvalue = nvalue;
		this.description = description;
	}

	function clsGu(category,nvalue,description) {
		this.category = category;
		this.nvalue = nvalue;
		this.description = description;
	}
	function clsJobKind(kindCode, kind) {
		this.kindCode = kindCode;
		this.kind = kind;
	}

	function clsJobKindSub(kindCode, kindSubCode, kindSub, ingiKind, isListingMyOrderJob) {
		this.kindCode = kindCode;
		this.kindSubCode = kindSubCode;
		this.kindSub = kindSub;
		this.ingiKind = ingiKind;
		this.isListingMyOrderJob = isListingMyOrderJob;
	}
*/
	////////////////////////////////////////////

	//½Ã option »ý¼º
	function a_name_create(oSelect, arrVal, strSel){
		var i;
		for ( i=0; i<arrVal.length;i++) {
			oSelect.options[oSelect.length] = new Option(arrVal[i].description, arrVal[i].nvalue);
			if(arrVal[i].nvalue==strSel) oSelect.options[i+1].selected=true;
		}
	}

	//½Ã option »ý¼º	(short ½Ã)
	function selectSi_setting(oSelect, arrVal, strSel){
		var i;

		for ( i=0; i<arrVal.length;i++) {
			oSelect.options[oSelect.length] = new Option(arrVal[i].description, arrVal[i].nvalue);
//			oSelect.options[oSelect.length] = new Option(longSi2shortSi(arrVal[i].description), arrVal[i].nvalue);
			if(arrVal[i].nvalue==strSel) oSelect.options[i+1].selected=true;
		}
	}


	// ¼±ÅÃÇÑ ±¸ Ç¥½Ã
	function selectedGu_display(){
		var i, str="";
		var j_co_place = document.formSrchPublic.j_co_place;

		if(j_co_place==null){return;}

		for(i=0; i<j_co_place.length; i++){
			if(j_co_place[i].checked){
				str += j_co_place[i].value+", ";
			}
		}
		str = str.substring(0,(str.length-2));

		if(str==""){idStrGu.innerHTML="±¸,±º";}else{idStrGu.innerHTML="<strong>"+str+"</strong>";}
		document.formSrchPublic.j_co_place.value=str;
	}

	// ±¸ combo Ç¥½Ã
	function selectGu_setting(oSelect, sidoVal, arrVal, selVal){
		var i;
		oSelect.length = 1;
		for (i=0; i<arrVal.length;i++) {
			if (arrVal[i].category==sidoVal){

				oSelect.options[oSelect.length] = new Option(arrVal[i].description, arrVal[i].nvalue);
				if(arrVal[i].nvalue==selVal) oSelect.options[oSelect.length-1].selected=true;
			}
		}
	}

	// µ¿ combo Ç¥½Ã
	function selectDong_setting(oSelect, sidoVal){
		var i;
		for (i=0; i<oSelect.length;i++) {
			if (oSelect.options[i].value==sidoVal){
				 oSelect.options[i].selected=true;
				 break;
			}
		}
	}

	// ÁöÇÏÃ¶³ë¼± combo Ç¥½Ã
	function selectSubWayLine_setting(oSelect, sidoVal, arrVal, selVal, dispVal){
		var i=0;
		var isChange=true;
		oSelect.length = 1;

		if (sidoVal=="¼­¿ï" || sidoVal=="°æ±â" || sidoVal=="ÀÎÃµ"){
			oSelect.options[oSelect.length] = new Option(arrVal[0].n_name, arrVal[0].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[1].n_name, arrVal[1].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[2].n_name, arrVal[2].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[3].n_name, arrVal[3].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[4].n_name, arrVal[4].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[5].n_name, arrVal[5].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[6].n_name, arrVal[6].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[7].n_name, arrVal[7].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[8].n_name, arrVal[8].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[9].n_name, arrVal[9].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[10].n_name, arrVal[10].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[17].n_name, arrVal[17].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[19].n_name, arrVal[19].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[20].n_name, arrVal[20].n_code);
		}else if(sidoVal=="ºÎ»ê" || sidoVal=="°æ³²"){
			oSelect.options[oSelect.length] = new Option(arrVal[11].n_name, arrVal[11].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[12].n_name, arrVal[12].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[13].n_name, arrVal[13].n_code);
		}else if(sidoVal=="´ë±¸" || sidoVal=="°æºÏ"){
			oSelect.options[oSelect.length] = new Option(arrVal[14].n_name, arrVal[14].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[15].n_name, arrVal[15].n_code);
		}else if(sidoVal=="±¤ÁÖ" || sidoVal=="Àü³²"){
			oSelect.options[oSelect.length] = new Option(arrVal[16].n_name, arrVal[16].n_code);
		}else if(sidoVal=="´ëÀü" || sidoVal=="Ãæ³²"){
			oSelect.options[oSelect.length] = new Option(arrVal[0].n_name, arrVal[0].n_code);
			oSelect.options[oSelect.length] = new Option(arrVal[18].n_name, arrVal[18].n_code);
		}else{
			isChange = false;
		}

		if(dispVal != ""){
			dispVal.disabled = !isChange;

			document.formOrder.n_code.disabled = !isChange;
			document.formOrder.c_code.disabled = !isChange;
			document.formOrder.Subway_outnum.disabled = !isChange;
			document.formOrder.Subway_Meter.disabled = !isChange;

			document.formOrder.n_code2.disabled = !isChange;
			document.formOrder.c_code2.disabled = !isChange;
			document.formOrder.Subway_outnum2.disabled = !isChange;
			document.formOrder.Subway_Meter2.disabled = !isChange;

			document.formOrder.n_code3.disabled = !isChange;
			document.formOrder.c_code3.disabled = !isChange;
			document.formOrder.Subway_outnum3.disabled = !isChange;
			document.formOrder.Subway_Meter3.disabled = !isChange;
		}
	}

	//Á÷Á¾1Â÷ option »ý¼º
	function jobKind_create(oSelect, arrVal, selVal){
		var i;
		for ( i=0; i<arrVal.length;i++) {
			oSelect.options[oSelect.length] = new Option(arrVal[i].kind, arrVal[i].kindCode);
			if(arrVal[i].kindCode==selVal){oSelect.options[i+1].selected=true;}
		}
	}


	//Á÷Á¾2Â÷ option »ý¼º
	function jobKindSub_create(kindCode, selVal){

		var oSelect=document.getElementById("jobKindSub");
		var i;

		oSelect.length = 1;
		if(kindCode==""){return;}

		for ( i=0; i<arrJobKindSub.length;i++) {
			if(kindCode==arrJobKindSub[i].kindCode){
				oSelect.options[oSelect.length] = new Option(arrJobKindSub[i].kindSub, arrJobKindSub[i].kindSubCode);
				if(arrJobKindSub[i].kindSubCode==selVal){oSelect.options[oSelect.length-1].selected=true;}
			}
		}
//		oSelect.reInitializeSelectBox();
	}


/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
	//Á÷Á¾°³Æí Á÷Á¾1Â÷ option »ý¼º
	function jobKind_create_new(oSelect, arrVal, selVal){
		var i;
		for ( i=0; i<arrVal.length;i++) {
			oSelect.options[oSelect.length] = new Option(arrVal[i].jk_name, arrVal[i].jk_code);
			if(arrVal[i].jk_code==selVal){oSelect.options[i+1].selected=true;}
		}
	}

	//Á÷Á¾°³Æí Á÷Á¾2Â÷ option »ý¼º
	function jobKindSub_create_new(kindCode, selVal){

		var oSelect=document.getElementById("jobKindSub");
		var setSubCode;
		var i;

		oSelect.length = 1;
		if(kindCode==""){return;}

		for ( i=0; i<arrJkInfo.length ; i++) {
			if( kindCode == arrJkInfo[i].jk_code ) {
				setSubCode = arrJkInfo[i].jobKind;
			}
		}

		for ( i=0; i<arrJKSubInfo.length;i++) {
			if( setSubCode == arrJKSubInfo[i].jobKind ){
				oSelect.options[oSelect.length] = new Option(arrJKSubInfo[i].jk_name, arrJKSubInfo[i].jk_code);
				if(arrJKSubInfo[i].jk_code==selVal){oSelect.options[oSelect.length-1].selected=true;}
			}
		}
	}
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////


	//±¸ ·¹ÀÌ¾î¿¡ checkbox ³Ö±â
	function layGu_innerHTML(val, selVal){	// (¼±ÅÃ ½Ã.µµ , ¼±ÅÃ ±¸.±º)
		var str;
		var colNum=3;	//¿­ °¹¼ö

		str = "<ul>";
		var i, k=0;
		for(i=0; i<arrGu.length; i++){
			if(arrGu[i].category == val){
				str +="<li onMouseOver=\"this.style.background='#F0F0F0'\" onMouseOut=\"this.style.background=''\">"
						+"	<input type=checkbox id=j_co_place"+k+" name=j_co_place value='"+arrGu[i].nvalue+"'"
						+"		class=menuItem onClick='selectedGu_display();'"+guSelected_return(selVal, arrGu[i].nvalue)+">"
						+"	<label class=menuItem for=j_co_place"+k+" onmouseover=\"this.style.cursor='pointer';\">"
						+		arrGu[i].description
						+"	</label>"
						+"</li>";
				k++;
			}
		}
		str += "	</ul>";
		str += "	<p><img src='http://image.alba.kr/btn/btn_close02.gif' alt='´Ý±â' /></p>";

		layGu.innerHTML = str;
		selectedGu_display();	//¼±ÅÃ±¸ text·Î Ç¥½Ã
	}
	function guSelected_return(allStr, kindCode){
		var rer = allStr.split(", ");
		var rer_val=0;
		for (i=0;i<rer.length;i++) {
		   if (rer[i] == kindCode) {
			rer_val = 1;
		   }
		}
		if (rer_val == 1) {
			return " checked";
		}else{
			return "";
		}
	}


	//1Â÷Á÷Á¾ layer ¿¡ checkbox ³Ö±â
	function layKind_innerHTML(selVal){
		var str;
		var colNum=1;	//¿­ °¹¼ö

		str = "<table cellpadding=0 cellspacing=0 border=0 width=110>";
		var i, k=0;
		//1Â÷Á÷Á¾
		for(i=0; i<arrJobKind.length; i++){
			str +=	"<tr><td class=menuItem onMouseOver=\"this.style.background='#dcdcdc'\" "
					+"			onMouseOut=\"this.style.background=''\">"
					+"	<label class=menuItem for=j_kind_int"+k+" onmouseover=\"this.style.cursor='pointer';\">"
					+"		<input type=checkbox id=j_kind_int"+k+" name=j_kind_ints value='"+arrJobKind[i].kindCode+"' title='"+arrJobKind[i].kind+"'"
					+"				class=menuItem onClick='selectedKind_display();'"+kindSelected_return(selVal, arrJobKind[i].kindCode, "", "", "1")+">"
					+	arrJobKind[i].kind
					+"	</label>"
					+"</td></tr>";
			k++;
		}

		//2Â÷Á÷Á¾ (3Â÷Á÷Á¾ ÀÖ´Â°Å)
		for(i=0; i<arrJobKindSub.length; i++){
			if (arrJobKindSub[i].isListingMyOrderJob=="1"){
				str +=	"<tr><td class=menuItem onMouseOver=\"this.style.background='#dcdcdc'\" "
						+"			onMouseOut=\"this.style.background=''\">"
						+"	<label class=menuItem for=j_kind_int"+k+" onmouseover=\"this.style.cursor='pointer';\">"
						+"		<input type=checkbox id=j_kind_int"+k+" name=j_kind_ints value='"+arrJobKindSub[i].kindCode+"-"+arrJobKindSub[i].kindSubCode+"' title='"+arrJobKindSub[i].kindSub+"'"
						+"				class=menuItem onClick='selectedKind_display();'"+kindSelected_return(selVal, arrJobKindSub[i].kindCode, arrJobKindSub[i].kindSubCode, arrJobKindSub[i].isListingMyOrderJob, "2")+">"
						+	arrJobKindSub[i].kindSub
						+"	</label>"
						+"</td></tr>";
				k++;
			}
		}
		str += "    <tr><td align='right' class=menuItem><img src='http://image.alba.kr/btn/btn_close02.gif' border=0 style='cursor:pointer;'></td></tr>"
		str += "</table>";

		layKind.innerHTML = str;
	}
	function kindSelected_return(allStr, kindCode, kindSubCode, isListing, kindLevel){
		if (kindLevel=="1"){	//1Â÷Á÷Á¾ ¸¸ ÀÌ¸é
			var arrCommaSplit = allStr.split(", ");
			var rer_val=0;
			var tmpKind

			for (i=0;i<arrCommaSplit.length;i++) {
				if(isMyOrderListing(arrCommaSplit[i])){continue;}	//listing ÀÌ¸é Á¦¿Ü

				//1Â÷ Á÷Á¾ÄÚµå ¸¸ ¶¼±â..
				var re = /-..|-./g;	//Á¤±Ô½Ä ÆÐÅÏ
				tmpKind = arrCommaSplit[i].replace(re, "")		// 1-4	=> 1	º¯È¯

				if (kindCode==tmpKind){

				}

				if (tmpKind == kindCode) {
					rer_val = 1;
				}
			}
			if (rer_val == 1) {
				return " checked";
			}else{
				return "";
			}
		}else if(kindLevel=="2"){	//2Â÷Á÷Á¾ ¸¸ ÀÌ¸é
			if (isListing!="1"){return;}

			var arrCommaSplit = allStr.split(", ");
			var rer_val=0;
			for (i=0;i<arrCommaSplit.length;i++) {
			   if (arrCommaSplit[i] == kindCode+"-"+kindSubCode) {
				rer_val = 1;
			   }
			}
			if (rer_val == 1) {
				return " checked";
			}else{
				return "";
			}
		}
	}
	//listing ÀÎÁö ¾Æ´ÑÁö return	// ex) strVal="2-3"
	function isMyOrderListing(strVal){
		var i;
		for(i=0; i<arrJobKindSub.length; i++){
			if ( (strVal==arrJobKindSub[i].kindCode+"-"+arrJobKindSub[i].kindSubCode)
					&& arrJobKindSub[i].isListingMyOrderJob=="1"){
				return true;
			}
		}
		return false;
	}


	// ¼±ÅÃÇÑ 1Â÷Á÷Á¾ Ç¥½Ã
	function selectedKind_display(){
		var i, val="", str="";
		var j_kind_ints = document.formSrchPublic.j_kind_ints;

		if(j_kind_ints==null){return;}

		for(i=0; i<j_kind_ints.length; i++){
			if(j_kind_ints[i].checked){
				val += j_kind_ints[i].value+", ";
				str += j_kind_ints[i].title+", ";
			}
		}
		str = str.substring(0,(str.length-2));
		val = val.substring(0,(val.length-2));

		if(str==""){idStrKind.innerHTML="1Â÷Á÷Á¾";}else{idStrKind.innerHTML="<b>"+str+"</b>";}
		document.formSrchPublic.j_kind_int.value=val;
	}


	//·¹ÀÌ¾î ¶ç¿ï¶§ ¹Ø¿¡ selectBox, submit ¼û±â±â/º¸ÀÌ±â
	function underSelectBox_showHide(strDispVal, strID){
		if (strID!="layKind"){
			var oForm = document.formSrchPublic;
			if (typeof(document.all.jobKindSub)=="object"){oForm.jobKindSub.style.display=strDispVal;}
			oForm.ageRange.style.display=strDispVal;
			oForm.j_sex.style.display=strDispVal;
			oForm.duty_gubun.style.display=strDispVal;

			try{
				document.formList.preview_gen.style.display=strDispVal;
				document.formList.orderby_gen.style.display=strDispVal;
				document.formList.rccount_gen.style.display=strDispVal;
			}catch(e){}

			if (typeof(document.all.j_type)=="object"){oForm.j_type.style.display=strDispVal;}
//			oForm.j_type.style.display=strDispVal;
			if (typeof(document.all.idBtnSubmit)=="object"){idBtnSubmit.style.display=strDispVal;}
		}
	}


/*
	//ÀÎ±Ù´ëÇÐ Áö¿ª combo ..
	function uniAreaCombo_create(upp_name, selVal){
		var oSelect=document.getElementById('uni_code');
		var i;
		oSelect.length = 0;
		oSelect.options[oSelect.length] = new Option('ÀÎ±Ù´ëÇÐ', '');
		for ( i=0; i<arrUni.length;i++) {
			if(upp_name==arrUni[i].upp_name){
				oSelect.options[oSelect.length] = new Option(arrUni[i].uni_name, arrUni[i].uni_code);
				if(arrUni[i].uni_code==selVal){oSelect.options[oSelect.length-1].selected=true;}
			}
		}
	}
*/
	//ÀÎ±Ù´ëÇÐ
	function uniCombo_create(oSelect, upp_name, selVal){
//		var oSelect=document.getElementById('uni_code');
		var i;
		oSelect.length = 0;
		oSelect.options[oSelect.length] = new Option("== ÀÎ±Ù´ëÇÐ ==", "");
		for ( i=0; i<arrUni.length;i++) {
			if(upp_name==arrUni[i].upp_name){
				oSelect.options[oSelect.length] = new Option(arrUni[i].uni_name, arrUni[i].uni_code);
				if(arrUni[i].uni_code==selVal){oSelect.options[oSelect.length-1].selected=true;}
			}
		}
	}


	//ÁöÇÏÃ¶ È£¼± option »ý¼º
	function swLineCombo_create(oSelect, selVal){
//		var oSelect=document.getElementById("n_code");
		var i;

		oSelect.length = 0;
//		if(n_code==""){return;}
		oSelect.options[oSelect.length] = new Option("== È£¼± ==", "");
		for ( i=0; i<arrWayLine.length;i++) {
			oSelect.options[oSelect.length] = new Option(arrWayLine[i].n_name, arrWayLine[i].n_code);
			if(arrWayLine[i].n_code==selVal){oSelect.options[oSelect.length-1].selected=true;}
		}
//		oSelect.reInitializeSelectBox();
	}


	//ÁöÇÏÃ¶¿ª option »ý¼º
	function subwayCombo_create(oSelect, n_code, selVal){
//		var oSelect=document.getElementById("c_code");
		var i;

		oSelect.length = 1;
		if(n_code==""){return;}

		for ( i=0; i<arrSubWay.length;i++) {
			if(n_code==arrSubWay[i].n_code){
				oSelect.options[oSelect.length] = new Option(arrSubWay[i].c_name, arrSubWay[i].c_code);
				if(arrSubWay[i].c_code==selVal){oSelect.options[oSelect.length-1].selected=true;}
			}
		}
//		oSelect.reInitializeSelectBox();
	}


	//¼±ÅÃ combo ±½°Ô
    function srchCombo_setBold(oSelect){
//        (oSelect.options[oSelect.selectedIndex].value!='')?oSelect.style.fontWeight='bold':oSelect.style.fontWeight='';
    }


	function ageComboSetting(){
		var s, e=55;
		var oSelect = document.all.idAgeRange;
		for (s=15; s<=e;s++) {
			oSelect.options[oSelect.length] = new Option(s+" ¼¼", s);
		}
		oSelect.options[oSelect.length] = new Option("56 ~", 56);
		oSelect.options[oSelect.length] = new Option("¹«°ü", 0);
	}

	// ±è ½Å Ãß°¡ 2009-06-19 ¹üÀ§ ¿À·ù
	function setAge(oSelect) {
		if (oSelect.id == "ageRange") {
			if (( oSelect.value > document.all.ageRange2.value ) | ( oSelect.value == 0) | ( oSelect.value == "") ) {
				document.all.ageRange2.value = oSelect.value;
			}
		} else {
			if ((oSelect.value < document.all.ageRange.value) | ( document.all.ageRange.value == 0) ) {
				alert("¿¬·É ¹üÀ§°¡ Àß ¸ø µÇ¾ú½À´Ï´Ù.");
				document.all.ageRange2.value = document.all.ageRange.value;
			}
		}
	}
	// ±è ½Å Ãß°¡ 2009-06-19 ¹üÀ§ ¿À·ù ³¡

///#########################################################################################################






	function objDetectBrowser() {
		var strUA, s, i;
		this.isIE = false;
		this.isNS = false;
		this.version = null;
		strUA = navigator.userAgent;

		s = "MSIE";
		if ((i = strUA.indexOf(s)) >= 0) {
			this.isIE = true;
			this.version = parseFloat(strUA.substr(i + s.length));
			return;
		}

		s = "Netscape6/";
		if ((i = strUA.indexOf(s)) >= 0) {
			this.isNS = true;
			this.version = parseFloat(strUA.substr(i + s.length));
			return;
		}

		s = "Gecko";
		if ((i = strUA.indexOf(s)) >= 0) {
			this.isNS = true;
			this.version = 6.1;
			return;
		}
		return;
	}

	var objDetectBrowser = new objDetectBrowser();

	var gvActiveButton = null;

	/*if (objDetectBrowser.isIE)
		document.onmousedown = mousedownPage;
	if (objDetectBrowser.isNS)
		document.addEventListener("mousedown", mousedownPage, true);*/
	Event.observe(document, "mousedown", mousedownPage, false);

	function mousedownPage(event) {
		var objElement;
		if (!gvActiveButton)
			return;

		if (objDetectBrowser.isIE) {
			objElement = window.event.srcElement;
		} else {
			if (objDetectBrowser.isNS) {
				objElement = (event.target.className ? event.target : event.target.parentNode);
			} else {
				objElement = window.event.srcElement;
			}
		}
		if (objElement == gvActiveButton)
			return;

		if (objElement.className != "menuButton"  && objElement.className != "menuItem" && objElement.className != "menuItem2" && objElement.className != "menuItemSep" && objElement.className != "menu")
			resetButton(gvActiveButton);
	}

	function mouseoverButton(objMnuButton, strMenuName) {

	  if (gvActiveButton && gvActiveButton != objMnuButton) {
	    resetButton(gvActiveButton);

	  if (strMenuName)
	    clickButton(objMnuButton, strMenuName,0,0);
	  }
	}

	function clickButton(objMnuButton, strMenuName, xx,yy) {
		underSelectBox_showHide("none", strMenuName);	//¾Æ·¡ selectBox hide ½ÃÅ°±â
		objMnuButton.blur();
		if (!objMnuButton.menu)
		  objMnuButton.menu = document.getElementById(strMenuName);

		if (gvActiveButton && gvActiveButton != objMnuButton)
		    resetButton(gvActiveButton);

		if (gvActiveButton){
			resetButton(objMnuButton);
		}else{
			pulldownMenu(objMnuButton,xx,yy);
		}

		return false;
	}

	function view_jong_select() {
		if (document.all.lorder_div) {
			document.all.lorder_div.style.visibility = "hidden";
	    }
	}

	function pulldownMenu(objMnuButton,xx,yy) {
	  objMnuButton.className = "menuButtonActive";
/*	  if (objDetectBrowser.isIE && !objMnuButton.menu.firstChild.style.width) {
	    objMnuButton.menu.firstChild.style.width = objMnuButton.menu.firstChild.offsetWidth + "px";
	  }*/

	  x = objMnuButton.offsetLeft +xx-5 ;
	  y = objMnuButton.offsetTop  + yy + objMnuButton.offsetHeight;

	  if (objDetectBrowser.isIE) {
	    y += 1;
	  }
	  if (objDetectBrowser.isNS && objDetectBrowser.version < 6.1)
	    y--;
	  objMnuButton.menu.style.left =  x + "px";
	  objMnuButton.menu.style.top  =   y + "px";
	  objMnuButton.menu.style.visibility = "visible";

	  gvActiveButton = objMnuButton;
	}

	function resetButton(objMnuButton) {
		objMnuButton.className = "menuButton";
		if (objMnuButton.menu){
			objMnuButton.menu.style.visibility = "hidden";
			underSelectBox_showHide("");	//¾Æ·¡ selectBox show ½ÃÅ°±â
		}

		if (document.all.lorder_div) {
			document.all.lorder_div.style.visibility = "visible";
		}
		gvActiveButton = null;
	}

	function resetButton2(obj) {
	  obj.style.display = "none";
	  gvActiveButton = null;
	}

	function CmdMouseOver(Obj,n)
	{
		if(n==1)//onmouseover
		{
			Obj.style.backgroundColor="#08246B";
			Obj.style.color="#FFFFFF";
		}
		else
		{
			Obj.style.backgroundColor="#FFFFFF";
			Obj.style.color="#000000";
		}
	}









	/////////////////////////////////////////////////////////////////////



function selecta_name(Obj, n, n_name)
{
	if (n == 0) {
		document.search.a_name.value = "";
	}else {
		document.search.a_name.value = n;
	}
	select_clear();
}

function select_clear()
{
	for(ctr=0;ctr<document.search.a_namesub.length;ctr++)
	{
	 document.search.a_namesub[ctr].checked = false;
	}
	jiyuc_gu_aname.innerHTML =  "¼±ÅÃ(±¸,±º)";
	resetButton(gvActiveButton);
	document.search.onsubmit();
}

function set_jiyuc_gu_aname(Obj,nn)
{
	var ooobj;
	abctxt = "";
	selcount = 0;
	   ooobj = document.getElementById("jiyuc_gu_aname" );
	for(ctr=0;ctr<document.search.a_namesub.length;ctr++)
	  {
		if (document.search.a_namesub[ctr].checked == true ) {
			if (abctxt == "" ) {
			abctxt = document.search.a_namesub[ctr].value ;
			}else {
			abctxt = abctxt + "," + document.search.a_namesub[ctr].value ;
			}
			selcount += 1;
		}
	  }
	if (abctxt.length > 10) {
	 ooobj.innerHTML = "<B>" + abctxt.substring(0,8) + "..</B>";
	}else if (abctxt.length <= 0 ) {
	 ooobj.innerHTML = "¼±ÅÃ(±¸,±º)";
	}else {
	 ooobj.innerHTML = "<B>" + abctxt + "</B>";
	}
}