	function CheckForm(){
		var f = document.write_form;
		
		if ( f.b_name.value == "" ) {
			alert("Please insert the composer.");
			f.b_name.focus();
			return ;
		}
		if ( f.b_subject.value == "" ) {
			alert("Please insert the title.");
			f.b_subject.focus();
			return ;
		}
		var content = ed1.getHtml();
		if(content=="")
		{
			alert("Please insert the contents.");
			ed1.focus();
			return;
		}
		if ( f.b_pwd.value == "" ) {
			alert("Please put in the password.");
			f.b_pwd.focus();
			return ;
		}
		if ( f.b_pwd.value.length >= 10 ) {
			alert("The password cannot exceed 10 letters.");
			f.b_pwd.value="";
			f.b_pwd.focus();
			return ;
		}

		f.submit();
	}

//--- 파일 업로드 시 수정/삭제 버튼 체크
function enable(targ,e) { 
	if (	document.getElementById(e).checked ==  true){
		var obj = document.getElementById(targ); 
		obj.disabled = false; 
	}else{	
	var obj = document.getElementById(targ); 
	obj.disabled = true; 
	}
} 
 

//--한줄답변

	function Check_one(){
		var ff = document.ans_form;
		
		if ( ff.bo_name.value == "" ) {
			alert("Please insert the composer.");
			ff.bo_name.focus();
			return ;
		}
		if ( ff.bo_pwd.value == "" ) {
			alert("Please put in the password.");
			ff.bo_pwd.focus();
			return ;
		}
		if ( ff.bo_content.value.length == "" ) {
			alert("Please insert the contents.");
			ff.bo_content.focus();
			return ;
		}
		ff.submit();
	}


//--비밀번호체크
	function pwd_chk(){
		var fp = document.del_chk;
		
		if ( fp.b_pwd.value == "" ){
			alert("Please put in the password.");
			fp.b_pwd.focus();
			return ;
		}
		if(confirm('Do you want to delete this? \nThe deleted content cannot be restored.')){
			fp.submit();
		}
	}
	function pwd_chk2(){
		var fp = document.del_chk;
		
		if ( fp.b_pwd.value == "" ){
			alert("Please put in the password.");
			fp.b_pwd.focus();
			return ;
		}
		fp.submit();
	}


//이미지 원본 크기대로 새창띄우기 & 이미지 클릭하면 창닫기
	var imgObj = new Image(); 
	function gonyImgWin(imgName) { 
	imgObj.src = imgName; 
	setTimeout("createImgWin(imgObj)", 100); 
	} 

	function createImgWin(imgObj) { 
	if (! imgObj.complete) { 
	setTimeout("createImgWin(imgObj)", 100); 
	return; 
	} 
	var imgw= imgObj.width+17
		 imgh= imgObj.height
	imageWin = window.open("", "imageWin","width=" + imgw + ",height=" +imgh); 
	imageWin.document.write("<html><body style='margin:0' scroll=yes><table cellpadding=0 cellspacing=0 border=0 bgcolor=000000><tr><td>"); 
	imageWin.document.write("<a href='javascript:;' onClick='window.close()'><img src='" + imgObj.src + "' border='0'>"); 
	imageWin.document.write("</td></tr></table></body><html>"); 
	imageWin.document.title = ("Detailed image."); 
	} 

	function MM_openBrWindow(theURL,winName,features) { //v2.0
	window.open(theURL,winName,features);
	}

	function resizeImage(num){
		var oImg = eval("document.getElementById('userImg" + num + "')");
		if (oImg.width > 570){
		   oImg.width = 570;
		   }
	}
										
