	function verify_data(){
	
		str = document.all['strName'];
		if(str.value == ""){alert(status_js[1]);str.focus();return;}
	
		str = document.all['strPassword'];
		if(document.all['strLoginID'].value == "guest"){
			if(WRITE_BOARD_ADMIN == "False"){
				if(str.value == ""){alert(status_js[2]);str.focus();return;}
			}
		}
	
		str = document.all['strEmail'];
		if(str.value != ""){if(!isEmailCheck(str.value)) {alert(status_js[3]);str.focus();return;}}
	
		str = document.all['strSubject'];
		if(str.value == ""){alert(status_js[4]);str.focus();return;}
	
		if (WRITE_USE_EDITOR == true){
	
			if (myeditor.outputBodyHTML() <= 0){
				alert(status_js[5]);
				myeditor.editArea.focus();
				return;
			}
	
			myeditor.outputBodyHTML();
	
		}else{
			str = document.all['strContent'];
			if(str.value == ""){
				alert(status_js[5]);
				if (WRITE_USE_EDITOR == "False"){
					str.focus();
				}
				return;
			}
		}
	
		if(CATEGORY_WRITE_METHOD == "True") {
			str = document.all['intCategory'];
			if (str.value == "0"){alert(status_js[6]);str.focus();return;}
		}
	
		if (document.all['bitReMail']!=null && document.all['bitReMail'].checked == true){
			str = document.all['strEmail'];
			if (str.value == "" || !isEmailCheck(str.value)){
				alert(status_js[7]);
				str.focus();
				return;
			}
		}
	
		show_waiting();
	
		document.theForm.submit();
	}

	function OnBoardLoginCheck(){
		str = document.all['strLoginID'];
		if (str.value == ""){alert(status_js[8]);str.focus();return false;}

		str = document.all['strLoginPwd'];
		if (str.value == ""){alert(status_js[9]);str.focus();return false;}
	}

	function OnBoardPwdCheck(){
		str = document.all['strPassword'];
		if (str.value == ""){alert(status_js[10]);str.focus();return false;}
	}

 function show_waiting() {
  var _x = document.body.clientWidth / 2 + document.body.scrollLeft - 145;
  var _y = document.body.clientHeight / 2 + document.body.scrollTop - 44;
  mb_waiting.style.posLeft=_x;
  mb_waiting.style.posTop=_y;
  mb_waiting.style.visibility='visible';
 }

	function OnReadArticle(str1, str2, maincode, sub_sequence, sub_sub_sequence){
		if (str2 == "0"){
			location.href = "/sub.asp?maincode=" + maincode + "&sub_sequence=" + sub_sequence + "&sub_sub_sequence=" + sub_sub_sequence + "&exec=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 = "/sub.asp?maincode=" + maincode + "&sub_sequence=" + sub_sequence + "&sub_sub_sequence=" + sub_sub_sequence + "&exec=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("/sub.asp?maincode=" + maincode + "&sub_sequence=" + sub_sequence + "&sub_sub_sequence=" + sub_sub_sequence + "&exec=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("/sub.asp?maincode=" + maincode + "&sub_sequence=" + sub_sequence + "&sub_sub_sequence=" + sub_sub_sequence + "&exec=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_Exec == "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'];
		if(!obj) return;

		var cntBox = obj.length - 1;
		var str = "";
		for(var i = 0; i <= cntBox; i++){
			if (obj[i].checked == true){
				str = str + obj[i].value + ",";
				if(document.all['checkIntSeqSecret'][i].value == "True"){
					alert(status_js[11]);
					return;
				}
			}
		}
		if (str == ""){
			alert(status_js[12]);
			return;
		}
		
		switch (SET_READ_TYPE){
			case "0" :
				location.href = LINK_SUBGO +"&exec=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(LINK_SUBGO +"&exec=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(LINK_SUBGO +"&exec=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 OnBoardDelete(str){
		if (confirm(status_js[13])){
			location.href = LINK_DELETE + "&intSeq=" + str;
		}
	}

	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(status_js[14]);
			return;
		}
		var str = "";
		var cntBox = obj.length - 1;
		if (obj.length == null){
			if (obj.checked == true){
				str = obj.value + ",";
			}
		}else{
			for(var i = 0; i <= cntBox; i++){
				if (obj[i].checked == true){
					str = str + obj[i].value + ",";
				}
			}
		}
		if (str == ""){alert(status_js[15]);return;}
		openWindows("/magicboard/Library/Snap.asp?strBoardID=" + SET_STRBOARD_ID + "&intCategory=" + SET_INTCATEGORY + "&intSeq=" + str,"strSnap", 460, 299, 0);
	}

	function OnAddComment(intSeqNum, strLoginID, intThread){

		if (SET_bitUseEditor == "False"){
			str = document.all['cmtContent'];
			if (str.value == ""){alert(status_js[16]);str.focus();return;}
		}else{
			if (myeditor.outputBodyHTML() <= 0){
				alert(status_js[16]);
				myeditor.editArea.focus();
				return;
			}
			myeditor.outputBodyHTML();
		}

		if (strLoginID == ""){		
			str = document.all['cmtName'];
			if (str.value == ""){alert(status_js[17]);str.focus();return;}

			str = document.all['cmtPwd'];
			if (str.value.length < 4){alert(status_js[18]);str.focus();return;}
			
			document.theCmtForm.comment_id.value = "guest";
		}else{
			document.theCmtForm.comment_id.value = strLoginID;
		}

		document.theCmtForm.comment_boardIntSeqNum.value = intSeqNum;
		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 = COMMENTEXECACTION_SAVE + "&exec=CMTADD&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ;
		document.theCmtForm.submit();
	}

	function OnSubmitComment(strLoginID, sType){

		str = document.all['cmtName'];
		if (str.value == ""){
			alert(status_js[19]);str.focus();return false;
		}

		document.theCmtForm.comment_name.value = document.all['cmtName'].value;

		if (strLoginID == ""){
			str = document.all['cmtPwd'];
			if (str.value.length < 4){alert(status_js[18]);str.focus();return;}
			document.theCmtForm.comment_pwd.value = document.all['cmtPwd'].value;
		}

		if (SET_bitUseEditor == "False"){
			str = document.all['cmtContent'];
			if (str.value == ""){alert(status_js[5]);str.focus();return;}
		}else{
			if (myeditor.outputBodyHTML() <= 0){
				alert(status_js[5]);
				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 = COMMENTEXECACTION_SAVE +"&exec=CMTEDIT&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ;
			document.theCmtForm.submit();
			break;
		case "R" :
			document.theCmtForm.action = COMMENTEXECACTION_SAVE +"&exec=CMTREPLY&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ;
			document.theCmtForm.submit();
			break;
		}
	}

	function OnCommentEdit(str1, str2){
		document.theCmtForm.action = COMMENTEXECACTION +"&exec=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 OnCommentReply(str1, str2){
		document.theCmtForm.action = COMMENTEXECACTION +"&exec=CMTREPLY&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 OnCommentPassword(cmtIntSeq, cmtDeleteOpt, intSeq, w, h) {

		document.theCmtForm.comment_boardIntSeqNum.value = intSeq
		document.theCmtForm.comment_intSeq.value = cmtIntSeq;

		if(cmtDeleteOpt == 2) {
			var obj = document.all["id_comment_pwd"];

			obj.style.posLeft    = event.x - 300 + document.body.scrollLeft;
			obj.style.posTop     = event.y + document.body.scrollTop;
			obj.style.visibility = "visible";

			document.all['cmtDeleteInput'].focus();
		}else{
			OnCommentDelete('pw');
			event.returnValue = false;
		}
	}

	function OnCommentPasswordHide() {
		document.theCmtForm.comment_boardIntSeqNum.value = "";
		document.theCmtForm.comment_intSeq.value = "";
		document.all['cmtDeleteInput'].value = "";
		document.all["id_comment_pwd"].style.visibility = "hidden";
	}

	function OnCommentDelete(str){
	
		if (str == "" || str == null){
			if (document.all['cmtDeleteInput'].value == ""){
				alert(status_js[2]);
				document.all['cmtDeleteInput'].focus();
				return;
			}
		}
	
		document.theCmtForm.comment_pwd.value = document.all['cmtDeleteInput'].value;
		theCmtForm.action = COMMENTEXECACTION_SAVE +"&exec=CMTDELETE&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&checkIntSeq=" + SET_CHECK_INT_SEQ;
		theCmtForm.submit();
		OnCommentPasswordHide();
	}

	function OnVote(intSeq){
		if (confirm(status_js[21])){
			location.href = VOTEEXECACTION +"&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 = LINK_SUBGO +"&exec=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(status_js[22]);
			return;
		}
		str = document.all['searchWord'];
		if (str.value == ""){
			alert(status_js[23]);
			str.focus();
			return;
		}
	
		location.href = LINK_SUBGO +"&exec=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=1&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + s + "&strSearchWord=" + str.value;
	}

	function OnSearchCancel(){
		location.href = LINK_SUBGO +"&exec=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(status_js[24]);
			str.focus();
			return;
		}
		document.theForm.action = LINK_SUBGO +"&exec=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"];
	
		// check content
		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.body.scrollLeft;
			obj.style.posTop = event.y + 10 + document.body.scrollTop;
		}
	}

	function OnListHidePreview() {
		document.all["id_preview"].style.visibility = "hidden";
	}

	function OnUserMenuShow(str, id, name, mail, homepage, num, maincode, sub_sequence, sub_sub_sequence){
	
		if (str!= "3"){
			// user menu layer
			var obj = document.all["id_user_menu"];
	
			// set position
			obj.style.posLeft = event.x + document.body.scrollLeft;
			obj.style.posTop = event.y + document.body.scrollTop;
	
			var isReturn = "";
			var text = "";
			text += "<table width=132 border=3 cellpadding=2 cellspacing=0 bordercolor=#F1F1F1>";
			text += "  <tr>";
			text += "    <td bgcolor=#FFFFFF>";
			text += "			<table width=100%  border=0 cellspacing=0 cellpadding=0>";
			text += "			  <tr>";
			text += "					<td height=26 bgcolor=#F1F4F6 style='padding:0 0 0 10'><img src=/magicboard/Library/images/icon01.gif width=3 height=5 align=absmiddle> " + id + "</td>";
			text += "			  </tr>";
			text += "			  <tr>";
			text += "					<td><img src=/magicboard/Library/images/dot_line.gif width=122 height=1></td>";
			text += "			  </tr>";
			text += "			  <tr>";
			text += "					<td style='padding:3 0 3 0' bgcolor=#FFFFFF>";
			text += "						<table width=90%  border=0 align=center cellpadding=0 cellspacing=0>";
	
			if (str == "0" || str == "1"){
				isReturn = true;
				if (id!= "guest"){
					isReturn = true;
				}else{
					isReturn = false;
				}
			}else{
				isReturn = false;
			}
	
			if (isReturn == true){
			text += "						  <tr onMouseOver=\"this.style.backgroundColor='#F5F5F5'\" onMouseOut=\"this.style.backgroundColor=''\" bgcolor=#FFFFFF>";
			text += "								<td width=20 height=18><img src=/magicboard/Library/images/dot_icon01.gif width=11 height=11></td>";
			text += "								<td><a href="+ LINK_SUBGO +"&exec=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=1&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=s_id||||&strSearchWord=" + id + ">Search Id</a></td>";
			text += "							</tr>";
			}
			
			text += "						  <tr onMouseOver=\"this.style.backgroundColor='#F5F5F5'\" onMouseOut=\"this.style.backgroundColor=''\" bgcolor=#FFFFFF>";
			text += "								<td height=18><img src=/magicboard/Library/images/dot_icon01.gif width=11 height=11></td>";
			text += "								<td><a href="+ LINK_SUBGO +"&exec=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=1&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=|s_name|||&strSearchWord=" + name + ">Search Name</a></td>";
			text += "							</tr>";
			
			if (str == "0" || str == "2"){
				isReturn = true;
				if (mail == "False"){
					isReturn = false;
				}else{
					isReturn = true;
				}
			}else{
				isReturn = false;
			}
	
			text += "						</table>";
			text += "					</td>";
			text += "			  </tr>";
			text += "			</table>";
			text += "		</td>";
			text += "  </tr>";
			text += "  <tr>";
			text += "    <td height=17 align=right bgcolor=#F1F1F1 style='padding:0 9 0 0'><img src=/magicboard/Library/images/btn_close.gif width=32 height=5 border=0 OnClick='OnUserMenuHide();' style='cursor:hand;'></td>";
			text += "  </tr>";
			text += "</table>";
			
			obj.innerHTML = text;
			obj.style.visibility = "visible";
		}
	}

	function OnUserMenuHide() {
		document.all["id_user_menu"].style.visibility = "hidden";
	}

	function OnPasswordCheck(){
		str = document.all['strPassword'];
		if (str.value == ""){alert(status_js[2]);str.focus();return false;}
		
		if (SET_strType == ""){
			document.theForm.action = BOARD_INCLUDE_PASSWORD_SEARCH + "&bitSecrecBoardCheck=1&strBoardID=" + SET_STRBOARD_ID;
			document.theForm.submit();
		}else{
			document.theForm.action = LINK_SUBGO +"&exec=view&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + SET_INTPAGE + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD + "&intSeq=" + SET_intSeq;
			document.theForm.submit();
		}
	}

	function OnFileDown(str1, str2, str3){
		location.href = LIBRARY_FILEDOWN +"&strBoardID=" + str2 + "&intNum=" + str1 + "&intSeq=" + str3;
	}
	
	function OnBoardPrint(intSeq, strBoardID){
		window.open('/magicboard/Library/boardPrint.asp?strBoardID=' + strBoardID + '&intSeq=' + intSeq);
	}
	
	function OnBoardBad(intSeq, strBoardID){
		openWindows("/magicboard/Library/BoardBad.asp?maincode="+ maincode +"&sub_sequence="+ sub_sequence +"&sub_sub_sequence="+ sub_sub_sequence +"&strBoardID=" + strBoardID + "&intSeq=" + intSeq,"strBadBoard", 460, 370, 0);
	}
	
	function OnHtmlBr(){
		if(confirm(status_js[25])){
			document.all['bitHtmlBr'].value = "1";
		}
	}

























