    /*****Zoom In & Zoom Out Script*****/

    var zoomRate = 20;            // È®´ë/Ãà¼Ò½Ã Áõ°¨·ü
    var maxRate = 300;            //ÃÖ´ëÈ®´ë·ü
    var minRate = 100;            //ÃÖ¼ÒÃà¼Ò·ü

    function GetCookie(name){
        if (document.cookie != "") {
            zoomc = document.cookie.split("; ");
            for (var i=0; i < zoomc.length; i++) {
                zoomv = zoomc[i].split("="); 
                if (zoomv[0] == name) {
                    return  unescape(zoomv[1]);
                }
            }
        }else{
            return "";
        }
    }

    function SetCookie(name,value){
        document.cookie = name + "=" + escape (value)+";";
    }

    function GoZoom(contentid){
        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%'; 
            currZoom = '100%';
        }
    }

    //Zoom In & Zoom Out
    function zoomInOut(contentid, how) {

        if(GetCookie("zoomVal") != null && GetCookie("zoomVal") != ""){
            document.all[contentid].style.zoom = GetCookie("zoomVal");
            currZoom=GetCookie("zoomVal");
        }
        else{
            document.all[contentid].style.zoom = '100%'; 
            currZoom = '100%';
        }
        if (((how == "in") && (parseInt(currZoom) >= maxRate)) || ((how == "out") && (parseInt(currZoom) <= minRate)) ) {
            return; 
        }
        if (how == "in") {
            document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)+zoomRate+'%'
        }
        else {
            document.all[contentid].style.zoom = parseInt(document.all[contentid].style.zoom)-zoomRate+'%'
        }
        SetCookie("zoomVal",document.all[contentid].style.zoom);
    }

    //    +, - key event
    document.onkeypress = getKey;
    
    function getKey(keyStroke) {
        isNetscape=(document.layers);
        eventChooser = (isNetscape) ? keyStroke.which : event.keyCode;
        which = String.fromCharCode(eventChooser).toLowerCase();
        which2 = eventChooser;

        var el=event.srcElement;

        if ((el.tagName != "INPUT") && (el.tagName != "TEXTAREA"))        //input,textarea ¾È¿¡¼­ÀÇ +.-°ªÀº ½ÇÇà¾ÈµÇµµ·Ï
        {            
            if(which == "+" )
                zoomInOut('zoom', 'in');
            else if(which == "-" )
                zoomInOut('zoom', 'out');
        }
    }
    
    function jsiPrint()
    {
        var width = 730;
        var height = 350;
        var x, y;
        var screen_width  = screen.width;
        var screen_height = screen.height;
        x = (screen_width  / 2) - (width  / 2);
        y = (screen_height / 2) - (height / 2);
        var pop = window.open ( "./for_print.jsp","print","width=" + width + ", height=" + height + ", left=" + x + ", top=" + y + ", toolbar=no, status=no, menubar=no, scrollbars=yes, resizable=yes");
        pop.focus();
        return;
    }
        