// ÀüÃ¼ Ã¼Å©
function CheckAll(value) {
	with(FrmList) {
		if(typeof(ChkNo) == "undefined") {
			return;
		}
		if(typeof(ChkNo.length) !== "undefined") {
			for(i=0;i<ChkNo.length;i++) {
				ChkNo[i].checked = value;
			}
		} else {
				ChkNo.checked = value;
		}		
	}
}

// ÀÏ°ý »èÁ¦
function DeleteMulti(UrlBaseQuery) {
	no = "";	
	with(FrmList) {
		if(typeof(ChkNo) == "undefined") {
			return;
		}	
		if(typeof(ChkNo.length) !== "undefined") {
			for(i=0;i<ChkNo.length;i++) {
				if(ChkNo[i].checked == true) {
					if(no.length == 0) {
						split = "";
					} else {
						split = ",";
					}
					no += split+ChkNo[i].value;
				}
			}
		} else {
			if(ChkNo.checked == true) {
				no = ChkNo.value;
			}
		}
		if(no.length == 0) {
			alert("°Ô½Ã¹°À» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
			return;
		}		
	}
	FrameProcBoard.location.href = "multi_delete.php?"+UrlBaseQuery+"&no="+no;
}

// ÀÌµ¿
function MoveMulti(UrlBaseQuery) {
	no = "";	
	with(FrmList) {
		if(typeof(ChkNo) == "undefined") {
			return;
		}	
		if(typeof(ChkNo.length) !== "undefined") {
			for(i=0;i<ChkNo.length;i++) {
				if(ChkNo[i].checked == true) {
					if(no.length == 0) {
						split = "";
					} else {
						split = ",";
					}
					no += split+ChkNo[i].value;
				}
			}
		} else {
			if(ChkNo.checked == true) {
				no = ChkNo.value;
			}
		}
		if(no.length == 0) {
			alert("°Ô½Ã¹°À» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
			return;
		}		
	}
	TargetBoard = document.getElementById("BoardList").value;
	if(TargetBoard.length == 0) {
		alert("´ë»ó°Ô½ÃÆÇÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		return;
	}
	FrameProcBoard.location.href = "multi_move.php?"+UrlBaseQuery+"&no="+no+"&target_board="+TargetBoard;	
}

// º¹»ç
function CopyMulti(UrlBaseQuery) {
	no = "";	
	with(FrmList) {
		if(typeof(ChkNo) == "undefined") {
			return;
		}	
		if(typeof(ChkNo.length) !== "undefined") {
			for(i=0;i<ChkNo.length;i++) {
				if(ChkNo[i].checked == true) {
					if(no.length == 0) {
						split = "";
					} else {
						split = ",";
					}
					no += split+ChkNo[i].value;
				}
			}
		} else {
			if(ChkNo.checked == true) {
				no = ChkNo.value;
			}
		}
		if(no.length == 0) {
			alert("°Ô½Ã¹°À» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
			return;
		}		
	}
	TargetBoard = document.getElementById("BoardList").value;
	if(TargetBoard.length == 0) {
		alert("´ë»ó°Ô½ÃÆÇÀ» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
		return;
	}
	FrameProcBoard.location.href = "multi_copy.php?"+UrlBaseQuery+"&no="+no+"&target_board="+TargetBoard;	
}

// ÀÏ°ý ¼ø¼­º¯°æ
function IdxMulti() {
	no = "";	
	with(FrmList) {
		if(typeof(ChkNo) == "undefined") {
			return;
		}	
		if(typeof(ChkNo.length) !== "undefined") {
			for(i=0;i<ChkNo.length;i++) {
				if(ChkNo[i].checked == true) {
					if(no.length == 0) {
						split = "";
					} else {
						split = ",";
					}
					no += split+ChkNo[i].value;
				}
			}
		} else {
			if(ChkNo.checked == true) {
				no = ChkNo.value;
			}
		}
		if(no.length == 0) {
			alert("°Ô½Ã¹°À» ¼±ÅÃÇØ ÁÖ¼¼¿ä.");
			return;
		}		
	}

	obj = document.getElementById("LayerIdx");
	obj.style.top = document.body.scrollTop+event.clientY-100;
	obj.style.left = document.body.scrollLeft+event.clientX;	
	obj.style.display = "";
	ArrNo = no;
	with(FrmIdx) {
		no.value = ArrNo;
	}
}

// ¼ø¼­º¯°æ ·¹ÀÌ¾î ´Ý±â
function IdxClose() {
	obj = document.getElementById("LayerIdx");
	obj.style.display = "none";
}

// ¼ø¼­º¯°æ Æû Ã³¸®
function IdxFomCheck(direction) {
	with(FrmIdx) {
		direct.value = direction;
		submit();
	}
}
