	function verify_data(){
	
		str = document.all['strName'];
		if(str.value == ""){alert("ÀÌ¸§À» ÀÔ·ÂÇØÁÖ¼¼¿ä.");str.focus();return;}
	
		str = document.all['strPassword'];
		if(document.all['strLoginID'].value == "guest"){
			if(WRITE_BOARD_ADMIN == "False"){if(str.value == ""){alert("ÆÐ½º¿öµå¸¦ ÀÔ·ÂÇØÁÖ¼¼¿ä.");str.focus();return;}}
		}
	
		str = document.all['strEmail'];
		if(str.value != ""){if(!isEmailCheck(str.value)) {alert("ÀÌ¸ÞÀÏ Çü½ÄÀÌ ¿Ã¹Ù¸£Áö ¾Ê½À´Ï´Ù.");str.focus();return;}}
	
		str = document.all['strSubject'];
		if(str.value == ""){alert("Á¦¸ñÀ» ÀÔ·ÂÇØÁÖ¼¼¿ä.");str.focus();return;}
	
		if (WRITE_USE_EDITOR == true){
			if (myeditor.outputBodyHTML() <= 0){alert("³»¿ëÀ» ÀÔ·ÂÇÏ¿© ÁÖ¼¼¿ä.");myeditor.editArea.focus();return;}
				myeditor.outputBodyHTML();
		}else{
			str = document.all['strContent'];
			if(str.value == ""){alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ¼¼¿ä.");if (WRITE_USE_EDITOR == "False"){str.focus();}return;}
		}
	
		if(CATEGORY_WRITE_METHOD == "True") {
			str = document.all['intCategory'];
			if (str.value == "0"){alert("Ä«Å×°í¸®¸¦ ¼±ÅÃÇØ ÁÖ¼¼¿ä.");str.focus();return;}
		}
	
		if (document.all['bitReMail']!=null && document.all['bitReMail'].checked == true){
			str = document.all['strEmail'];
			if (str.value == "" || !isEmailCheck(str.value)){alert("´äº¯±ÛÀ» ÀÌ¸ÞÀÏ·Î ¹ÞÀ¸½Ã·Á¸é ¿Ã¹Ù¸¥ ÀÌ¸ÞÀÏ ÁÖ¼Ò¸¦ ÀÔ·ÂÇÏ¼¼¿ä.");str.focus();return;}
		}

		if (SET_Action != "EDIT"){
			if(document.all['strLoginID'].value == "guest"){
				if(WRITE_BOARD_ADMIN == "False"){
					if (WRITE_USE_CAPTCHA == "True"){
						str = document.all['strCaptchaText'];
						if(str.value == ""){alert("¹«´ÜÀÔ·Â ¹æÁö¸¦ À§ÇØ ÁÂÃøÀÇ ±ÛÀÚ¸¦ ¼ø¼­´ë·Î ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return;}
						var arr = showModalDialog('Include/BoardCaptcha.asp?strCaptchaText=' + str.value, 'captcha', 'dialogWidth:10px; dialogHeight: 10px; resizable: no; help: no; status: no; scroll: no;');
						if (arr == "0"){
							alert("ÀÚµ¿ µî·Ï ¹æÁö¸¦ À§ÇÑ ¹®ÀÚ¸¦ Àß¸ø ÀÔ·ÂÇÏ¼Ì½À´Ï´Ù.");str.focus();return;
						}
					}
				}
			}
		}

		document.all['writeButton'].style.display = "none";
		
		if (WRITE_USE_UPLOAD == "True"){
			if (WRITE_USE_UPLOAD_FLEX == "True"){
				chxUpload.CHXUploadStart();
			}else{
				chxUpload.fileUploadDiv.style.posLeft = (document.body.clientWidth / 2) - 150;
				chxUpload.fileUploadDiv.style.visibility = 'visible';
				chxUpload.document.theUpload.submit();
			}
		}else{
			show_waiting();
			document.theForm.submit();
		}
	}

	function show_waiting(){
		var _x = document.body.clientWidth / 2 + document.body.scrollLeft - 145;
		var _y = document.body.clientHeight / 2 + document.body.scrollTop - 200;
		mb_waiting.style.posLeft=_x;
		mb_waiting.style.posTop=_y;
		mb_waiting.style.visibility='visible';
	}

	function OnBoardLoginCheck(){
		str = document.all['strLoginID'];
		if (str.value == ""){alert("·Î±×ÀÎ ¾ÆÀÌµð¸¦ ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return false;}

		str = document.all['strLoginPwd'];
		if (str.value == ""){alert("·Î±×ÀÎ ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return false;}
	}

	function OnReadArticle(str1, str2){
		if (str2 == "0"){
			location.href = "mboard.asp?Action=view&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&intSeq=" + str1;
		}else{
			switch (SET_READ_TYPE){
				case "0" :
					location.href = "mboard.asp?Action=view&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&intSeq=" + str1;
					break;
				case "1" :
					openWindows("mboard.asp?Action=popview&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&intSeq=" + str1, 'popupRead', SET_READ_POPUP_WIDTH, SET_READ_POPUP_HEIGHT, 3);
					break;
				case "2" :
					openWindows("mboard.asp?Action=view&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&intSeq=" + str1, 'popupRead', SET_READ_POPUP_WIDTH, SET_READ_POPUP_HEIGHT, 3);
					break;
			}
		}
	}

	function OnBoardList(){
		location.href = LINK_LIST;
	}

	function OnBoardWrite(str1, str2){

		if (SET_Action == "POPVIEW"){
			switch (str1){
				case "write" : opener.location.href = LINK_WRITE; break;
				case "edit" : opener.location.href = LINK_EDIT + "&intSeq=" + str2; break;
				case "reply" : opener.location.href = LINK_REPLY + "&intSeq=" + str2; break;
			}
			self.close();
		}else{
			switch (str1){
				case "write" : location.href = LINK_WRITE; break;
				case "edit" : location.href = LINK_EDIT + "&intSeq=" + str2; break;
				case "reply" : location.href = LINK_REPLY + "&intSeq=" + str2; break;
			}
		}
	}

	function OnBoardRead(){
		obj = document.all['checkIntSeq'];
		var str = "";
		for(var i=0; i< obj.length; i++){
			if (obj[i].checked == true){
				str = str + obj[i].value + ",";
				if(document.all['checkIntSeqSecret'][i].value == "True"){alert("ºñ¹Ð °Ô½Ã¹°Àº ´ÙÁßÀÐ±â¸¦ ÇÏ½Ç ¼ö ¾ø½À´Ï´Ù.");return;}
			}
		}
		if (str == ""){alert("°Ô½Ã±ÛÀÌ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.");return;}
		
		switch (SET_READ_TYPE){
			case "0" :
				location.href = "mboard.asp?Action=view&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + str;
				break;
			case "1" :
				openWindows("mboard.asp?Action=popview&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + str, 'popupRead', SET_READ_POPUP_WIDTH, SET_READ_POPUP_HEIGHT, 3);
				break;
			case "2" :
				openWindows("mboard.asp?Action=view&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + str, 'popupRead', SET_READ_POPUP_WIDTH, SET_READ_POPUP_HEIGHT, 3);
				break;
		}
	}

	function OnBoardRemove(str){
		location.href = LINK_REMOVE + "&intSeq=" + str;
	}

	function OnDeleteCheck(){
		if (SET_strBoardDeleteMode == "1"){
			str = document.all['strPassword'];
			if (str.value == ""){alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return false;}
		}
	}

	function OnBoardLogin(){
		location.href = LINK_LOGIN;
	}

	function OnBoardLogout(){
		location.href = LINK_LOGOUT;
	}

	function OnBoardGalleryImg(str){
		location.href = LINK_READ + "&bitViewImageAll=" + str;
	}

	function OnBoardAdmin(){
		obj = document.all['checkIntSeq'];
		if(!obj){alert("°ü¸®ÇÒ °Ô½Ã±ÛÀÌ ¾ø½À´Ï´Ù.");return;}

		var str = "";
		if (obj.length == null){
			if (obj.checked == true){
				str = obj.value + ",";
			}
		}else{
			for(var i=0; i< obj.length; i++){
				if (obj[i].checked == true){str = str + obj[i].value + ",";}
			}
		}
		if (str == ""){alert("°ü¸®ÇÒ °Ô½Ã±ÛÀÌ ¼±ÅÃµÇÁö ¾Ê¾Ò½À´Ï´Ù.");return;}
		openWindows("Library/Snap.asp?strBoardID=" + SET_STRBOARD_ID + "&intCategory=" + SET_INTCATEGORY + "&intSeq=" + str,"strSnap", 460, 299, 0);
	}

	function OnAddComment(intSeqNum, strLoginID, intThread){

		if (strLoginID == ""){		
			str = document.all['cmtName'];
			if (str.value == ""){alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return;}

			str = document.all['cmtPwd'];
			if (str.value.length < 4){alert("ºñ¹Ð¹øÈ£¸¦ 4ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return;}
			
			document.theCmtForm.comment_id.value = "guest";
		}else{
			document.theCmtForm.comment_id.value = strLoginID;
		}

		if (SET_bitUseEditor == "False"){
			str = document.all['cmtContent'];
			if (str.value == ""){alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return;}
		}else{
			if (myeditor.outputBodyHTML() <= 0){alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");myeditor.editArea.focus();return;}
			myeditor.outputBodyHTML();
		}

		document.theCmtForm.comment_intThread.value = intThread;
		document.theCmtForm.comment_name.value = document.all['cmtName'].value;
		if (strLoginID == "")
			document.theCmtForm.comment_pwd.value = document.all['cmtPwd'].value;
		document.theCmtForm.comment_content.value = document.all['cmtContent'].value;

		obj = document.all['cmtScore'];
		if (obj!=null){
			var cntBox = obj.length - 1;
			for(var i = 0; i <= cntBox; i++){
				if (obj[i].checked == true){
					document.theCmtForm.comment_intScore.value = document.all['cmtScore'][i].value;
				}
			}
		}

		obj = document.all['cmtIcon'];
		if (obj!=null){
			document.theCmtForm.comment_intIcon.value = document.all['cmtIcon'].value;
		}

		document.theCmtForm.action = "Include/CommentAction.asp?Action=cmtadd&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ + "&strScYear=" + SET_SCH_YEAR + "&strScMonth=" + SET_SCH_MONTH + "&strScDay=" + SET_SCH_DAY + "&intSeq=" + SET_intSeq;
		document.theCmtForm.submit();
	}

	function OnSubmitComment(strLoginID, sType){

		str = document.all['cmtName'];
		if (str.value == ""){
			alert("ÀÌ¸§À» ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return;
		}

		document.theCmtForm.comment_name.value = document.all['cmtName'].value;

		if (strLoginID == ""){
			str = document.all['cmtPwd'];
			if (str.value.length < 4){alert("ºñ¹Ð¹øÈ£¸¦ 4ÀÚ¸® ÀÌ»ó ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return;}
			document.theCmtForm.comment_pwd.value = document.all['cmtPwd'].value;
		}

		if (SET_bitUseEditor == "False"){
			str = document.all['cmtContent'];
			if (str.value == ""){alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return;}
		}else{
			if (myeditor.outputBodyHTML() <= 0){alert("³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");myeditor.editArea.focus();return;}
			myeditor.outputBodyHTML();
		}

		document.theCmtForm.comment_content.value = document.all['cmtContent'].value;

		obj = document.all['cmtScore'];
		if (obj!=null){
			var cntBox = obj.length - 1;
			for(var i = 0; i <= cntBox; i++){
				if (obj[i].checked == true)
					document.theCmtForm.comment_intScore.value = document.all['cmtScore'][i].value;
			}
		}

		obj = document.all['cmtIcon'];
		if (obj!=null){
			document.theCmtForm.comment_intIcon.value = document.all['cmtIcon'].value;
		}

		switch (sType){
		case "E" :
			document.theCmtForm.action = "Include/CommentAction.asp?Action=cmtedit&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ + "&strScYear=" + SET_SCH_YEAR + "&strScMonth=" + SET_SCH_MONTH + "&strScDay=" + SET_SCH_DAY + "&intSeq=" + SET_intSeq + "&intCmtSeq=" + SET_intCmtSeq;
			document.theCmtForm.submit();
			break;
		case "R" :
			document.theCmtForm.action = "Include/CommentAction.asp?Action=cmtreply&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ + "&strScYear=" + SET_SCH_YEAR + "&strScMonth=" + SET_SCH_MONTH + "&strScDay=" + SET_SCH_DAY + "&intSeq=" + SET_intSeq + "&intCmtSeq=" + SET_intCmtSeq;
			document.theCmtForm.submit();
			break;
		}
	}

	function OnCommentReply(intCmtSeq){
		document.theCmtForm.action = "mboard.asp?Action=CMTREPLY&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ + "&strScYear=" + SET_SCH_YEAR + "&strScMonth=" + SET_SCH_MONTH + "&strScDay=" + SET_SCH_DAY + "&intSeq=" + SET_intSeq + "&intCmtSeq=" + intCmtSeq;
		document.theCmtForm.submit();
	}

	function OnCommentEdit(str1, str2){
		document.theCmtForm.action = "mboard.asp?Action=CMTEDIT&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ + "&intCmtSeq=" + str1 + "&intSeq=" + str2;
		document.theCmtForm.submit();
	}

	function OnEraseComment(intCmtSeq){
		theCmtForm.action = "Mboard.asp?Action=cmtremove&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ + "&strScYear=" + SET_SCH_YEAR + "&strScMonth=" + SET_SCH_MONTH + "&strScDay=" + SET_SCH_DAY + "&intSeq=" + SET_intSeq + "&intCmtSeq=" + intCmtSeq;
		theCmtForm.submit();
	}

	function OnEraseCommentSubmit(){
		if (SET_strCmtDeleteMode == "1"){
			str = document.all['strPassword'];
			if (str.value == ""){alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return false;}
		}
	}

	function OnVote(intSeq){
		if (confirm("ÇØ´ç °Ô½Ã±ÛÀ» ÃßÃµÇÏ½Ã°Ú½À´Ï±î?")){
			location.href = "Library/VoteAction.asp?strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ + "&intSeq=" + intSeq;
		}
	}

	function OnCategoryGo(str){
		location.href = "mboard.asp?Action=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + str + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD;
	}
	
	function OnSearch(){
		var k = 0;
		var s = "";
		for (i=0; i < 4; i++){
			if (SET_SEARCH_CATEGORY_DIM[i]!= ""){
				k++;
			}
			s = s + SET_SEARCH_CATEGORY_DIM[i] + "|";
		}
		if (k == 0){alert("°Ë»öÇÒ Ç×¸ñÀ» ¼±ÅÃÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");return;}

		str = document.all['searchWord'];
		if (str.value == ""){alert("°Ë»öÇÒ ³»¿ëÀ» ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return;}
	
		location.href = "mboard.asp?Action=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=1&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + s + "&strSearchWord=" + str.value;
	}

	function OnSearchCancel(){
		location.href = "mboard.asp?Action=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=1&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=&strSearchWord=";
	}
	
	function check_enter(id) {
		if(event.keyCode == 13) {
			switch (id){
				case "search" : OnSearch(); break;
				case "jump_page" : break;
				case "del_comment" : break;
			}
			event.returnValue = false;
		}
	}
	
	function go_jump(){
		str = document.all['jump_page'];
		if (str.value == "" || !onlynum(str)){
			alert("ÀÌµ¿ÇÒ ÆäÀÌÁö¸¦ ÀÔ·ÂÇÏÁö ¾Ê¾Ò°Å³ª ¼ýÀÚ°¡ ¾Æ´Ñ ¹®ÀÚ¸¦ ÀÔ·ÂÇÏ¼Ì½À´Ï´Ù.");
			str.focus();
			return;
		}
		document.theForm.action = "mboard.asp?Action=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + str.value + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD;
		document.theForm.submit();
	}

	function OnListPreview(content) {
		var obj = document.all["id_preview"];
	
		if(content == "") {obj.innerHTML = "";return;}
	
		var text = "";
		text =  "<table width='100%' border='0' cellspacing='0' cellpadding='0'>"
		text += "    <tr>";
		text += "        <td>";
		text += "            <td bgcolor='#FFFFFF' style='word-break:break-all; padding:5px;'>" + content + "</td>";
		text += "        </td>";
		text += "    </tr>";
		text += "</table>";
	
		obj.innerHTML = text;
		OnListMovePreview();
		obj.style.visibility = "visible";
	}
	
	function OnListMovePreview() {
		var obj = document.all["id_preview"];
	
		if(obj.innerHTML != ""){
			obj.style.posLeft = event.x - 40 + document.documentElement.scrollLeft;
			obj.style.posTop = event.y + 10 + document.documentElement.scrollTop;
		}
	}

	function OnListHidePreview() {
		document.all["id_preview"].style.visibility = "hidden";
	}

	function OnPasswordCheck(){
		str = document.all['strPassword'];
		if (str.value == ""){alert("ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return false;}

		document.theForm.submit();

	}

	function OnFileDown(str1, str2, str3){
		location.href = "Library/fileDown.asp?strBoardID=" + str2 + "&intNum=" + str1 + "&intSeq=" + str3;
	}
	
	function OnBoardPrint(intSeq, strBoardID){
		window.open('Library/boardPrint.asp?strBoardID=' + strBoardID + '&intSeq=' + intSeq);
	}
	
	function OnBoardBad(intSeq, strBoardID){
		openWindows("Library/BoardBad.asp?strBoardID=" + strBoardID + "&intSeq=" + intSeq,"strBadBoard", 460, 370, 0);
	}
	
	function OnHtmlBr(){
		if(confirm("ÀÚµ¿ ÁÙ¹Ù²ÞÀ» ÇÏ½Ã°Ú½À´Ï±î?\n\nÀÚµ¿ ÁÙ¹Ù²ÞÀº °Ô½Ã¹° ³»¿ëÁß ÁÙ¹Ù²ï °÷À» <br>ÅÂ±×·Î º¯È¯ÇÏ´Â ±â´ÉÀÔ´Ï´Ù.")){
			document.all['bitHtmlBr'].value = "1";
		}
	}

	function OnBoardSelectAll(){
		var obj = document.getElementsByName("checkIntSeq"); 
		for (var i=0; i<obj.length; i++){
			if (obj[i].checked == true){
				obj[i].checked = false;
			}else{
				obj[i].checked = true;
			}
		}
	}

	function Onrollover(obj, color) {
		if(!obj) return false;
		obj.style.backgroundColor = color;
	}
	
	function OnPageMove(str){
		document.theForm.action = "mboard.asp?Action=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + str + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD;
		document.theForm.submit();
	}
	
	function OnGalleryChange(str1, str2, str3, str4, str5){
		SET_GALLERY_NOW_IMG = str2;
		var new_img = document['galleryIMG_' + str1];
		new_img.src = "Pds/Board/" + str5 + "/" + str2;
		new_img.width = str3;
		new_img.height = str4;
	}
	
	function OnScrap(intSeq){
		if (SET_Action == "POPVIEW"){
			opener.openWindows('scrap.asp?Action=add&strBoardID=' + SET_STRBOARD_ID + '&intSeq=' + intSeq, 'scrap', '500','500','0');
			self.close();
		}else{
			openWindows('scrap.asp?Action=add&strBoardID=' + SET_STRBOARD_ID + '&intSeq=' + intSeq, 'scrap', '500','500','0');
		}
	}

	function OnWritePrevIMG(filename){
		filename = filename.split(",");
		fileExt = filename[1].split(".");

		var uploaded_filename = "Pds/Board/" + SET_STRBOARD_ID + "/" + filename[1];

		var html = "";

		if (fileExt[1] == "gif" || fileExt[1] == "jpg" || fileExt[1] == "jpeg" || fileExt[1] == "png" || fileExt[1] == "bmp"){
			html = "<img src=" + uploaded_filename + " width=100 height=100>";
		}

		if (fileExt[1] == "flv"){
			html = "<EMBED src=\"Library/flvplayer.swf?autoStart=false&file=../"+uploaded_filename+"\" width=\"110\" height=\"110\" type=\"application/x-shockwave-flash\"></EMBED>";
		}

		if (fileExt[1] == "swf"){
			html = "<EMBED src=\""+uploaded_filename+"\" width=\"110\" height=\"110\" type=\"application/x-shockwave-flash\"></EMBED>";
		}

		if (fileExt[1] == "wmv" || fileExt[1] == "avi" || fileExt[1] == "mpg" || fileExt[1] == "mpeg" || fileExt[1] == "asx" || fileExt[1] == "asf" || fileExt[1] == "mp3"){
			html = "<EMBED src=\""+uploaded_filename+"\" width=\"110\" height=\"110\" autostart=\"true\" Showcontrols=\"0\"></EMBED>";
		}

		document.all['imtPrev'].innerHTML = html;
	}

	function OnUploadFileDelete(sType){
		var obj = document.theForm.strFileList;
		if(obj.value == "")
			return false;

		if (sType == "1"){
			str = document.theForm.strFilePass;
			if (str.value == ""){alert("°Ô½Ã±Û ºñ¹Ð¹øÈ£¸¦ ÀÔ·ÂÇØ ÁÖ½Ã±â ¹Ù¶ø´Ï´Ù.");str.focus();return false;}
			document.tmp_upload_form.upload_strPwd.value = str.value;
		}

		if (!confirm("¼±ÅÃµÈ ÆÄÀÏÀ» »èÁ¦ÇÏ½Ã°Ú½À´Ï±î?")){
			return false;
		}

		for(var i=0; i< obj.length; i++){
			if (obj[i].selected == true){
				tmpNum = obj[i].value.split(",");
				document.tmp_upload_form.action = "Include/BoardUploadErase.asp?strBoardID=" + SET_STRBOARD_ID + "&intSeq=" + SET_intSeq + "&intNum=" + tmpNum[0];
				document.tmp_upload_form.target = "tmp_upload_iframe";
				document.tmp_upload_form.submit();
			}
		}
	}