function check_comment(TheForm,opt,antidobae) {
	if(!opt) {
		if(TheForm.passwd.value == "") {
			alert("비밀번호를 입력하세요.\n\n비밀번호를 입력하세요 수정/삭제를 하실 수 있습니다.");
			TheForm.passwd.focus();
			return false;
		}
	}
	if(opt == 2) {
		if(TheForm.name.value == "") {
			alert("이름을 입력하세요.");
			TheForm.name.focus();
			return false;
		}
	}
	if(antidobae) {
		var antidobae_key = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
		if(TheForm.antidobae.value == "") {
			alert("도배방지 문자열을 입력하세요.");
			TheForm.antidobae.focus();
			return false;
		}
		var antidobae_string = TheForm.antidobae.value;
		if(antidobae_string.length != _antidobae_index.length) {
			alert("잘못된 도배방지 문자열입니다. 정확하게 입력하세요.");
			TheForm.antidobae.focus();
			return false;
		}
		for(i=0; i<antidobae.length; i++) {
			if(antidobae_string.charAt(i) != antidobae_key.charAt((_antidobae_index.charCodeAt(i)-35))) {
				alert("잘못된 도배방지 문자열입니다. 정확하게 입력하세요.");
				TheForm.antidobae.focus();
				return false;
			}
		}
	}
	if(TheForm.content.value == "") {
		alert("내용을 입력하세요.");
		TheForm.content.focus();
		return false;
	}
	return true;
}

function check_html(obj) {
	var	c_h;
	if(!obj.checked) {
		obj.value=1;
	} else {
		c_h = confirm("자동 줄바꿈을 하시겠습니까?\n\n자동 줄바꿈은 내용중 줄바뀐 곳을 <br>테그로 자동 변환하는 기능입니다.");
		if(c_h) {
			obj.value=1;
		} else {
			obj.value=2;
		}
	}
}

