		
    function SetDefaultFont() {
			var todayDate = new Date();
			var name = "ArticleFont";
			var expiredays = -2;
			var value = article2.style.fontSize + "//" + article2.style.fontFamily;
			todayDate.setDate( todayDate.getDate() + expiredays );
			document.cookie = name + "=" + value + "; path=/; expires=" + todayDate.toGMTString() + ";"
			document.location.reload();
		}
		
		function SetArticleFont() {
			var todayDate = new Date();
			var name = "ArticleFont";
			var expiredays = 1;
			var value = article2.style.fontSize + "//" + article2.style.fontFamily;
			todayDate.setDate( todayDate.getDate() + expiredays );
			document.cookie = name + "=" + value + "; path=/; expires=" + todayDate.toGMTString() + ";"
		}

		function GetArticleFont(name){
			var nameOfCookie = name + "=";
			var x = 0;
			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 document.cookie.substring( y, endOfCookie );
				}
				
				x = document.cookie.indexOf( " ", x ) + 1;
				
				if ( x == 0 ) break;
			}
					return "";
		} 
		
		var Font;
		var fontsize;
		var fontface;
		var LineHeight = 25;

		temp = GetArticleFont("ArticleFont").split("//");

		if (temp != "") {
			if(temp[0] == "") {
				fontsize = 10;
				fontface = "µ¸¿ò";
			} else {
			fontsize = parseInt(temp[0]);
			fontface = temp[1];
				if (fontsize > 10) {
					LineHeight = 25 + (fontsize-11);;			
				} else {
					LineHeight = 25;
				}
			}
			
		} else {
			fontsize = 11;
			fontface = "µ¸¿ò";
		}
		article2.style.fontSize = fontsize +"pt";
		article2.style.fontFamily = fontface;
		article2.style.lineHeight = LineHeight + "pt";

		function PlusFontSize() {
			if (fontsize <= 15) {
			article2.style.fontSize = (fontsize + 1) +"pt";
			article2.style.lineHeight = LineHeight + 1 + "pt";
			fontsize = fontsize + 1;			
			LineHeight = LineHeight + 1;
			SetArticleFont()
			}
		}
 
		function MinusFontSize() {	
			if (fontsize >= 11) {
			article2.style.fontSize = (fontsize - 1) +"pt";
			article2.style.lineHeight = LineHeight - 1 + "pt";
			fontsize = fontsize - 1;
			LineHeight = LineHeight - 1;
			SetArticleFont()
			}
		}
		function copyToClipboard(text) { 
    if (window.clipboardData) window.clipboardData.setData("Text", text); 
    else { 
        try { 
            netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect'); 
            var clipboard = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard); 
            var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable); 
                    trans.addDataFlavor("text/unicode"); 
                     
            var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString) 
            str.data = text; 
            trans.setTransferData("text/unicode", str , text.length*2); 
            clipboard.setData(trans, null, Components.interfaces.nsIClipboard.kGlobalClipboard); 
            alert('±â»ç°¡ Å¬¸³º¸µå¿¡ º¹»çµÇ¾ú½À´Ï´Ù.'); 
        } catch(e) { 
            alert("ºê¶ó¿ìÀú°¡ Å¬¸³º¸µå »ç¿ëÀ» Áö¿øÇÏÁö ¾Ê½À´Ï´Ù."); 
            return false; 
        } 
    } 

      alert('±â»ç°¡ Å¬¸³º¸µå¿¡ º¹»çµÇ¾ú½À´Ï´Ù.'); 
    	return true; 
		} 