function OnBoardSelectAll(){
	obj = document.all['checkIntSeq'];
	if(!obj) return false;

	var cntBox = obj.length - 1;
	for(var i = 0; i <= cntBox; i++){
		if (obj[i].checked == false){
			obj[i].checked=true;
		}else{
			obj[i].checked=false;
		}
	}
}

function Onrollover(obj, color) {
	if(!obj) return false;
	obj.style.backgroundColor = color;
}

function OnPageMove(str){
	document.theForm.action = LINK_SUBGO +"&exec=list&strBoardID=" + SET_STRBOARD_ID + "&intPage=" + str + "&intCategory=" + SET_INTCATEGORY + "&strSearchCategory=" + SET_SEARCH_CATEGORY + "&strSearchWord=" + SET_SEARCH_WORD;
	document.theForm.submit();
}

function ImageUploader(intLength, strClass){ 
	var str;
	if(SET_imgCount < WRITE_IMAGE_COUNT){
		str = "<input type='file' name='strImgFileName' size='" + intLength + "' onchange=javascript:ImageUploader('" + intLength + "'";
		if (strClass != ""){
			str = str + ",'" + strClass + "'); class='" + strClass + "';";
		}else{
			str = str + ");"
		}
		str = str + "><br><input type=text name='strFileMemo' size='" + ((intLength*1) + 15) + "' class='" + strClass + "'>"
		eval('imgUpload' + SET_imgCount).innerHTML += str + "<div id='imgUpload" + (SET_imgCount+1) + "'></div>";
	} else {
		alert('ÀÌ¹ÌÁö ÆÄÀÏÀº ÃÖ´ë ' + WRITE_IMAGE_COUNT + '°³ ±îÁö¸¸ ÀÌ¿ë °¡´ÉÇÕ´Ï´Ù.');
	}
	SET_imgCount++; 
}

