	function title_category_select() {
		obj = eval("fmBL");
		
		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;

		if(obj.field_title_category.value == "" ) {
			obj.mode.value = "";

			if(cate1 == "photo") {
				obj.board_mode.value = "blog";
			}
			else {
				obj.board_mode.value = "list";	// Ã³À½ º¸¿©ÁÖ´Â Çü½ÄÀº list Çü½ÄÀ¸·Î º¸¿©ÁÜ
			}
			obj.action =  "/" + contextPath + "/" + cate1 + "/" + cate2 + "/";
			obj.submit();
		}
		else {
			obj.mode.value = "search";
			param = "?field_title_category=title_category&keyword_title_category="+obj.field_title_category.value;
			obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardSearch.nio" + param;
			obj.submit();
		}
	}

	function title_category_select2() {
		obj = eval("fmBL");
		
		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;

		if(obj.field_title_category.value == "" ) {
			obj.mode.value = "";
			obj.board_mode.value = "blog";
			obj.action =  "/" + contextPath + "/" + cate1 + "/" + cate2 + "/";
			obj.submit();
		}
		else {
			obj.mode.value = "search";
			param = "?field_title_category=ext_1&keyword_title_category="+obj.field_title_category.value;
			obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardSearch.nio" + param;
			obj.submit();
		}
	}

	function title_category_select3(str) {
		obj = eval("fmBL");
		
		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;

		if(str == "" ) {
			obj.mode.value = "";
			obj.board_mode.value = "list";
			obj.action =  "/" + contextPath + "/" + cate1 + "/" + cate2 + "/";
			obj.submit();
		}
		else {
			obj.mode.value = "search";
			param = "?field_title_category=ext_6&keyword_title_category="+str;
			obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardSearch.nio" + param;
			obj.submit();
		}
	}

	function title_category_select4() {
		obj = eval("fmBL");
		
		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;

		if(obj.field_title_category.value == "" ) {
			obj.mode.value = "";
			obj.board_mode.value = "list";
			obj.action =  "/" + contextPath + "/" + cate1 + "/" + cate2 + "/";
			obj.submit();
		}
		else {
			obj.mode.value = "search";
			param = "?field_title_category=title&keyword_title_category="+obj.field_title_category.value;
			obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardSearch.nio" + param;
			obj.submit();
		}
	}

	function title_category_2nd_select() {
		obj = eval("fmBL");
		
		if(obj.field_category_2nd.value == "" ) {
			obj.mode.value = "";
			obj.action =  "/manage/guide/requireMain/";
			obj.submit();
		}
		else {
			obj.mode.value = "search";
			param = "?field_category_2nd=category_2nd&keyword_category_2nd="+obj.field_category_2nd.value;
			obj.action = "/manage/guide/requireMain/boardSearch.nio" + param;
			obj.submit();
		}
	}

	function title_category_2nd_select2() {
		obj = eval("fmBL");
		
		if(obj.field_category_2nd.value == "" ) {
			obj.mode.value = "";
			obj.action =  "/manage/guide/secretMain/";
			obj.submit();
		}
		else {
			obj.mode.value = "search";
			param = "?field_category_2nd=category_2nd&keyword_category_2nd="+obj.field_category_2nd.value;
			obj.action = "/manage/guide/secretMain/boardSearch.nio" + param;
			obj.submit();
		}
	}


	function enterSearchForm(form) {
		var keyValue = event.keyCode;
		if (keyValue =='13') {
			searchFormCheck(form);
		}
	}

	function enterFaqSearch(form) {
		var keyValue = event.keyCode;
		if (keyValue =='13') {
			boardFaqSearch(form);
		}
	}

	// °Ô½Ã±Û °Ë»ö
	function searchFormCheck(form) {
		obj = eval(form);
		obj.mode.value="search";
		
		if(obj.keyword.value == "") {
			alert("°Ë»ö¾î°¡ ¾ø½À´Ï´Ù.");
			obj.keyword.focus();
			return;
		}
		if(obj.keyword.value.length <2 ) {
			alert("°Ë»ö¾î´Â 2±ÛÀÚ ÀÌ»óÀÔ´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		
		returnValue = checkSpecialChar(obj.keyword.value);
		if (!returnValue) {
			alert("Æ¯¼ö¹®ÀÚ·Î °Ë»öÇÒ ¼ö ¾ø½À´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		
		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;


		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardSearch.nio";
		obj.submit();
	}


	// °Ô½Ã±Û °Ë»ö
	function searchFormMyInfoCheck(form) {
		obj = eval(form);
		obj.mode.value="search";
		
		if(obj.keyword.value == "") {
			alert("°Ë»ö¾î°¡ ¾ø½À´Ï´Ù.");
			obj.keyword.focus();
			return;
		}
		if(obj.keyword.value.length <2 ) {
			alert("°Ë»ö¾î´Â 2±ÛÀÚ ÀÌ»óÀÔ´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		
		returnValue = checkSpecialChar(obj.keyword.value);
		if (!returnValue) {
			alert("Æ¯¼ö¹®ÀÚ·Î °Ë»öÇÒ ¼ö ¾ø½À´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		obj.action = "/customer/myInfo/myInfoBoard/boardSearch.nio";
		obj.submit();
	}


	function searchMain(form) {
		obj = eval(form);
		obj.mode.value="search";
		obj.board_mode.value="list";
		
		if(obj.keyword.value == "") {
			alert("°Ë»ö¾î°¡ ¾ø½À´Ï´Ù.");
			obj.keyword.focus();
			return;
		}
		if(obj.keyword.value.length <2 ) {
			alert("°Ë»ö¾î´Â 2±ÛÀÚ ÀÌ»óÀÔ´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		
		returnValue = checkSpecialChar(obj.keyword.value);
		if (!returnValue) {
			alert("Æ¯¼ö¹®ÀÚ·Î °Ë»öÇÒ ¼ö ¾ø½À´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		
		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;


		obj.action = "/" + contextPath + "/totalSearch.nio";
		obj.submit();
	}
	
	function searchMoreMain(contextPath, cate1, form) {
		obj = eval(form);
		obj.mode.value="search";
		obj.board_mode.value="list";
		
		obj.contextPath.value = contextPath;
		obj.category_1st.value = cate1;
		
		if(cate1 == "theme" ) {
			obj.action = "/" + contextPath + "/totalSearchMoreTheme.nio";
		}
		else if(cate1 == "photo" ) {
			obj.action = "/" + contextPath + "/totalSearchMorePhoto.nio";
		}
		else if(cate1 == "guide" ) {
			obj.action = "/" + contextPath + "/totalSearchMoreGuide.nio";
		}
		else if(cate1 == "biz" ) {
			obj.action = "/" + contextPath + "/totalSearchMoreBiz.nio";
		}
		else if(cate1 == "network" ) {
			obj.action = "/" + contextPath + "/totalSearchMoreNetwork.nio";
		}
		else if(cate1 == "taxlaw" ) {
			obj.action = "/" + contextPath + "/totalSearchMoreTaxlaw.nio";
		}

		obj.submit();
	}


	function boardSearch(contextPath, cate1, cate2, form) {
		obj = eval(form);
		obj.mode.value="search";
		
		if(obj.keyword.value == "") {
			alert("°Ë»ö¾î°¡ ¾ø½À´Ï´Ù.");
			obj.keyword.focus();
			return;
		}
		if(obj.keyword.value.length <2 ) {
			alert("°Ë»ö¾î´Â 2±ÛÀÚ ÀÌ»óÀÔ´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		
		returnValue = checkSpecialChar(obj.keyword.value);
		if (!returnValue) {
			alert("Æ¯¼ö¹®ÀÚ·Î °Ë»öÇÒ ¼ö ¾ø½À´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}

		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardSearch.nio";
		obj.submit();
	}

	function boardFaqSearch(form) {
		obj = eval(form);
		obj.mode.value="search";

		if(obj.title_category.value == "" ) {
			alert("FAQºÐ·ù¸¦ ¼±ÅÃÇÏ¿©ÁÖ¼¼¿ä");
			return;
		}
		if(obj.keyword.value == "") {
			alert("°Ë»ö¾î°¡ ¾ø½À´Ï´Ù.");
			obj.keyword.focus();
			return;
		}
		if(obj.keyword.value.length <2 ) {
			alert("°Ë»ö¾î´Â 2±ÛÀÚ ÀÌ»óÀÔ´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		
		returnValue = checkSpecialChar(obj.keyword.value);
		if (!returnValue) {
			alert("Æ¯¼ö¹®ÀÚ·Î °Ë»öÇÒ ¼ö ¾ø½À´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}

		obj.action = "/customer/service/faq/boardSearch2.nio";
		obj.submit();
	}




	

	function boardList(str1, str2, str3, form) {
		obj = eval(form);
		obj.action =  "/" + str1 + "/" + str2 +"/" + str3+"/";
		obj.target = "";
		obj.submit();
	}

	// °Ô½ÃÆÇ ´ä±Û´Þ±â
	function boardReply(contextPath, cate1, cate2, form) {
		obj = eval(form);
		idx = obj.idx.value;
		parameter = "?idx="+idx+"&mode=reply";
		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardView.nio" + parameter;
		obj.submit();
	}
	

	function boardView(idx, form) {
		obj = eval(form);
		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;
		parameter = "?idx="+idx+"&mode=view";
		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardView.nio"+ parameter;
		obj.submit();
	}

	function boardMainView(contextPath, cate1, cate2, idx, form) {
		obj = eval(form);
		obj.board_mode.value = "list";
		parameter = "?idx="+idx+"&mode=view";
		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardView.nio"+ parameter;
		obj.submit();
	}



	// ¼­ºê¿À¸¥ÂÊ ÆäÀÌÁö¿¡¼­ ±ÛÁ¦¸ñ Å¬¸¯½Ã ±Û ÀÐ±â
	function boardMainRightView(contextPath, cate1, cate2, idx, form) {
		obj = eval(form);
		obj.board_mode.value = "list";
		parameter = "?idx="+idx+"&mode=view";
		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardView.nio"+ parameter;
		obj.submit();
	}

	function boardMore(contextPath, cate1, cate2, form) {
		obj = eval(form);
		obj.board_mode.value ="list";
		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2;
		obj.submit();
	}


	// °Ô½ÃÆÇ ±Û¾²±â
	function boardWrite(contextPath, cate1, cate2, form) {
		obj = eval(form);
		obj.contextPath.value = contextPath;
		obj.category_1st.value = cate1;
		obj.category_2nd.value = cate2;
		obj.mode.value = "write";

		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardWrite.nio";
		obj.submit();
	}

	// °¢ ¸ÞÀÎÆäÀÌÁö¸¶´ÙÀÇ °Ô½ÃÆÇ ±Û¾²±â
	function boardMainWrite(contextPath, cate1, form) {
		obj = eval(form);
		obj.contextPath.value = contextPath;
		obj.category_1st.value = cate1;
		obj.mode.value = "write";

		obj.action = "/" + contextPath + "/" + cate1 +"/boardWrite.nio";
		obj.submit();
	}


	// °Ô½ÃÆÇ ¼öÁ¤
	function boardMod(form) {

		obj = eval(form);		
		obj.mode.value = "mod"

		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;

		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardView.nio";
		obj.submit();
	}


	// ÄÚ¸àÆ® ¾²±â
	function commentWrite(form) {
		obj = eval(form);

		if(obj.comment_content.value =="" ) {
			alert("ÄÚ¸àÆ® ³»¿ëÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä");
			obj.comment_content.focus();
			return;
		}
		contextPath = obj.contextPath.value;
		str2 = obj.category_1st.value;
		str3 = obj.category_2nd.value;
		obj.action = "/" + contextPath + "/" + str2 +"/" + str3 +"/commentWrite.nio";
		obj.submit();
	}


	// °Ô½Ã±Û ÃßÃµ
	function boardGood(context, cate1, cate2, form) {
		obj = eval(form);
		if(obj.good_mode.value == "existGood") {
			alert("ÀÌ¹Ì ÃßÃµÇÏ½Å ±ÛÀÔ´Ï´Ù.");
			return;
		}
		else if(obj.good_mode.value == "ownGood") {
			alert("ÀÚ½ÅÀÇ ±Û¿¡ ´ëÇØ¼­´Â ÃßÃµÇÒ ¼ö ¾ø½À´Ï´Ù.");
			return;
		}

		else if(obj.good_mode.value == "notyetGood") {

			answer = confirm("ÇØ´ç °Ô½Ã±ÛÀ» ÃßÃµ ÇÏ½Ã°Ú½À´Ï±î?")
			if(answer==true) {
				obj.type.value="G";
				obj.action = "/" + context + "/" + cate1 +"/" + cate2 +"/boardGoodDeclare.nio";
				obj.submit();		
			}
			else {
				return;
			}
		}
	}
	
	// °Ô½Ã±Û ½Å°í
	function boardDeclare(context, cate1, cate2, form) {
		obj = eval(form);
		if(obj.declare_mode.value == "existDeclare") {
			alert("ÀÌ¹Ì ½Å°íÇÏ½Å °Ô½Ã±ÛÀÔ´Ï´Ù.");
			return;
		}
		else if(obj.declare_mode.value == "ownDeclare") {
			alert("ÀÚ½ÅÀÇ ±Û¿¡ ´ëÇØ¼­´Â ½Å°íÇÒ ¼ö ¾ø½À´Ï´Ù.");
			return;
		}
		else if(obj.declare_mode.value == "notyetDeclare") {			
			
			answer = confirm("ÇØ´ç °Ô½Ã±ÛÀ» ½Å°í ÇÏ½Ã°Ú½À´Ï±î?")
			if(answer==true) {
				param1 = "contextPath="+context+"&category_1st="+cate1+"&category_2nd="+cate2+"&idx="+obj.idx.value+"&write_id="+obj.write_id.value;
				url = "/board/declare.jsp?"+param1; // +"&"+ param2;
				bbs_alert = window.open( "" ,"bbs_alert", "width=552, height=550, resizable=no, status=1");
				obj.target = "bbs_alert";
				obj.action = url;
				obj.submit();
			}
			else {
				return;
			}
		}
	}	


	// °Ô½ÃÆÇ ÀÛ¼º¿¡¼­ ÆÄÀÏ»èÁ¦ , ¸ñ·Ï ¼öÁ¤
	function deleteFile(){
		var deleteFileNumber=0;
		var f=document.fmBW;

		for(var i=0 ; i<f.realFileNameList.options.length ; i++){
			var opt=f.realFileNameList.options[i];
			if(opt.selected ==true){
				f.deleteFileList.options[deleteFileNumber]=new Option("deleteFile"+deleteFileNumber,f.filePathList.options[i].value+f.savedFileNameList.options[i].value);
				f.realFileNameList.options[i]=null;
				f.savedFileNameList.options[i]=null;
				f.filePathList.options[i]=null;
				deleteFileNumber=deleteFileNumber+1;
				i=i-1;
			}
		}
		if(deleteFileNumber==0){
			alert("»èÁ¦ÇÒ ÆÄÀÏÀ» ¼±ÅÃÇÏ¼¼¿ä");
		}
	}


	// °Ô½ÃÆÇ ¼öÁ¤¿¡¼­ ÆÄÀÏ»èÁ¦ , ¸ñ·Ï ¼öÁ¤
	function deleteFile_mod(){
		var deleteFileNumber=0;
		var f = document.fmBMConfirm;

		for(var i=0 ; i < f.realFileNameList.options.length ; i++){
			var opt=f.realFileNameList.options[i];
			if(opt.selected ==true){
				f.deleteFileList.options[deleteFileNumber]=new Option("deleteFile"+deleteFileNumber, f.savedFileNameList.options[i].value);
				f.realFileNameList.options[i]=null;
				f.savedFileNameList.options[i]=null;
				f.filePathList.options[i]=null;
				deleteFileNumber=deleteFileNumber+1;
				i=i-1;
			}
		}
		if(deleteFileNumber==0){
			alert("»èÁ¦ÇÒ ÆÄÀÏÀ» ¼±ÅÃÇÏ¼¼¿ä");
		}
	}

	function allSelect(obj){
		for(var i=0;i<obj.options.length;i++){
			obj.options[i].selected=true;
		}
	}


	// ¸®ÇÃ¿¡¼­ ÆÄÀÏ»èÁ¦ , ¸ñ·Ï ¼öÁ¤
	function deleteFile_reply(){
		var deleteFileNumber=0;
		var f = document.fmBRConfirm;

		for(var i=0 ; i < f.realFileNameList.options.length ; i++){
			var opt=f.realFileNameList.options[i];
			if(opt.selected ==true){
				f.deleteFileList.options[deleteFileNumber]=new Option("deleteFile"+deleteFileNumber,f.filePathList.options[i].value+f.savedFileNameList.options[i].value);
				f.realFileNameList.options[i]=null;
				f.savedFileNameList.options[i]=null;
				f.filePathList.options[i]=null;
				deleteFileNumber=deleteFileNumber+1;
				i=i-1;
			}
		}
		if(deleteFileNumber==0){
		alert("»èÁ¦ÇÒ ÆÄÀÏÀ» ¼±ÅÃÇÏ¼¼¿ä");
		}
	}

	function allSelect(obj){
		for(var i=0;i<obj.options.length;i++){
			obj.options[i].selected=true;
		}
	}




	function CheckStr(strOriginal, strFind, strChange){ 
		var position, strOri_Length; 
        position = strOriginal.indexOf(strFind);  
        while (position != -1){ 
            strOriginal = strOriginal.replace(strFind, strChange); 
            position = strOriginal.indexOf(strFind); 
        } 
        strOri_Length = strOriginal.length; 
        return strOri_Length; 
    } 

	
	function pollAnswer(contextPath, cate1, cate2, form) {
		obj = eval(form);
		cnt = 0;


		for(i=0; i<obj.qst_idx.length; i++) {
			obj.qst_idx[i].checked == true
			if( obj.qst_idx[i].checked )	cnt++;
		}
		if(cnt <= 0 ) {
			alert("ÀÀ´äÇ×¸ñÀ» ¼±ÅÃÇØÁÖ¼¼¿ä");
			return;
		}

		obj.category_1st.value = cate1;
		obj.category_2nd.value = cate2;

		alert("Âü¿©ÇØ ÁÖ¼Å¼­ °¨»çÇÕ´Ï´Ù");							
		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/pollAnswer.nio";
		obj.submit();

	}

	function pollAnswer2(qst_idx, form) {
		obj = eval(form);
		alert("Âü¿©ÇØ ÁÖ¼Å¼­ °¨»çÇÕ´Ï´Ù");
		contextPath = obj.contextPath.value;
		cate1 = obj.category_1st.value;
		cate2 = obj.category_2nd.value;
		obj.qst_idx.value= qst_idx;
		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/pollAnswer.nio";
		obj.submit();

	}

	function pollResult(contextPath, cate1, cate2, idx, form) {
		obj = eval(form);

		parameter = "?idx="+idx+"&mode=view";
		obj.action = "/" + contextPath + "/" + cate1 +"/" + cate2 +"/boardView.nio"+ parameter;
		obj.submit();		
	}

	// ÀÌ¹ÌÁö »çÀÌÁî ÀÚµ¿Á¶Àý
	function sizeConv(obj,mw,mh){
		var max_width = mw; // ÁöÁ¤ÇÒ Å©±â	
		var max_height = mh; // ÁöÁ¤ÇÒ Å©±â
	
		aaa = new Image;
		aaa.src = obj.src
		
		if( aaa.width <max_width )	{
		      newWidth =  aaa.width; 

		} else {
			newSize = ( max_width/max_height > aaa.width/aaa.height ) ?  max_height / aaa.height :  newSize =  max_width / aaa.width; 
         	newWidth = aaa.width * newSize; 
        }
        
		obj.width = newWidth
	}

// º»¹® ³»¿ë º¸¿©ÁÖ±â
// form ÀÌ¸§ÀÌ fmBL ÀÏ¶§ Àû¿ë
	function blog_content_view(num)	{
		str = eval("fmBL.content_"+num+".value");
		str = str.replace(/&lt;/ig , "<");
		str = str.replace(/&quot;/ig ,'"');
		str = str.replace(/&gt;/ig ,">");
		str = str.replace(/&amp;/ig ,"&");
		obj = eval("content_view_layer_"+num);
		obj.innerHTML = str;
	}

	// ¾îµå¹ÎÆäÀÌÁö¿¡¼­ °Ô½Ã±Û °Ë»ö
	function searchAdminForm(cate1, cate2, cate3, cate4, form) {
		obj = eval(form);
		obj.mode.value="search";
		
		if(obj.keyword.value == "") {
			alert("°Ë»ö¾î°¡ ¾ø½À´Ï´Ù.");
			obj.keyword.focus();
			return;
		}
		if(obj.keyword.value.length <2 ) {
			alert("°Ë»ö¾î´Â 2±ÛÀÚ ÀÌ»óÀÔ´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		
		returnValue = checkSpecialChar(obj.keyword.value);
		if (!returnValue) {
			alert("Æ¯¼ö¹®ÀÚ·Î °Ë»öÇÒ ¼ö ¾ø½À´Ï´Ù.");
			obj.keyword.value ="";
			obj.keyword.focus();
			return;
		}
		obj.action = "/"+cate1+"/" + cate2 + "/" + cate3 +"/" + cate4 +"/boardSearch.nio";
		obj.submit();
	}

	function commentWriteErr(form) {
		obj = eval(form);
		alert('·Î±×ÀÎ ÈÄ ÀÔ·ÂÇØÁÖ¼¼¿ä');
		obj.comment_content.value = '';
		fmLogin.stationidname.focus();
	}
