///Å¬¸¯
/*
function onclick_item(board_seq, item_seq) {
        
                if (item_seq != "") {
                    top.document.location.href = "/Contents/Section/viewNews.asp?board_seq="+ board_seq +"&item_seq="+ item_seq;    
                }
            }
*/
//·Î±×ÀÎ/
function openPrint(cd,ref){
	url = "./Print.asp?ref="+ref+"&item_seq=" +cd
	var tt = window.open(url,'_blank','width=700,height=620,top=30,left=10,left=10,scrollbars=no,resize=yes'); 
	tt.focus();
}

function openReport(cd){
	url = "../../Contents/Apply/Report.asp?item_seq=" + cd
	var tt = window.open(url,'_blank','width=600,height=530,top=10,left=10,scrollbars=no,resize=yes'); 
	tt.focus();
}

function openMail(cd){
	url = "../../Contents/Apply/Email.asp?item_seq=" + cd
	var tt = window.open(url,'_blank','width=600,height=530,top=10,left=10,scrollbars=no,resize=yes'); 
	tt.focus();
}

function SendMsg(){
	if(confirm("È¸¿ø·Î±×ÀÎÀ» ÇÏ¼Å¾ß ±Û¾²±â°¡ °¡´ÉÇÕ´Ï´Ù. \n  ·Î±×ÀÎ ÆäÀÌÁö·Î ÀÌµ¿ÇÏ½Ã°Ú½À´Ï±î")){
		location.href = "/Contents/mems/member_login.asp";
	}
}

//ÄíÅ°
function setCookie( name, value, expiredays ) { 
	        var todayDate = new Date(); 
	        todayDate.setDate( todayDate.getDate() + expiredays ); 
	        document.cookie = name + "=" + escape( value ) + "; path=/; expires=" + todayDate.toGMTString() + ";" 
	} 

function getCookie(name) { 
		var Found = false 
		var start, end 
		var i = 0 

		while(i <= document.cookie.length) { 
			 start = i 
			 end = start + name.length 
			 if(document.cookie.substring(start, end) == name) { 
				 Found = true 
				 break 
			 } 
			 i++ 
		} 

		if(Found == true) { 
			start = end + 1 
			end = document.cookie.indexOf(";", start) 
			if(end < start) 
				end = document.cookie.length 
			return document.cookie.substring(start, end) 
		} 
		return "" 
	} 
		var fontObj ;
		var nowFontSz = 11 ; // À§ÀÇ CSS prtArt¿Í °°Àº »çÀÌÁî·Î...
		tmp =getCookie("fontsize")
		
		if(tmp != ""){
		nowFontSz = eval(tmp);
		if (document.getElementById) fontObj = document.getElementById("fontSzArea").style ;
		else if (document.all) fontObj = document.all("fontSzArea").style ;
		fontObj.fontSize = tmp + "pt" ;

}

function fontSz(){
	if (document.getElementById) fontObj = document.getElementById("fontSzArea").style ;
	else if (document.all) fontObj = document.all("fontSzArea").style ;
	
	if (arguments[0] == "-"){
		if (nowFontSz <= 9) return ;
		fontObj.fontSize = (nowFontSz-1) + "pt" ;
		nowFontSz = eval(nowFontSz-1) ;
	}else if (arguments[0] == "+"){
		if (nowFontSz >= 14) return ;
		fontObj.fontSize = (nowFontSz+1) + "pt" ;
		nowFontSz = eval(nowFontSz+1) ;
 }
 
// alert(nowFontSz);
 setCookie("fontsize", nowFontSz ,1);
 
}

// ´ñ±Û´Þ±â
 function SendReply(){
    
    if(document.iReply.id.value == ""){
        alert("·Î±×ÀÎ ÇÏ¼Å¾ß ±Û¾²±â°¡ °¡´ÉÇÕ´Ï´Ù.");
        location.href = "/Contents/mems/member_login.asp";
		return false;
    }
    
        
    if(document.iReply.name.value == ""){
        alert("ÀÛ¼ºÀÚÀÇ º°ÄªÀ» ³Ö¾îÁÖ¼¼¿ä.");
        return false;    
    }
    
    if(document.iReply.content.value == ""){
        alert("±ÛÀÇ ³»¿ëÀÌ ¾ø½À´Ï´Ù.");
        return false;    
    }
    
    
        document.iReply.action = "/Contents/Section/ReplyWrite.asp";
        document.iReply.method = "post";
        document.iReply.target = "iframe";
        document.iReply.submit();
        document.iReply.content.value = "";
        document.iReply.name.value = "";

         
    }