function choice_face(value) {
	choice_img = "/images/icon/com_emt_"+value+".gif";
	document.images.faces.src = choice_img;
	document.news_comment.icon.value = value;
	MM_showHideLayers('emoticonbox','','hide');
}

function comment_submit() {
	if (document.news_comment.news_comment.value==""){
		alert(" 기사 의견을 넣어주세요.  ");
		document.news_comment.news_comment.focus();
	}
//	else if(document.frmGlobalLogin.User_ID.value=="")
//	{
//		alert("로그인 하시고, 덧글을 작성해 주세요.");	 
//		document.frmGlobalLogin.UserID.focus();
//	}
	else{
		str1 = document.news_comment.sText.value;
	
		if( str1 == "")
		{
			alert("보안문자를 입력해 주십시오.");
			document.news_comment.sText.focus();
			return;
		}
		else
		{
			str2 = document.news_comment.nName.value;

			if( str2 == "")
			{
				alert("닉네임을 입력해 주십시오.");
				document.news_comment.nName.focus();
				return;
			}
		}
		document.news_comment.submit();
	}
}

function comment_submit2() {
	if (document.news_comment.username.value==""){
	   alert(" 이름을 넣어 주세요.  ");
	   document.news_comment.username.focus();
	}
	else if (document.news_comment.news_comment.value==""){
		alert(" 기사 의견을 넣어주세요.  ");
		document.news_comment.news_comment.focus();
	}else{
		document.news_comment.submit();
	}
}

function comment_login() {
	if (document.comment_login_form.userid.value==""){
		alert(" [ID]를 입력하지 않았습니다. ");
		document.comment_login_form.userid.focus();
		return false;
	}
	if (document.comment_login_form.passwd.value==""){
		alert(" [패스워드]를 입력하지 않았습니다. ");
		document.comment_login_form.passwd.focus();
		return false;
	}
	document.comment_login_form.submit()
	return true;
}


function popup_news_scrap(news_cd) {
    news_scrap = window.open('/scrap/scrap_in.asp?cd='+news_cd,'news_scrap','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=1,width=466,height=289,top=150,left=100')
}
function popup_news_print(news_cd) {
    news_print = window.open('/news/news_print.asp?cd='+news_cd,'news_print','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=1,width=650,height=420,top=150,left=100')
}
function popup_news_mailto(news_cd) {
    news_mailto = window.open('/news/news_mailto.asp?cd='+news_cd,'news_mailto','toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizeable=1,width=517,height=496,top=150,left=100')
}

