var titleFontSize = 18;
var textFontSize = 12;
var titleLineHeight = 22;
var textLineHeight = 16;

var origintitleFontSize = titleFontSize;
var origintextFontSize = textFontSize;
var origintitleLineHeight = titleLineHeight;
var origintextLineHeight = textLineHeight;

function FontSize(size) {

        obj = document.all;

        if (size == '+') {
                textFontSize = textFontSize + 1;                
                textLineHeight = parseInt(textFontSize*1.6);                      
        } else if (size == '-') {
                if ((titleFontSize>0) && (textFontSize>0)) {
                        textFontSize = textFontSize - 1;
                        textLineHeight = parseInt(textFontSize*1.6);
                }                
        } else {

                textFontSize = origintextFontSize;
                textLineHeight = origintextLineHeight;

                titleFontSize = origintitleFontSize;
                textFontSize = origintextFontSize;
                titleLineHeight = origintitleLineHeight;
                textLineHeight = origintextLineHeight;

        }

        var panel = document.getElementById("InnerContent");
        var cNodes = panel.all;

        for (i = 0; i < cNodes.length; i++) {
            increaseFont(cNodes[i]);
        }
}


function increaseFont(child){
    child.style.fontSize = textFontSize + "px";
    //child.style.lineHeight = textLineHeight + "px";
}

// +,-,* Å°ÄÚµå·Î ÀÌº¥Æ® Ã³¸®
window.document.onkeypress=keypress;
function keypress() {
        switch(event.keyCode) {
                case 69:case 43:
                        FontSize("+");
                        break;
                case 83:case 45:
                        FontSize("-");
                        break;
                case 79:case 42:
                        FontSize("");
                        break;
        }
}