// URLº¹»ç 
function copyURL () {
	var cFile = location.href;

	var IE=(document.all)?true:false;
	if (IE) {
		alert ("                             ±â»çÀÇ URLÀÌ º¹»çµÇ¾ú½À´Ï´Ù.\n±â»ç¸¦ º¸³»´Â ºÐÀÇ ¸Þ½ÅÀú³ª ÀÌ¸ÞÀÏ¿¡ ctrl+V ·Î ºÙ¿©³Ö±â ÇÏ¼¼¿ä.\n\n");
		window.clipboardData.setData("Text", cFile);
	}
	else {
		prompt("ÀÌ ±â»çÀÇ ÁÖ¼ÒÀÔ´Ï´Ù. Ctrl+C¸¦ ´­·¯ Å¬¸³º¸µå·Î º¹»çÇÏ¼¼¿ä", cFile);
	}
}


//±â»çÆùÆ®
function fontSizeCookie( name ) {
        var nameOfCookie = name + "=";
        var x = 0;
	cookieFlg = document.cookie.indexOf(nameOfCookie);
    if (cookieFlg != -1) {

        while ( x <= document.cookie.length )
        {
                var y = (x+nameOfCookie.length);
                if ( document.cookie.substring( x, y ) == nameOfCookie ) {
                        if ( (endOfCookie=document.cookie.indexOf( ";", y )) == -1 )
                                endOfCookie = document.cookie.length;
                        return unescape( document.cookie.substring( y, endOfCookie ) );
                }
				
                x = document.cookie.indexOf( " ", x ) + 1;
				 if ( x == 0 )
                        break;
        }

        return "";
	}
	else{
	 return 15;
	}
}
function getFontSizeCookie() { 
	var cookie = fontSizeCookie("getFontSize"); 
	if ( cookie == null ) 
		return 15; 
	if ( cookie.length ) 
		return cookie; 
	else 
		return 15; 
}
function fontSizeLevel(calcSize) {
	var newsView, lineHeight; 
	newsView = document.getElementById("newsView"); 
	if (calcSize > 0) { 
		if (textSize <= 20) { 
			textSize = textSize + calcSize; 
			lineHeight = textSize+Math.round(1.1*textSize); 
			newsView.style.fontSize = textSize + "px"; 
		} 
	} else { 
		if (textSize > 11) { 
			textSize = textSize + calcSize; 
			lineHeight = textSize+Math.round(1.1*textSize); 
			newsView.style.fontSize = textSize + "px"; 
			} 
	} 
	var fontDate = new Date; 
	fontDate.setDate(fontDate.getDate()+1000); 
	setCookie("getFontSize", textSize, 1)//fontDate); 
}
var textSize = parseInt(getFontSizeCookie());
