function redirect_login () {
			if(confirm('로그인하신 후 글을 남기실 수 있습니다. 로그인하시겠습니까?')) {
				chkwinopen( "/pastor/login/login.asp", 340, 330); 
			}
}

function rlogin2() {
			if(confirm('로그인이 필요합니다. 로그인하시겠습니까?')) {
				chkwinopen( "/pastor/login/login.asp", 340, 270); 
			}
}

//##########################################################
// 로그인 팝업 (쓰고있는 것)
//##########################################################
function rlogin () {
		 chkwinopen( "/pastor/sign/signin.asp", 340, 264);  
}
//##########################################################

function chkwinopen(URL, w, h )
{
 	var iMyWidth;
	var iMyHeight;
	var w2; 
	var h2; 
	
	w2 = w/2 
	h2 = h/2 
	
	iMyWidth = (window.screen.width/2) - (w2 + 10);  
	iMyHeight = (window.screen.height/2) - (h2 + 50);  
	
	var win2 = window.open(URL  ,"chkwin","status,width="+w+",height="+h+",resizable=no,left=" + iMyWidth + ",top=" + iMyHeight + ",screenX=" + iMyWidth + ",screenY=" + iMyHeight + ",scrollbars=no");
	win2.focus(); 
} 


// 댓글 
function Reple_submit(frm) {
	var theForm = frm ;	
  
   	if(!theForm.reple_content.value)
		{
			alert("내용을 입력해 주세요.")
			theForm.reple_content.focus(); 

			return false;
		}
    	theForm.action ="reple_ok.asp";		
		return true; 
}

 