function redirect_login () {
			if(confirm('로그인하신 후 글을 남기실 수 있습니다. 로그인하시겠습니까?')) {
				chkwinopen( "/sign/signin.asp", 450, 400); 
			}
}

function rlogin2() {
			if(confirm('로그인이 필요합니다. 로그인하시겠습니까?')) {
				chkwinopen( "/sign/signin.asp", 450, 400); 
			}
}

function rlogin () {
		 chkwinopen( "/sign/signin.asp", 450, 400); 
		 
}

function signOut(){
	if (confirm("로그아웃 하시겠습니까?"))
	{
			location.href = "/sign/signout.asp";
	}
}

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;
		}
		
		return true; 
}

 
