<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">/*******************************************************************
 Name : Calyx.WebCaster2.CommonScript
 Definition : Common Script Module
*******************************************************************/

var _windowHeight = window.innerHeight;
var _prevScroll = 0;

//========== Page Ready ==========//
$(document).ready(function () {
    // ADA Modal popup focus
    $("div[aria-modal]").each(function (e) {
        let targetNode = this;
        let observer = new MutationObserver(function () {
            if (targetNode.style.display != "none") {
                $(targetNode).find("button:first:visible").focus();
            }
        });
        observer.observe(targetNode, { attributes: true, childList: true });
    });

    $("div[aria-modal]").on("keydown", "div[aria-modal]:visible *:visible:last", function (e) {
        if (!e.shiftKey &amp;&amp; e.keyCode == 9) {
            $(this).closest("div[aria-modal]").find("button:first:visible").focus();
            return false;
        }
    });

    $("div[aria-modal]").on("keydown", "div[aria-modal]:visible button.btn-close", function (e) {
        if (e.shiftKey &amp;&amp; e.keyCode == 9) {
            $(this).closest("div[aria-modal]").find("button:visible:last, a:visible:last").last().focus();
            return false;
        }
    });

    // for mobile left menu
    $("div[aria-modal]").on("keydown", "div[aria-modal]:visible .left-menu-2:visible button:visible:last", function (e) {
        if (!e.shiftKey &amp;&amp; e.keyCode == 9) {
            $(this).closest("div[aria-modal]").find("button:first:visible").focus();
            return false;
        }
    });

    $("div[aria-modal]").on("keydown", "div[aria-modal]:visible .left-menu-1 *:visible:last", function (e) {
        if ($("div[aria-modal]:visible .left-menu-2:hidden").length &gt; 0) {
            if (!e.shiftKey &amp;&amp; e.keyCode == 9) {
                $(this).closest("div[aria-modal]").find("button:first:visible").focus();
                return false;
            }
        }
    });

    // for modal popup on modal
    $("div[aria-modal]").on("keydown", "div[aria-modal]:visible div.popup_wrap *:visible:last", function (e) {
        if (!e.shiftKey &amp;&amp; e.keyCode == 9) {
            $(this).closest("div[aria-modal]").find("button:first:visible").focus();
            return false;
        }
    });

    // Initialize tablist

}).keypress(function (e) {

}).resize(function () {

    if ($(window).width &lt; 320) {
        //parent.resizeTo(320);
    }
    });


//ADA Tab control 
class TabsManual {
    constructor(groupNode) {
        this.tablistNode = groupNode;

        this.tabs = [];

        this.firstTab = null;
        this.lastTab = null;

        this.tabs = Array.from(this.tablistNode.querySelectorAll('[role=tab]'));
        this.tabpanels = [];

        for (var i = 0; i &lt; this.tabs.length; i += 1) {
            var tab = this.tabs[i];
            var tabpanel = document.getElementById(tab.getAttribute('aria-controls'));

            tab.tabIndex = -1;
            tab.setAttribute('aria-selected', 'false');
            this.tabpanels.push(tabpanel);

            tab.addEventListener('keydown', this.onKeydown.bind(this));
            tab.addEventListener('click', this.onClick.bind(this));

            if (!this.firstTab) {
                this.firstTab = tab;
            }
            this.lastTab = tab;
        }

        this.setSelectedTab(this.firstTab);
    }

    setSelectedTab(currentTab) {
        for (var i = 0; i &lt; this.tabs.length; i += 1) {
            var tab = this.tabs[i];
            if (currentTab === tab) {
                tab.setAttribute('aria-selected', 'true');
                tab.removeAttribute('tabindex');
                this.tabpanels[i].classList.remove('is-hidden');
            } else {
                tab.setAttribute('aria-selected', 'false');
                tab.tabIndex = -1;
                this.tabpanels[i].classList.add('is-hidden');
            }
        }
    }

    moveFocusToTab(currentTab) {
        currentTab.focus();
    }

    moveFocusToPreviousTab(currentTab) {
        var index;

        if (currentTab === this.firstTab) {
            this.moveFocusToTab(this.lastTab);
        } else {
            index = this.tabs.indexOf(currentTab);
            this.moveFocusToTab(this.tabs[index - 1]);
        }
    }

    moveFocusToNextTab(currentTab) {
        var index;

        if (currentTab === this.lastTab) {
            this.moveFocusToTab(this.firstTab);
        } else {
            index = this.tabs.indexOf(currentTab);
            this.moveFocusToTab(this.tabs[index + 1]);
        }
    }