function FileUploader(intLength, strClass){ 
	var str;
	if(SET_fileCount < WRITE_FILE_COUNT){
		str = "<input type='file' name='strFileName' size='" + intLength + "' onchange=javascript:FileUploader('" + intLength + "'";
		if (strClass != ""){
			str = str + ",'" + strClass + "'); class='" + strClass + "';";
		}else{
			str = str + ");"
		}
		str = str + ">"
		eval('fileUpload' + SET_fileCount).innerHTML += str + "<div id='fileUpload" + (SET_fileCount+1) + "'></div>";
	} else {
		alert('Ã·ºÎÆÄÀÏÀº ÃÖ´ë ' + WRITE_FILE_COUNT + '°³ ±îÁö¸¸ ÀÌ¿ë °¡´ÉÇÕ´Ï´Ù.');
	}
	SET_fileCount++; 
}

function OnGalleryChange(str1, str2, str3, str4, str5){
	SET_GALLERY_NOW_IMG = str2;
	var new_img = document['galleryIMG_' + str1];
	new_img.src = UserDataSEssionURL+"Pds/Board/" + str5 + "/" + str2;
	new_img.width = str3;
	if(str3 != 499) { new_img.height = str4; }
	document.all['galleryIMGWidth_' + str1].innerHTML = str3;
	document.all['galleryIMGHeight_' + str1].innerHTML = str4;
}

function OnScrap(intSeq){
	if (SET_Exec == "POPVIEW"){
		opener.openWindows('/magicboard/scrap.asp?maincode='+ Request("maincode") +'&sub_sequence='+Request("sub_sequence")+'&sub_sub_sequence='+Request("sub_sub_sequence")+'&exec=add&strBoardID=' + SET_STRBOARD_ID + '&intSeq=' + intSeq, 'scrap', '500','500','0');
		self.close();
	}else{
		openWindows('/magicboard/scrap.asp?maincode='+ Request("maincode") +'&sub_sequence='+Request("sub_sequence")+'&sub_sub_sequence='+Request("sub_sub_sequence")+'&exec=add&strBoardID=' + SET_STRBOARD_ID + '&intSeq=' + intSeq, 'scrap', '500','500','0');
	}
}
