function check_funeral_write(TheForm,opt,antidobae) {
	if(TheForm.subject.value == "") {
		alert("제목을 입력하세요");
		TheForm.subject.focus();
		return false;
	}
	if(opt == 0 || 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(!opt) {
		if(TheForm.passwd.value == "") {
			alert("비밀번호를 입력하세요.\n\n비밀번호를 입력하세요 수정/삭제를 하실 수 있습니다.");
			TheForm.passwd.focus();
			return false;
		}
	}
	if(TheForm.email.value == "") {
		alert("E-Mail을 입력하세요.");
		TheForm.email.focus();
		return false;
	}
	if(TheForm.director.value == "") {
		alert("연락처를 입력하세요.");
		TheForm.director.focus();
		return false;
	}
	if(document.getElementById('content___Frame') != null) {
		if(TheForm.content.value == "" && content___Frame.document.body.innerHTML =="") {
			alert("내용을 입력하세요.");
			return false;
		}

		var content_tmp = content___Frame.document.body.innerHTML;

		if(document.getElementById('content___Frame').style.display!='none')
			TheForm.content.value = content_tmp;
	} else if(document.getElementById('EditArea') != null) {
		if(TheForm.content.value == "" && EditArea.document.body.innerHTML == "") {
			alert("내용을 입력하세요.");
			return false;
		}
		var content_tmp = EditArea.document.body.innerHTML;
		if(document.getElementById('EditArea').style.display!='none')
			TheForm.content.value = content_tmp;
	} else {
		if(TheForm.content.value == "") {
			alert("내용을 입력하세요.");
			TheForm.content.focus();
			return false;
		}
	}

	return true;
}