    /* EVENT HANDLERS */

    onKeydown(event) {
        var tgt = event.currentTarget,
            flag = false;

        switch (event.key) {
            case 'ArrowLeft':
                this.moveFocusToPreviousTab(tgt);
                flag = true;
                break;

            case 'ArrowRight':
                this.moveFocusToNextTab(tgt);
                flag = true;
                break;

            case 'Home':
                this.moveFocusToTab(this.firstTab);
                flag = true;
                break;

            case 'End':
                this.moveFocusToTab(this.lastTab);
                flag = true;
                break;

            default:
                break;
        }

        if (flag) {
            event.stopPropagation();
            event.preventDefault();
        }
    }

    // Since this example uses buttons for the tabs, the click onr also is activated
    // with the space and enter keys
    onClick(event) {
        this.setSelectedTab(event.currentTarget);
    }
}

// 윈도우 사이즈 변경 이벤트
$(window).resize(function () {
    _windowHeight = window.innerHeight;
    $("#MessageBoxBehind").css("height", _windowHeight);
    $("#ProgressContainer").css("height", _windowHeight);
    $("#FileUploadProgressContainer").css("height", _windowHeight);
    $("#PopupBehind").css("height", _windowHeight);
}).scroll(function (e) {
    var currentScroll = $(this).scrollTop();
    _windowHeight = window.innerHeight;
    if (currentScroll &gt; _prevScroll) {
        //console.log("_windowHeight : " + _windowHeight + " // currentScroll : " + currentScroll);
        $("#MessageBoxBehind").css("height", _windowHeight + currentScroll);
        $("#ProgressContainer").css("height", _windowHeight + currentScroll);
        $("#FileUploadProgressContainer").css("height", _windowHeight + currentScroll);
        $("#PopupBehind").css("height", _windowHeight + currentScroll);
    } else {
        //console.log("_windowHeight : " + _windowHeight + " // currentScroll : " + (_windowHeight - currentScroll));
        $("#MessageBoxBehind").css("height", (_windowHeight + _prevScroll) - (_prevScroll - currentScroll));
        $("#ProgressContainer").css("height", _windowHeight + currentScroll);
        $("#FileUploadProgressContainer").css("height", _windowHeight + currentScroll);
        $("#PopupBehind").css("height", _windowHeight + currentScroll);
    }
    _prevScroll = currentScroll;
});

//========== Common 모듈 [Namespace] ==========//
var wc2 = (function ($) {
    var UserInfo = {
        CompanyID: ""
        , SiteID: ""
        , WebSiteNumber: ""
        , CompanyEmail: ""
        , BorrowerEmail: ""
        , BorrowerID: ""
        , LoanID: ""
        , Language : ""
    }
    // Grbal Resource
    var Resources = {
        AmazonS3DownloadURL: window.location.protocol + "//" + window.location.host + "/_Common/FileHandler/AmazonS3/FileDownloadHandler.ashx",
        AmazonS3UploadURL: window.location.protocol + "//" + window.location.host + "/_Common/FileHandler/AmazonS3/FileUploadHandler.ashx",
        UploaderFlash: window.location.protocol + "//" + window.location.host + "/Scripts/Plugin/Plupload/plupload.Moxie.swf"
    };
    // Common 
    var Common = (function ($) {
        // stringFormat
        function StringFormat() {
            if (arguments.length &gt; 0) {
                // replace parameter none
                if (arguments.length &lt; 2) {
                    return arguments[0];
                }
                // parameter for replace exist
                else {
                    for (var i = 0; i &lt; arguments.length; i++) {
                        var searchText = "{" + i + "}";
                        while (arguments[0].indexOf(searchText) !== -1) {
                            arguments[0] = arguments[0].replace("{" + i + "}", arguments[i + 1] !== undefined ? arguments[i + 1] : "Error");
                        }
                    }
                    return arguments[0];
                }
            }
        }

        function GetCheckValidationEmail(_Email) {
            var result = false;
            var regExp = /([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,15}|[0-9]{1,3})(\]?)$/;
            result = regExp.test(_Email);
            return result;
        }

        function GetIsTermYear(_TermYear, _Year, _Month) {
            var _CurrentYear = (new Date()).getFullYear();
            var _CurrentMonth = (new Date()).getMonth() + 1;
            _Year = parseInt(_Year);
            _Month = parseInt(_Month);
            result = false;

            if (_CurrentYear - _Year &gt; 2 || _CurrentYear - _Year &lt; 0) {
                result = false;
            } else if (_CurrentYear &gt;= _Year) {
                if (_CurrentYear - _Year === _TermYear) {
                    if (_CurrentMonth &gt;= _Month) {
                        result = false;
                    } else {
                        result = true;
                    }
                } else if (_CurrentYear - _Year &lt; _TermYear) {
                    result = true;
                }
            }

            return result;
        }

        function GetIsTermYearByYear(_TermYear, _Year, _Month, _CompareYear, _CompareMonth) {
            var _CurrentYear = parseInt(_CompareYear);
            var _CurrentMonth = parseInt(_CompareMonth);
            _Year = parseInt(_Year);
            _Month = parseInt(_Month);

            result = false;

            if (_CurrentYear - _Year &gt; 2 || _CurrentYear - _Year &lt; 0) {
                result = false;
            } else if (_CurrentYear &gt; _Year) {
                if (_CurrentYear - _Year === _TermYear) {
                    if (_CurrentMonth &gt;= _Month) {
                        result = false;
                    } else {
                        result = true;
                    }
                } else if (_CurrentYear - _Year &lt; _TermYear) {
                    result = true;
                }
            }

            return result;
        }

        function GetSpliDataFromObjValue(_Object, Separator) {
            var result = "";
            if (_Object !== null &amp;&amp; _Object.length &gt; 0) {
                for (var i = 0; i &lt; _Object.length; i++) {
                    result += StringFormat("{0}{1}", $(_Object).eq(i).val(), (i &lt; _Object.length - 1) ? Separator : "");
                }
            }
            return result;
        }

        function GetCurrentYear() {
            return (new Date()).getFullYear();
        }

        function GetCurrentMonth() {
            return (new Date()).getMonth() + 1
        }

        function GetMinusCalDate(_CompareYear, _CompareMonth, _Year, _Month) {
            var result = ((parseInt(_CompareYear) - parseInt(_Year)) * 12) - parseInt((_Month)) + parseInt(_CompareMonth) + 1;
            return result;
        }

        function SetSessionExpires() {

            setInterval(function () {
                //var url = "/LoanApplication/SetSessionExpires";
                //var param = null;
                //wc2.Data.GetJsonAsyncDataTable(url, param);
                $.ajax({
                    type: 'POST',
                    url: "/LoanApplication/SetSessionExpires",
                    data: null,
                    contentType: 'application/json; charset=utf-8',
                    dataType: 'json',
                    async: true,
                    cache: false,
                    success: function (data, status, jqXHR) {
                    },
                    complete: function (data) {
                    },
                    error: function (xhr, status, error) {
                    }
                });

            }, 600000);//600000 - 10 min, 1200000 - 20 min , 2000- 2Sec

            return true;
        }

        return {
            StringFormat: StringFormat
            , GetCheckValidationEmail: GetCheckValidationEmail
            , GetIsTermYear: GetIsTermYear
            , GetIsTermYearByYear: GetIsTermYearByYear
            , GetSpliDataFromObjValue: GetSpliDataFromObjValue
            , GetCurrentYear: GetCurrentYear
            , GetCurrentMonth: GetCurrentMonth
            , GetMinusCalDate: GetMinusCalDate
            , SetSessionExpires: SetSessionExpires
        }
    })(jQuery);
    // Ui 
    var Ui = (function ($) {
        // MessageBox
        function MessageBox(_message) {
            var Html = "";
            if (_message !== null &amp;&amp; _message !== undefined &amp;&amp; _message !== "") {
                Html += Common.StringFormat("&lt;div id='PopupContent' class='popup_wrap popup_w400' style='z-index:10000; position:fixed;background-color:white;{0}' aria-modal='true' aria-label='OK Popup'&gt;", _IsMobile ? "left:5%;" : "top:200px;left:50%;margin-left:-200px;");
                Html += "&lt;div class='popup_label'&gt;";
                Html += "&lt;span class='popup_tit'&gt;Zip&lt;/span&gt;";
                Html += "&lt;button name='btnPopupClose' id='' class='ico_wrap btn_close btn_close2' type='button'  aria-label='Close' &gt;X&lt;/button&gt;";
                Html += "&lt;/div&gt;";
                Html += "&lt;div class='popup_cont pd10'&gt;";
                Html += "&lt;p class='popup_txt01'&gt;" + _message + "&lt;/p&gt;";
                Html += "&lt;/div&gt;";
                Html += "&lt;div class='btn-group'&gt;";
                Html += "&lt;button name='btnPopupClose' type='button' class='btn_comm' value='ok'&gt;OK&lt;/button&gt;";
                Html += "&lt;/div&gt;";
                Html += "&lt;/div&gt;";

                $("#MessageBoxBehind").show();
                $("#MessageBoxContainer").append(Html);
                $("#MessageBoxContent").show();
                $("button[name='btnPopupClose']").unbind("click").bind("click", function () {
                    $("#MessageBoxContainer").empty();
                    $("#MessageBoxBehind").hide();
                });
            }
        }

        function MessageBox(_message, _color) {
            var Html = "";
            if (_message !== null &amp;&amp; _message !== undefined &amp;&amp; _message !== "") {
                Html += Common.StringFormat("&lt;div id='PopupContent' class='popup_wrap popup_w400' style='z-index:10000; position:fixed;background-color:white;{0}; {1}' aria-modal='true' aria-label='OK Popup'&gt;", _IsMobile ? "left:5%;" : "top:200px;left:50%;margin-left:-200px", (_color != "" ? "border-color:" + _color : ""));
                Html += "&lt;div class='popup_label'&gt;";
                Html += "&lt;span class='popup_tit'&gt;Zip&lt;/span&gt;";
                Html += "&lt;button name='btnPopupClose' id='' class='ico_wrap btn_close btn_close2' type='button' aria-label='Close' &gt;X&lt;/button&gt;";
                Html += "&lt;/div&gt;";
                Html += "&lt;div class='popup_cont pd10'&gt;";
                Html += "&lt;p class='popup_txt01'&gt;" + _message + "&lt;/p&gt;";
                Html += "&lt;/div&gt;";
                Html += "&lt;div class='btn-group'&gt;";
                Html += "&lt;button name='btnPopupClose' type='button' class='btn_comm' style='border-color:" + _color + "; background:" + _color + "' value='ok'&gt;OK&lt;/button&gt;";
                Html += "&lt;/div&gt;";
                Html += "&lt;/div&gt;";

                $("#MessageBoxBehind").show();
                $("#MessageBoxContainer").append(Html);
                $("#MessageBoxContent").show();
                $("button[name='btnPopupClose']").unbind("click").bind("click", function () {
                    $("#MessageBoxContainer").empty();
                    $("#MessageBoxBehind").hide();
                });
            }
        }

        function MessageBoxCallBack(_message, _color, _callbackSuccess, _callbackCancleTxt, _callbackCancle, _callbackSuccessParam, _callbackCancleParam, _callbackSuccessText) {
            var Html = "";
            if (_color == null || _color == "") { _color = "#0381a2"; }
            if (_message !== null &amp;&amp; _message !== undefined &amp;&amp; _message !== "") {
                Html += Common.StringFormat("&lt;div id='PopupContent' class='popup_wrap popup_w400' style='z-index:10000; position:fixed;background-color:white;{0}; {1}' aria-modal='true'  aria-label='OK Cancel Popup'&gt;", _IsMobile ? "left:5%;" : "top:200px;left:50%;margin-left:-200px", (_color != "" ? "border-color:" + _color : ""));

                Html += "&lt;button class='btn-close'&gt;&lt;i name='btnPopupClose' class='fa-sharp fa-solid fa-xmark' style='color:" + _color + "'&gt;&lt;/i&gt;&lt;/button&gt;";

                Html += "&lt;div class='popup_cont pd10'&gt;";
                Html += "&lt;p id='msgDesc' class='popup_txt01'&gt;";
                Html += _message;
                Html += "&lt;/p&gt;";
                Html += "&lt;/div&gt;";
                Html += "&lt;div class='btn-group'&gt;";
                if (_IsMobile) {
                    if (_callbackSuccess !== null &amp;&amp; _callbackSuccess !== undefined &amp;&amp; _callbackSuccess !== "") { Html += "&lt;button name='btnPopupOK' type='button' class='btn-primary btn_comm' style='border-color:" + _color + "; background:" + _color + "' value='ok'&gt;" + (_callbackSuccessText !== undefined &amp;&amp; _callbackSuccessText !== null ? _callbackSuccessText : "OK") + "&lt;/button&gt;"; }
                    if (_callbackCancleTxt !== null &amp;&amp; _callbackCancleTxt !== undefined &amp;&amp; _callbackCancleTxt !== "") { Html += "&lt;button name='btnPopupClose' id='btnCancel' type='button' class='btn-primary btn_comm' style='border-color:" + _color + "; background:#fff; color:" + _color + "' value='Cancel'&gt;" + _callbackCancleTxt + "&lt;/button&gt;&lt;/li&gt;"; }
                } else {
                    if (_callbackCancleTxt !== null &amp;&amp; _callbackCancleTxt !== undefined &amp;&amp; _callbackCancleTxt !== "") { Html += "&lt;button name='btnPopupClose' id='btnCancel' type='button' class='btn-primary btn_comm' style='border-color:" + _color + "; background:#fff; color:" + _color + "' value='Cancel'&gt;" + _callbackCancleTxt + "&lt;/button&gt;&lt;/li&gt;"; }
                    if (_callbackSuccess !== null &amp;&amp; _callbackSuccess !== undefined &amp;&amp; _callbackSuccess !== "") { Html += "&lt;button name='btnPopupOK' type='button' class='btn-primary btn_comm' style='border-color:" + _color + "; background:" + _color + "' value='ok'&gt;" + (_callbackSuccessText !== undefined &amp;&amp; _callbackSuccessText !== null ? _callbackSuccessText : "OK") + "&lt;/button&gt;"; }
                }

                Html += "&lt;/div&gt;";
                Html += "&lt;/div&gt;";

                $("#MessageBoxBehind").show();
                $("#MessageBoxContainer").append(Html);
                $("#MessageBoxContent").show();

                $("[name='btnPopupClose']").unbind("click").bind("click", function () {
                    $("#MessageBoxContainer").empty();
                    $("#MessageBoxBehind").hide();
                    wc2.Ui.ProgressHide();
                    if (_callbackCancle !== null &amp;&amp; _callbackCancle !== undefined &amp;&amp; _callbackCancle !== "") {
                        _callbackCancle();
                    }
                });

                $("[name='btnPopupOK']").unbind("click").bind("click", function () {
                    $("#MessageBoxContainer").empty();
                    $("#MessageBoxBehind").hide();
                    wc2.Ui.ProgressHide();
                    if (_callbackSuccess !== null &amp;&amp; _callbackSuccess !== undefined &amp;&amp; _callbackSuccess !== "") {
                        if (_callbackSuccessParam !== null &amp;&amp; _callbackSuccessParam !== undefined &amp;&amp; _callbackSuccessParam !== "") {
                            _callbackSuccess(_callbackSuccessParam);
                        } else {
                            _callbackSuccess();
                        }
                    }
                });
            }
        }

        // Progress Show
        function ProgressShow() {
            $("#ProgressContainer").show();
        }

        // Progress Hide
        function ProgressHide() {
            $("#ProgressContainer").hide();
        }

        // enter Event
        function SetAddEnterEvent(elementID, buttonID) {
            $("#" + elementID).unbind("keypress").bind("keypress", function (e) {
                if (e.keyCode === 13) {
                    $("#" + buttonID).trigger("click");
                }
                //e.preventDefault();
            });
        }

        function SetNumericControlByClassName(_ClassName) {
            $("." + _ClassName).numeric();

            $("." + _ClassName).bind("paste", function (e) {
                e.preventDefault();
            });

            $("." + _ClassName).bind("keyup", function (e) {
                if (e.keyCode &lt; 48 || e.keyCode &gt; 57) return false;
                if (e.keyCode === 229) return false;
                $(this).val($(this).val().replace(/#/gi, ""));
                $(this).val($(this).val().replace("*", ""));
                $(this).val($(this).val().replace(/[\ㄱ-ㅎㅏ-ㅣ가-힣]/g, ''));
            });
        }

        function SetNumericPhoneControlByClassName(_ClassName) {
            $("." + _ClassName).bind("keypress", function (e) {
                if (e.keyCode === 229) return false;
            }).bind("keyup", function () {
                $(this).val($(this).val().replace(/#/gi, ""));
                $(this).val($(this).val().replace("*", ""));
                $(this).val($(this).val().replace(/[\ㄱ-ㅎㅏ-ㅣ가-힣]/g, ''));
            }).bind("keydown", function (e) {
                $(this).val($(this).val().replace(/[\ㄱ-ㅎㅏ-ㅣ가-힣]/g, ''));
            }).bind("paste", function (e) {
                e.preventDefault();
            }).numeric({ allow: "-,x" });
        }

        function SetNumericDotControlByClassName(_ClassName) {
            $("." + _ClassName).bind("keypress", function (e) {
                $(this).val($(this).val().replace(/[^\d]+/g, '').replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,'));
            }).bind("keyup", function () {
                $(this).val($(this).val().replace(/[^\d]+/g, '').replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,'));
            }).bind("keydown", function (e) {
                $(this).val($(this).val().replace(/[^\d]+/g, '').replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,'));
            }).bind("change", function (e) {
                $(this).val($(this).val().replace(/[^\d]+/g, '').replace(/(\d)(?=(?:\d{3})+(?!\d))/g, '$1,'));
            });
        }

        function SetEmptyControlByContainerID(_ContainerID) {
            if ($("#" + _ContainerID + "")) {
                $("#" + _ContainerID + "").find("input[type='text']").each(function (i, el) { $(el).val(""); });
                $("#" + _ContainerID + "").find("select").each(function (i, el) { $(el).val(""); });
                $("#" + _ContainerID + "").find("input[type='radio']").each(function (i, el) { $(el).prop("checked", false); });
                $("#" + _ContainerID + "").find("input[type='checkbox']").each(function (i, el) { $(el).prop("checked", false); });
            }
        }

        function SetButtonControl() {
            $("input[type='radio'], input[type='checkbox']").each(function () {
                var obj = $(this);
                var ClassName = ($(obj).eq(0).prop("type") === "radio" ? "radio_handler" : "chkbox_handler");
                while ($(obj).eq(0).prop("nodeName") != undefined &amp;&amp; $(obj).eq(0).prop("nodeName").toLowerCase() != "li") {
                    obj = $(obj).parent();
                }
                $(obj).addClass(ClassName);
            });

            $("input[type='radio']").unbind("focus").bind("focus", function (e) {
                $("li").removeClass("tab_outline");

                var obj = $(this);
                while ($(obj).eq(0).prop("nodeName") != undefined &amp;&amp; $(obj).eq(0).prop("nodeName").toLowerCase() != "li") {
                    obj = $(obj).parent();
                }

                $(obj).addClass("tab_outline");
            });

            $("input[type='checkbox']").unbind("focus").bind("focus", function (e) {
                $("li").removeClass("tab_outline");
                var obj = $(this);
                while ($(obj).eq(0).prop("nodeName") != undefined &amp;&amp; $(obj).eq(0).prop("nodeName").toLowerCase() != "li") {
                    obj = $(obj).parent();
                }

                $(obj).addClass("tab_outline");
                $(obj).addClass("chkbox_handler");
            });

            //Help
            if (_IsMobile) {
                $('.txt_help02.tooltip').unbind("click").bind("click", function () {
                    $('#MessageBoxBehind').show();
                    $('.tooltiptext02').scrollTop(0);
                    $(".tooltiptext02").css("z-index", "100004");
                    $(".tooltiptext02").css("visibility", "visible");
                    $(".tooltiptext02").css("opacity", "1");
                });
            } else {
                $('.help').hover(
                    function () {
                        $(".tooltiptext02").css("visibility", "visible");
                        $(".tooltiptext02").css("opacity", "1");
                    },
                    function () {
                        $(".txt_help02.tooltip").css("transition", "opacity 0.8s");
                        $(".tooltiptext02").css("visibility", "hidden");
                        $(".tooltiptext02").css("opacity", "0");
                    }
                );
            }

            $(".txt_help02.tooltip").unbind("keydown").bind("keydown", function (e) {
                if (e.shiftKey &amp;&amp; e.keyCode == 9) {
                    $(".tooltiptext02").css("visibility", "hidden");
                    $(".tooltiptext02").css("opacity", "0");

                    setTimeout(function () {
                        $("dd.help").focus();
                    }, 100);
                }
            });

            $("dd.help", $("#ProgressBarContainer")).unbind("keydown").bind("keydown", function (e) {

                if (e.keyCode == 27) {
                    $(".tooltiptext02").css("visibility", "hidden");
                    $(".tooltiptext02").css("opacity", "0");
                    setTimeout(function () {
                        $("dd.help").focus();
                    }, 100);
                }
                if (e.keyCode == 13 || e.keyCode == 32) {
                    if ($(".tooltiptext02").css("visibility") === "visible") {
                        $(".tooltiptext02").css("visibility", "hidden");
                        $(".tooltiptext02").css("opacity", "0");
                    } else {
                        $(".tooltiptext02").css("visibility", "visible");
                        $(".tooltiptext02").css("opacity", "1");
                        setTimeout(function () {
                            $("#helpFirstFocus").focus();
                        }, 100);
                    }
                }
            });

            $("dd.help", $("#ProgressBarContainer")).unbind("click").bind("click", function (e) {
                if ($(".tooltiptext02").css("visibility") === "visible") {
                    $(".tooltiptext02").css("visibility", "hidden");
                    $(".tooltiptext02").css("opacity", "0");
                } else {
                    $(".tooltiptext02").css("visibility", "visible");
                    $(".tooltiptext02").css("opacity", "1");
                    setTimeout(function () {
                        $("#helpFirstFocus").focus();
                    }, 100);
                }


            });

            $("#helpPopup").unbind("click").bind("click", function (e) {
                $(".tooltiptext02").css("visibility", "visible");
                $(".tooltiptext02").css("opacity", "1");
                setTimeout(function () {
                    $("#helpFirstFocus").focus();
                }, 100);
            });

            //Help Popup Close
            $('.tooltiptext02').find(".btn_closepopup").unbind("click").bind("click", function () {
                $(".tooltiptext02").css("visibility", "hidden");
                $(".tooltiptext02").css("opacity", "0");
            });

            //$('.tooltiptext02').find(".btn_closepopup").unbind("keyup").bind("keyup", function (e) {
            //    if (e.keyCode == 13 || e.keyCode == 32) {
            //        $(".tooltiptext02").css("visibility", "hidden");
            //        $(".tooltiptext02").css("opacity", "0");
            //        $(".txt_sub").focus();
            //    }
            //});

            $('.tooltiptext02').find('.btn_closepopup').unbind("keydown").bind("keydown", function (e) {
                if (e.keyCode == 9) {
                    $(".tooltiptext02").css("visibility", "hidden");
                    $(".tooltiptext02").css("opacity", "0");
                    setTimeout(function () {
                        $("dd.help").focus();
                    }, 100);
                }
                if (e.shiftKey &amp;&amp; e.keyCode == 9) {
                    $(".tooltiptext02").css("visibility", "visible");
                    $(".tooltiptext02").css("opacity", "1");
                }
                if (e.keyCode == 13 || e.keyCode == 32) {
                    $(".tooltiptext02").css("visibility", "hidden");
                    $(".tooltiptext02").css("opacity", "0");
                    setTimeout(function () {
                        $("dd.help").focus();
                    }, 100);
                }
            });

            $("#helpFirstFocus").unbind("keydown").bind("keydown", function (e) {
                if (e.shiftKey &amp;&amp; e.keyCode == 9) {
                    $(".tooltiptext02").css("visibility", "hidden");
                    $(".tooltiptext02").css("opacity", "0");
                    setTimeout(function () {
                        $("dd.help").focus();
                    }, 100);
                }
            });
        }

        function SetInputFilter(textbox, inputFilter) {
            if (textbox != null) {
                ["input", "keydown", "keyup", "mousedown", "mouseup", "select", "contextmenu", "drop"].forEach(function (event) {
                    $(textbox).on(event, function () {
                        if (inputFilter(this.value)) {
                            this.oldValue = this.value;
                            this.oldSelectionStart = this.selectionStart;
                            this.oldSelectionEnd = this.selectionEnd;
                        } else if (this.hasOwnProperty("oldValue")) {
                            this.value = this.oldValue;
                            this.setSelectionRange(this.oldSelectionStart, this.oldSelectionEnd);
                        }
                    });
                });
            }
        }

        return {
            MessageBox: MessageBox
            , MessageBoxCallBack: MessageBoxCallBack
            , ProgressShow: ProgressShow
            , ProgressHide: ProgressHide
            , SetAddEnterEvent: SetAddEnterEvent
            , SetNumericControlByClassName: SetNumericControlByClassName
            , SetNumericPhoneControlByClassName: SetNumericPhoneControlByClassName
            , SetNumericDotControlByClassName: SetNumericDotControlByClassName
            , SetEmptyControlByContainerID: SetEmptyControlByContainerID
            , SetButtonControl: SetButtonControl
            , SetInputFilter: SetInputFilter
        }

    })(jQuery);
    // Data Ajax 
    var Data = (function ($) {
        // ajax sync
        function GetSyncJsonResultCall(page, param) {
            return $.ajax({
                type: 'POST',
                url: page,
                data: JSON.stringify(param),
                contentType: 'application/json; charset=utf-8',
                dataType: 'json',
                async: false,
                cache: false,
                success: function (data, status, jqXHR) {
                },
                complete: function (data) {
                    // 통신이 실패했어도 완료가 되었을 때 이 함수를 타게 된다.
                    //console.log(data);
                },
                error: function (xhr, status, error) {
                    console.log(status);
                }
            });
        }

        // ajax async
        function GetAsyncJsonResultCall(page, param, fn) {
            return $.ajax({
                type: 'POST',
                url: page,
                data: JSON.stringify(param),
                contentType: 'application/json; charset=utf-8',
                dataType: 'json',
                async: true,
                cache: false,
                success: function (data, status, jqXHR) {
                    var rsltJson = "";
                    var result = "";
                    if (jqXHR.responseText.length &gt; 0) {
                        rsltJson = $.parseJSON(jqXHR.responseText);
                        result = rsltJson;
                    }
                    fn(result);
                },
                complete: function (data) {
                    // 통신이 실패했어도 완료가 되었을 때 이 함수를 타게 된다.
                    //console.log(data);
                },
                error: function (xhr, status, error) {
                    fn("error");
                }
            });
        }
        // ajax async with Token
        function GetAsyncJsonResultCallwithVerificationToken(page, param, VerificationToken, fn) {
            return $.ajax({
                type: 'POST',
                url: page,
                data: JSON.stringify(param),
                contentType: 'application/json; charset=utf-8',
                dataType: 'json',
                beforeSend: function (xhr) {
                    xhr.setRequestHeader("__RequestVerificationToken", VerificationToken);
                },                    
                async: true,
                cache: false,
                success: function (data, status, jqXHR) {
                    var rsltJson = "";
                    var result = "";
                    if (jqXHR.responseText.length &gt; 0) {
                        rsltJson = $.parseJSON(jqXHR.responseText);
                        result = rsltJson;
                    }
                    fn(result);
                },
                complete: function (data) {
                    // 통신이 실패했어도 완료가 되었을 때 이 함수를 타게 된다.
                    //console.log(data);
                },
                error: function (xhr, status, error) {
                    fn("error");
                }
            });
        }

        // ajax call -&gt; Json return
        function GetJsonDataTable(page, param) {
            var result = "";
            try {
                var rsltJson;
                var rslt = GetSyncJsonResultCall(page, param);
                if (rslt.responseText.length &gt; 0) {
                    rsltJson = $.parseJSON($.parseJSON(rslt.responseText));
                    result = rsltJson;
                    if (result[0].hasOwnProperty("StatusCode")) {
                        SetProcessErrCode(result[0]["StatusCode"]);
                        result = "";
                    }
                }
            }
            catch (e) {
                //console.log(e.message);
            }
            return result;
        }

        // ajax call Json return
        function GetJsonAsyncDataTable(page, param, fn) {
            var result = "";
            try {
                var rsltJson;
                GetAsyncJsonResultCall(page, param, fn);
            }
            catch (e) {
                //console.log(e.message);
            }
            return result;
        }

        // ajax call Json return with 
        function GetJsonAsyncDataTablewithVerificationToken(page, param, VerificationToken, fn) {
            var result = "";
            try {
                var rsltJson;
                GetAsyncJsonResultCallwithVerificationToken(page, param, VerificationToken, fn);
            }
            catch (e) {
                //console.log(e.message);
            }
            return result;
        }


        function GetJsonExcuteDataTable(page, param) {
            var result = "";
            try {
                var rsltJson;
                var rslt = GetSyncJsonResultCall(page, param);
                if (rslt.responseText.length &gt; 0) {
                    rsltJson = $.parseJSON($.parseJSON(rslt.responseText));
                    result = rsltJson;
                }
            }
            catch (e) {
                console.log(e.message);
            }
            return result;
        }

        function GetJsonExcuteData(page, param) {
            var result = false;
            var data = GetJsonExcuteDataTable(page, param);
            if (data !== null) {
                if (parseInt(data.StatusCode) &gt; 0) {
                    result = true;
                }
            }
            return result;
        }

        function GetJsonData(page, param) {
            var result = "";
            try {
                var rsltJson;
                var rslt = GetSyncJsonResultCall(page, param);
                if (rslt.responseText.length &gt; 0) {
                    rsltJson = $.parseJSON(rslt.responseText);
                    result = rsltJson;
                }
            }
            catch (e) {
                console.log(e.message);
            }
            return result;
        }


        function SetCookie(name, value, expiredays) {
            var todayDate = new Date();
            todayDate.setDate(todayDate.getDate() + expiredays);
            //document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";";
            document.cookie = name + "=" + escape(value) + "; path=/; expires=" + todayDate.toGMTString() + ";domain=" + document.domain + "; secure; HttpOnly;";
        }

        function GetCookie(name) {
            var nameOfCookie = name + "=";
            var x = 0;
            while (x &lt;= 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 "";
        }

        return {
            GetJsonDataTable: GetJsonDataTable
            , GetJsonAsyncDataTable: GetJsonAsyncDataTable
            , GetJsonAsyncDataTablewithVerificationToken: GetJsonAsyncDataTablewithVerificationToken
            , GetJsonExcuteDataTable: GetJsonExcuteDataTable
            , GetJsonExcuteData: GetJsonExcuteData
            , GetJsonData: GetJsonData
            , SetCookie: SetCookie
            , GetCookie: GetCookie
        }
    })(jQuery);

    return {
        UserInfo: UserInfo
        , Resources: Resources
        , Common: Common
        , Ui: Ui
        , Data: Data
    }

})(jQuery);
</pre></body></html>