// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/8/2009 4:30:21 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
var isNetPage_ClientValidateCalled = false;
var isPopup_CloseAcrossFrameClick = false;
__doPostBack = function(eventTarget, eventArgument, skipValidation) {
    var theform;
    if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) theform = document.forms["Form1"];
    else theform = document.Form1;
    if (theform == null) theform = document.forms["aspnetForm"];
    if (theform == null) theform = document.forms[0];
    if (IS.IsObjExists("ValidatorCommonOnSubmit") && !skipValidation) {
        if (IS.IsObjExists("WebForm_PostBackOptions") == false) {
            if (Page_BlockSubmit) Page_BlockSubmit = false;
        }
        if (theform.onsubmit == null) {
            if (theform.fireEvent("onsubmit") == false) {
                return;
            }
        } else {
            if (theform.onsubmit() == false) return;
        }
    }
    var ctrlOnPostBack = null;
    for (var i = 0; i < IS.RuntimeObjects.length; i++) {
        ctrl = IS.RuntimeObjects[i];
        if (ctrl != null) {
            try {
                ctrl.PreparePostBackData(1);
            }
            catch (err1) { }

            if (typeof (ctrl.OnPostBack) == "function") {
                if (ctrl.Owner != null && ctrl.Owner.GetType() == "WebNotification") continue;
                else {
                    ctrlOnPostBack = ctrl;
                    break;
                }
            }
        }
    }
    if (ctrlOnPostBack != null) {
        var result = ctrlOnPostBack.OnPostBack(theform, eventTarget, eventArgument);
        if (result == false) return;
    }
    if (typeof (theform.OnValidateSuccess) == "function") theform.OnValidateSuccess();
    theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
    theform.__EVENTARGUMENT.value = eventArgument;
    window.onerror = function() {
        return true;
    };
    theform.submit();
    window.onerror = null;
};

function IsValidationGroupMatch(v20935, v21239) {
    if ((typeof (v21239) == "undefined") || (v21239 == null)) {
        return true;
    }
    var vc7c99 = "";
    if (typeof (v20935.validationGroup) == "string") {
        vc7c99 = v20935.validationGroup;
    }
    return (vc7c99 == v21239);
}
function OverrideSubmitScripts() {
    if (IS.IsObjExists("ValidatorCommonOnSubmit")) {
        ValidatorCommonOnSubmit = function() {
            var va6d18 = !Page_BlockSubmit;
            if (event) event.returnValue = va6d18;
            Page_BlockSubmit = false;
            return va6d18;
        }
    }
    Page_ClientValidate = function(v20b4, v72326) {
        return ISNetPage_ClientValidate(v20b4, v72326);
    };
    ValidatorGetValue = function(vfdf76) {
        var vd5b79 = ISGetObject(vfdf76);
        if (vd5b79 != null) {
            if (typeof (vd5b79.GetValidatorValue) == "function") return vd5b79.GetValidatorValue();
            else {
                if (vd5b79.ClassName == "WebInput") return vd5b79.GetValueData();
            }
        }
        vd5b79 = document.all[vfdf76];
        if (typeof (vd5b79.value) == "string") {
            return vd5b79.value;
        }
        if (typeof (vd5b79.tagName) == "undefined" && typeof (vd5b79.length) == "number") {
            var v9e440;
            for (v9e440 = 0; v9e440 < vd5b79.length; v9e440++) {
                var vef223 = vd5b79[v9e440];
                if (typeof (vef223.value) == "string" && (vef223.type != "radio" || vef223.status == true)) {
                    return vef223.value;
                }
            }
        } else {
            return ValidatorGetValueRecursive(vd5b79);
        }
        return "";
    };
    if (IS.IsObjExists("ValidatorOnLoad")) {
        ValidatorOnSubmit = function() {
            var va6d18 = true;
            if (Page_ValidationActive) {
                var v4ed32 = window.event;
                var v3cb27 = false;
                var v52074 = isNetPage_ClientValidateCalled;
                if (v4ed32 != null) {
                    var vcbd95 = v4ed32.srcElement.onclick;
                    if (vcbd95 != null) {
                        if (vcbd95.toString().indexOf("Page_ClientValidate") > -1 || vcbd95.toString().indexOf("WebForm_DoPostBackWithOptions") > -1 || vcbd95._listeners != null) v3cb27 = true;
                    }
                }
                if (Page_BlockSubmit && !Page_IsValid) {
                    if (isNetPage_ClientValidateCalled || v3cb27) {
                        if (v3cb27 && isNetPage_ClientValidateCalled) v3cb27 = false;
                        isNetPage_ClientValidateCalled = false;
                    }
                }
                if (v52074 == false && v3cb27) ISNetPage_ClientValidate();
                va6d18 = ValidatorCommonOnSubmit();
                if (v4ed32) {
                    var v6c10 = v4ed32.srcElement;
                    if (v6c10 != null) {
                        if (v6c10.type != null) {
                            if (v6c10.type.toLowerCase() == "form") Page_BlockSubmit = false;
                        }
                    }
                }
            }
            if (va6d18 == true) {
                var v9cf29;
                var v47e30;
                for (v47e30 in IS.RuntimeObjects) {
                    v9cf29 = IS.RuntimeObjects[v47e30];
                    if (v9cf29.HtmlObj != null) {
                        v9cf29.PreparePostBackData(2);
                    }
                }
            }
            return va6d18;
        };
        if (IS.moz) ValidatorOnLoad();
    }
}
function ISCoreOnLoad() {
    if (typeof (ISWindowDestroyed) != "undefined") return;
    OverrideSubmitScripts();
    IS.EnsurePureArray();
    var v6e459 = IS.RuntimeWindowPopups;
    for (var vbae5 = 0; vbae5 < v6e459.length; vbae5++) v6e459[vbae5].Init();
    var v80248;
    for (vbae5 in IS.RuntimeObjects) {
        v80248 = IS.RuntimeObjects[vbae5];
        if (typeof (v80248.OnPostInitialized) == "function") {
            if (!v80248.IsOnPostInitialized) {
                v80248.OnPostInitialized();
                v80248.IsOnPostInitialized = true;
            }
        }
    }
    var vaaa97 = document.forms;
    document.body.attachEvent("onmousedown", doHideWindowPopups);
    window.attachEvent("onresize", doHideWindowPopups);
    if (IS.moz) {
        document.body.attachEvent("onkeydown", doHideWindowPopupsOnKeyDown);
        window.attachEvent("onkeydown", doHideWindowPopupsOnKeyDown);
    }
    if (IS.opera) {
        document.body.attachEvent("onmousedown", ISCoreContextMenuHandler);
        document.body.attachEvent("onmouseup", ISCoreContextMenuHandler);
        document.body.attachEvent("onmousemove", ISCoreContextMenuHandler);
    }
}
function ISGetObject(v35f15) {
    if (!v35f15) return null;
    var va2015 = IS.GetRuntimeObjectById(v35f15);
    if (va2015) return va2015;
    else {
        return IS.GetRuntimeObjectByIdWildCard(v35f15);
    }
}
function ISDestroyObject(v87351) {
    if (v87351 == null) return;
    var vab615;
    for (vab615 in IS.RuntimeObjects) {
        if (IS.RuntimeObjects[vab615].Id == v87351) {
            delete IS.RuntimeObjects[vab615];
        }
    }
    IS.ActiveCtrl = null;
}
function ISRemoveObject(v3bb34) {
    for (i in IS.RuntimeObjects) {
        var ve2351 = IS.RuntimeObjects[i];
        if (ve2351 != null && typeof (ve2351) == "object" && ve2351.Id == v3bb34) {
            IS.RuntimeObjects.splice(i, 1);
            break;
        }
    }
    IS.ActiveCtrl = null;
}
function ISControl_InitializeAtlas(v7066) {
    var vf6134 = ISGetObject(v7066);
    if (vf6134 != null) return;
    IS.OnAJAXInitialization = true;
    eval(v7066 + "_InitializeAtlas();");
    IS.OnAJAXInitialization = false;
}
function ISControl_Dispose(vcef6) {
    var va286 = ISGetObject(vcef6);
    if (va286 != null && typeof (va286.OnUnload) == "function") va286.OnUnload(true);
    ISDestroyObject(vcef6);
    ISRemoveObject(vcef6);
}
function ISControl_ReplaceElements(v0ef39) {
    var v99b6 = IS.GetTempIFrame();
    var v86433 = v99b6.contentWindow.document;
    var v68b37 = null;
    var v95b45 = null;
    v68b37 = v86433.body;
    v68b37.innerHTML = v0ef39;
    for (var v98f99 = 0; v98f99 < v68b37.childNodes.length; v98f99++) {
        var vfed83 = v68b37.childNodes[v98f99];
        var v88768 = false;
        if (!vfed83.id && vfed83.childNodes.length > 0) {
            vfed83 = vfed83.childNodes[0];
            if (vfed83.id) v88768 = true;
        }
        if (vfed83.id) {
            var v95780 = document.getElementById(vfed83.id);
            if (v95780 != null && v88768) {
                v95780 = v95780.parentNode;
                vfed83 = vfed83.parentNode;
            }
            if (v95780 != null) {
                var va6765 = vfed83.outerHTML;
                if (IS.moz) va6765 = ISMoz.GetOuterHTML(vfed83);
                if (va6765.indexOf("<xml") > -1) {
                    var vd9732 = va6765.indexOf("_x>");
                    if (vd9732 < 0) vd9732 = va6765.indexOf("_x\">") + 1;
                    if (vd9732 < 0) vd9732 = va6765.indexOf("_x'>") + 1;
                    if (va6765.substring(vd9732 + 7, vd9732 + 14) == "[CDATA[") {
                        va6765 = va6765.substr(vd9732 + 3);
                        va6765 = va6765.substr(0, va6765.length - 6);
                        v95780.innerHTML = va6765;
                    }
                } else {
                    Listener.Unload(v95780);
                    IS.SetOuterHTML(v95780, va6765);
                }
                v95b45 = v95780;
                vfed83 = null;
                v95780 = null;
            } else {
                if (!v88768 && v95b45 != null && v95b45.id) {
                    v95b45 = document.getElementById(v95b45.id);
                    if (v95b45 != null) {
                        try {
                            v95b45 = v95b45.insertAdjacentElement("afterEnd", vfed83);
                        } catch (e) {
                            v95b45 = v95b45.insertAdjacentHTML("afterEnd", vfed83.outerHTML);
                        }
                        vfed83 = null;
                        v95780 = null;
                    }
                }
            }
        }
    }
    if (IS.ie) {
        v86433.open("text/plain", "replace");
        v86433.write("");
        v86433.close();
    } else {
        v68b37.innerHTML = "";
    }
}
function doHideWindowPopupsOnKeyDown() {
    var v93c39 = window.event;
    if (v93c39.keyCode == ISKeyboardKey.ESC) doHideWindowPopups();
}
function doHideWindowPopups() {
    var vf4039 = null;
    var v49250 = IS.RuntimeWindowPopups;
    if (event != null) vf4039 = event.srcElement;
    if (vf4039 && (vf4039.isContextMenu || vf4039.cancelBubble)) return false;
    for (var v37a90 = 0; v37a90 < v49250.length; v37a90++) {
        var v3af95 = v49250[v37a90];
        if (v3af95._e != null) {
            if (!v3af95._e.contains(vf4039) && !v3af95._e.keepVisible && v3af95._e.style.visibility != "hidden") {
                var vac219 = true;
                if (v3af95.OnClosed != null) vac219 = ISEvent.Raise(v3af95.OnClosed, v3af95);
                if (vac219) v3af95.hide();
            }
        }
    }
    if (isPopup_CloseAcrossFrameClick && event && (event.button == ISEvent.LEFT || event.button == ISEvent.RIGHT)) {
        var v26a27 = IS.GetTopOpenPopups();
        if (v26a27.length > 0) {
            for (var v37a90 = 0; v37a90 < v26a27.length; v37a90++) {
                var v3af95 = v26a27[v37a90];
                var v1c781 = window.top;
                if (v3af95[0] != "") v1c781 = v1c781.frames[v3af95[0]];
                if (v1c781 == null || typeof (v1c781) == "undefined" || !v1c781) v1c781 = IS.FindFrameRecursive(window.top, v3af95[0], v3af95[2]);
                if (v1c781 != null && typeof (v1c781) != "undefined") {
                    var vf4039 = v1c781.document.getElementById(v3af95[1]);
                    if (IS.moz && vf4039 == document.getElementById(v3af95[1])) continue;
                    if (vf4039 != null) {
                        vf4039.style.visibility = "hidden";
                        v3af95[3].isOpen = false;
                    }
                }
                v26a27[v37a90] = null;
            }
            delete v26a27;
            window.top.IS_OpenPopups = new Array();
        }
    }
}
function doControlSubmit() {
    if (IS.IsObjExists("ValidatorOnSubmit")) return true;
    var v81a25 = true;
    var v7a897 = IS.IsObjExists("Page_IsValid");
    if (v7a897) v81a25 = Page_IsValid;
    var ve8412 = "";
    var v06c66;
    var vba184;
    var v40858 = false;
    if (window.event != null) {
        v40858 = true;
        if (window.event.srcElement != null) ve8412 = window.event.srcElement.id;
        if (ve8412 == "") v40858 = false;
    }
    for (vba184 in IS.RuntimeObjects) {
        v06c66 = IS.RuntimeObjects[vba184];
        if (v06c66 != null && v06c66.HtmlObj != null && ((v06c66.HtmlObj.form == null || v06c66.HtmlObj.form.id == ve8412) || !v40858)) v06c66.PreparePostBackData(3);
    }
    return true;
}
function ISNetPage_ClientValidate(vaed30, vfc854) {
    OverrideSubmitScripts();
    var v5480;
    var v76586;
    Page_InvalidControlToBeFocused = null;
    if (!IS.IsObjExists("Page_Validators")) return true;
    isNetPage_ClientValidateCalled = true;
    Page_IsValid = true;
    var v12864 = false;
    var v1b431;
    var v99e6;
    for (v5480 = 0; v5480 < Page_Validators.length; v5480++) {
        v76586 = Page_Validators[v5480];
        if (IS.GetRuntimeObjectById(v76586.controltovalidate) != null) {
            v76586.isvalid = true;
            if (v76586.enabled != false) {
                if (IS.IsObjExists("IsValidationGroupMatch")) {
                    v12864 = IsValidationGroupMatch(v76586, vaed30);
                    if (!v12864) {
                        ValidatorUpdateDisplay(v76586);
                        if (!v76586.isvalid) {
                            Page_IsValid = false;
                        }
                        continue;
                    }
                }
                if (v12864 == true) {
                    if (typeof (v76586.controltovalidate) == "string" && v76586.controltovalidate != "") {
                        v1b431 = ISGetObject(v76586.controltovalidate);
                        if (v1b431 != null && v1b431.ClassName == "WebInput") v1b431.Validator = v76586;
                    }
                    if (typeof (v76586.controltocompare) == "string" && v76586.controltocompare != "") {
                        v99e6 = ISGetObject(v76586.controltocompare);
                        if (v99e6 != null && v99e6.ClassName == "WebInput") v99e6.Validator = v76586;
                    }
                    if (typeof (v76586.evaluationfunction) == "function") {
                        v76586.isvalid = v76586.evaluationfunction(v76586, true);
                    } else {
                        if (typeof (v76586.evaluationfunction) == "string") v76586.isvalid = eval(v76586.evaluationfunction + "(v76586, true);");
                        if (IS.IsObjExists("ValidatorSetFocus")) {
                            if (!v76586.isvalid && Page_InvalidControlToBeFocused == null && typeof (v76586.focusOnError) == "string" && v76586.focusOnError == "t") ValidatorSetFocus(v76586, null);
                        }
                    }
                }
                v12864 = false;
            }
            ValidatorUpdateDisplay(v76586);
            if (!v76586.isvalid) {
                Page_IsValid = false;
            }
        } else {
            if (vfc854 == true) {
                var v0c374 = v76586.getAttribute("validationGroup");
                if (v0c374 == vaed30) ValidatorValidate(v76586, vaed30, null);
            } else ValidatorValidate(v76586, vaed30, null);
            if (!v76586.isvalid) {
                Page_IsValid = false;
            }
        }
    }
    ValidationSummaryOnSubmit(vaed30);
    Page_BlockSubmit = !Page_IsValid;
    return Page_IsValid;
}
var IS = {
    FrameworkVersion: "3.0.5000.40",
    FrameworkBuild: "40",
    FrameSuffix: "_f",
    FrameHeaderSuffix: "_fh",
    InnerFrameSuffix: "_if",
    XmlSuffix: "_x",
    CSSSuffix: "_css",
    CultureInfoPrefix: "ISCIXml_",
    PopupPrefix: "ISPopup_",
    HiddenDataSuffix: "_h",
    DropDownSuffix: "_dd",
    MaskValidatorSuffix: "_mv",
    FormatValidatorSuffix: "_fv",
    TempSuffix: "_temp",
    TempIFrameID: "TempIFrameID",
    RuntimeObjects: new Array(),
    RuntimeWindowPopups: new Array(),
    ShortcutKeys: new Array(),
    LastAction: "",
    ActiveControlId: "",
    ActiveCtrl: null,
    DebugWnd: null,
    TempIFrame: null,
    ValidationEngine: null,
    ie: null,
    moz: null,
    mozEventType: null,
    UnloadVariables: new Array(),
    StyleCache: new Array(),
    RegisterUnloadVariables: function(vfba34) {
        if (typeof (IS) == "object" && IS.UnloadVariables != null) IS.UnloadVariables[IS.UnloadVariables.length] = vfba34;
    },
    Trace: function(vdb734) {
        if (!IS.DebugWnd) IS.DebugWnd = window.open('', '_search', 'height=' + window.screen.availHeight + ', top=0, left=0, width=300, scrollbars=yes');
        IS.DebugWnd.document.writeln(vdb734 + "<br>");
    },
    GetValidationEngine: function() {
        if (IS.ValidationObject == null) {
            if (typeof (ISBuiltInValidation) == "function") {
                IS.ValidationObject = new ISBuiltInValidation();
            }
        }
        return IS.ValidationObject;
    },
    GetCommonDateFormat: function(vef318, v10a37, v47a67) {
        var v64118 = "";
        var v80c37 = "";
        v80c37 = v10a37.toString();
        if (v80c37.length == 1) v80c37 = "0" + v80c37;
        v64118 = v80c37;
        v80c37 = vef318.toString();
        if (v80c37.length == 1) v80c37 = "0" + v80c37;
        v64118 += "/" + v80c37;
        v80c37 = v47a67.toString();
        if (v80c37.length == 1) v80c37 = "0" + v80c37;
        if (v80c37.length == 2) v80c37 = "19" + v80c37;
        v64118 += "/" + v80c37;
        return v64118;
    },
    GetFullCommonDateTimeFormat: function(v3b092) {
        var vc2373 = "";
        if (v3b092 != null) {
            vc2373 = (v3b092.getMonth() + 1).toString() + "/" + v3b092.getDate() + "/";
            var v24b16 = v3b092.getFullYear().toString();
            if (v24b16.length == 1) v24b16 = "000" + v24b16;
            if (v24b16.length == 2) v24b16 = "00" + v24b16;
            if (v24b16.length == 3) v24b16 = "0" + v24b16;
            vc2373 += v24b16 + " " + (v3b092.getHours().toString().length == 1 ? "0" : "") + v3b092.getHours() + ":" + (v3b092.getMinutes().toString().length == 1 ? "0" : "") + v3b092.getMinutes() + ":" + (v3b092.getSeconds().toString().length == 1 ? "0" : "") + v3b092.getSeconds();
        }
        return vc2373;
    },
    GetTempIFrame: function() {
        if (IS.TempIFrame == null) {
            IS.TempIFrame = document.getElementById(IS.TempIFrameID);
            if (!IS.moz && !IS.safari) {
                var v6f164 = IS.TempIFrame.contentWindow.document;
                var v55265 = v6f164.createElement("BODY");
                v6f164.appendChild(v55265);
            }
        } else IS.TempIFrame.contentWindow.document.body.innerHTML = "";
        return IS.TempIFrame;
    },
    CreateTempIFrame: function() {
        var v89e48 = document.createElement("IFRAME");
        v89e48.id = IS.TempIFrameID;
        v89e48.style.cssText = "WIDTH:1px;HEIGHT:1px;POSITION:absolute;LEFT:-500px;TOP:-500px;TABINDEX:-1;";
        document.body.appendChild(v89e48);
        return v89e48;
    },
    GetRuntimeObjectById: function(v2b723) {
        if (v2b723 == null || v2b723 == "") return null;
        var o, id1;
        if (typeof (v2b723) != "string") id1 = v2b723.Id;
        else id1 = v2b723;
        if (IS.ActiveCtrl != null) {
            if (IS.ActiveCtrl.Id == id1) return IS.ActiveCtrl;
        }
        var v5d784;
        for (v5d784 in IS.RuntimeObjects) {
            var v84c74 = IS.RuntimeObjects[v5d784];
            if (v84c74 != null && typeof (v84c74) == "object" && v84c74.Id == id1) {
                o = v84c74;
                break;
            }
        }
        if (o != null) {
            if (typeof (o.OnPostInitialized) == "function") {
                if (!o.IsOnPostInitialized) {
                    o.OnPostInitialized();
                    o.IsOnPostInitialized = true;
                }
            }
        }
        IS.ActiveCtrl = o;
        return o;
    },
    GetRuntimeObjectByIdWildCard: function(vba034) {
        var o, id1;
        if (typeof (vba034) != "string") id1 = vba034.Id;
        else id1 = vba034;
        var va4595;
        var vfc532;
        for (vfc532 in IS.RuntimeObjects) {
            var v42394 = IS.RuntimeObjects[vfc532];
            if (v42394 == null) continue;
            if (v42394.HtmlObj) va4595 = v42394.HtmlObj.id;
            else va4595 = v42394.Id;
            if (va4595 != null && va4595.indexOf(id1) > -1 && (va4595.indexOf(id1) + id1.length == va4595.length)) {
                o = v42394;
                break;
            }
        }
        return o;
    },
    IsAvailableRuntimeObjectById: function(v77d34) {
        var v3c534 = IS.GetRuntimeObjectById(v77d34);
        return v3c534 != null ? true : false;
    },
    IsObjExists: function(vf5769) {
        var vbed34;
        try {
            eval(vf5769);
            vbed34 = true;
        } catch (e) {
            vbed34 = false;
        }
        return vbed34;
    },
    GetObj: function(v2d769) {
        var v2d969 = null;
        try {
            v2d969 = eval(v2d769);
        } catch (e) { }
        return v2d969;
    },
    GetRuntimeStyleSheet: function(v40a44) {
        var v00469 = document;
        if (v40a44) v00469 = v40a44;
        for (var v62b21 = 0; v62b21 < v00469.styleSheets.length; v62b21++) {
            var v6d346 = v00469.styleSheets[v62b21];
            if (v6d346.name == "ISRuntimeStyle" || v6d346.id == "ISRuntimeStyle") return v6d346;
        }
        if (!IS.ie) {
            var vff451 = v00469.getElementsByTagName("STYLE");
            for (var v62b21 = 0; v62b21 < vff451.length; v62b21++) {
                var v6d346 = vff451[v62b21];
                if (v6d346.name == "ISRuntimeStyle" || v6d346.id == "ISRuntimeStyle") return v6d346;
            }
        }
        return null;
    },
    GetRuntimeStyleSheetExact: function() {
        s = IS.GetRuntimeStyleSheet(document);
        if (!s) s = IS.CreateRuntimeStyleSheet(document);
        return s;
    },
    CreateRuntimeStyleSheet: function(v6cc64) {
        var vded80 = document;
        if (v6cc64) vded80 = v6cc64;
        var vc2779 = vded80.createStyleSheet();
        vc2779.name = "ISRuntimeStyle";
        if (!IS.ie) vc2779.id = vc2779.name;
        if (!IS.ie) {
            var v5aa16 = document.getElementsByTagName("HEAD")[0];
            v5aa16.appendChild(vc2779);
        }
        return vc2779;
    },
    AddRuntimeCssStyle: function(v78219, v9b598) {
        var vafb64 = IS.GetCssObject(null, v78219);
        if (!vafb64) {
            var v90619 = IS.GetRuntimeStyleSheetExact();
            if (v78219.substring(0, 1) != "." && v78219.substring(0, 1) != "#") v78219 = "." + v78219;
            if (IS.ie || IS.safari) v90619.addRule(v78219, v9b598);
            else v90619.innerHTML += v78219 + " { " + v9b598 + " }\n";
        }
    },
    AddCssStyles: function(v19485) {
        if (v19485 == null || v19485 == "") return;
        var vef219 = v19485.split("}");
        var v5f498 = null;
        try {
            v5f498 = document.createStyleSheet();
        } catch (e) {
            return;
        }
        if (IS.ie) {
            for (var v70c50 = 0; v70c50 < vef219.length; v70c50++) {
                var v3d881 = vef219[v70c50] + "}";
                if (v3d881.indexOf("{") > -1) {
                    var va5874 = v3d881.indexOf(".") > -1;
                    var vf0f20 = v3d881.indexOf(".") + 1;
                    var v40566 = v3d881.indexOf("{");
                    var v74061 = v3d881.indexOf("}");
                    var vd3f83 = v3d881.substring(vf0f20, v40566);
                    var va8f58 = v3d881.substring(v40566 + 1, v74061);
                    var v8813 = va8f58.split(';');
                    for (var vc1797 = 0; vc1797 < v8813.length; vc1797++) {
                        if (v8813[vc1797] != "" && v8813[vc1797] != null) v8813[vc1797] += "!important";
                    }
                    va8f58 = v8813.join(';');
                    v5f498.addRule((va5874 ? "." : "") + vd3f83, va8f58);
                }
            }
        } else {
            var v36f46 = document.getElementsByTagName("HEAD")[0];
            v5f498 = document.createElement("style");
            v5f498.innerText = v19485;
            v36f46.appendChild(v5f498);
        }
    },
    AddStyleRule: function(v6f025, v41255, v08a39) {
        if (v6f025 && v08a39 && v08a39 != "") {
            if (v08a39.charAt(0) != ".") v08a39 = "." + v08a39;
            var v4d55 = IS.GetCssText(v41255, v08a39);
            if (v4d55) v6f025.addRule(v08a39, v4d55)
        }
    },
    GetStyleText: function(v69580, ve9b34, va2825) {
        if (ve9b34 == null || ve9b34 == "") return;
        if (ve9b34.charAt(0) != ".") ve9b34 = "." + ve9b34;
        var v1f480 = ve9b34 + "{" + IS.GetCssText(v69580, ve9b34, va2825) + "} \n";
        return v1f480;
    },
    GetCssText: function(v4a099, v4c743, vc1d92) {
        var v19199 = IS.GetCssObject(v4a099, v4c743, null, vc1d92);
        if (v19199) return v19199.cssText;
        else return null;
    },
    GetCssObject: function(vd1c30, vb7311, vd5229, v1a046) {
        if (vb7311 == null || vb7311 == "") return "";
        var t, s;
        var v01e99 = true;
        var vb9943 = null;
        var v7ae92 = null;
        if (vb7311.charAt(0) != ".") vb7311 = "." + vb7311;
        if (vb7311.indexOf(" ") > -1) vb7311 = vb7311.substring(0, vb7311.indexOf(" "));
        if (vb7311.indexOf("-") > -1 && vb7311.indexOf(vd1c30) > -1) {
            s = document.getElementById(vd1c30 + IS.CSSSuffix);
            try {
                if (s.styleSheet.rules.length > 0) rule0 = s.styleSheet.rules[0];
            } catch (e) {
                v01e99 = false;
            }
            if (s && v01e99) {
                for (var v36178 = 0; v36178 < s.styleSheet.rules.length; v36178++) {
                    with (s.styleSheet.rules[v36178]) {
                        if (vb7311 == selectorText) {
                            if (vd5229) t = s.styleSheet.rules[v36178];
                            else t = style;
                            break;
                        }
                    }
                }
            }
        }
        if (v1a046 != false) {
            for (var v36178 = 0; v36178 < IS.StyleCache.length; v36178++) {
                var v63a77 = IS.StyleCache[v36178];
                if (v63a77[0] == vb7311) {
                    if (vd5229) return v63a77[2];
                    else return v63a77[1];
                }
            }
        }
        if (!t) {
            for (var v54656 = 0; v54656 < document.styleSheets.length; v54656++) {
                s = document.styleSheets[v54656];
                var v65e58 = null;
                if (IS.opera || IS.safari || IsGecko30()) v65e58 = s.cssRules;
                else {
                    try {
                        v65e58 = s.rules;
                    } catch (e) {
                        continue;
                    }
                }
                try {
                    var va5f59 = v65e58.length;
                } catch (e) {
                    continue;
                }
                for (var v36178 = 0; v36178 < v65e58.length; v36178++) {
                    with (v65e58[v36178]) {
                        if (typeof (selectorText) == "string" && (vb7311.toLowerCase() == selectorText.toLowerCase() || (IS.opera && vb7311.toLowerCase() == OperaEngine.Escape(selectorText).toLowerCase()))) {
                            if (vd5229) t = v65e58[v36178];
                            else t = style;
                            vb9943 = style;
                            v7ae92 = v65e58[v36178];
                            break;
                        }
                    }
                }
                if (t) break;
            }
        }
        if (v1a046 != false) {
            if (vb9943 != null) IS.StyleCache.push([vb7311, vb9943, v7ae92]);
        }
        return t;
    },
    CheckRequiredFrameworkVersion: function(va685) {
        var v3b821 = IS.FrameworkVersion.replace(/[.]/g, "");
        var v6bb60 = va685.replace(/[.]/g, "");
        return parseInt(v3b821) >= parseInt(v6bb60);
    },
    CheckXmlCompression: function(v21896) {
        if (v21896) {
            if (v21896.firstChild.nodeName == "CompressedXml") {
                var v3a641 = new XmlCompressor();
                var v8d369 = v3a641.Decompress(v21896);
                if (v8d369) {
                    var vf5299 = ISXml.CreateXmlDocument();
                    vf5299.loadXML(v8d369.childNodes[0].childNodes[0].childNodes[0].xml);
                    v8d369 = null;
                    return vf5299;
                }
            }
        }
        return null;
    },
    CompressXmlState: function(v21f51) {
        var v7db96 = ISXml.CreateXmlDocument();
        v7db96.loadXML(v21f51);
        var vd7b48 = new XmlCompressor(v7db96);
        var v69b85 = vd7b48.Compress(v7db96);
        var v87656 = v69b85.xml;
        v69b85 = null;
        v7db96 = null;
        delete v69b85;
        delete v7db96;
        return v87656;
    },
    SetPropertiesRecursive: function(vf0146, vecb26, v5e289) {
        if (!v5e289) IS.SetProperties(vf0146, vecb26);
        var v77835 = 0;
        for (v77835 = 0; v77835 < vecb26.childNodes.length; v77835++) {
            var v9eb68 = vecb26.childNodes[v77835];
            var v92b18 = vf0146[v9eb68.nodeName];
            if (v92b18 == null) {
                try {
                    cObjFn = eval(v9eb68.nodeName);
                    v92b18 = new cObjFn();
                } catch (e) { }
            }
            if (v92b18 != null) {
                if (v92b18.constructor == Array) {
                    v92b18.XmlNode = v9eb68;
                    v92b18.Parent = vf0146;
                    for (var v5d579 = 0; v5d579 < v9eb68.childNodes.length; v5d579++) {
                        var v7c770 = v9eb68.childNodes[v5d579];
                        var v93741 = eval(v7c770.nodeName);
                        var v64752 = new v93741();
                        IS.SetProperties(v64752, v7c770, vf0146);
                        if (v7c770.childNodes.length > 0) {
                            IS.SetPropertiesRecursive(v64752, v7c770, true);
                        }
                        v92b18[v92b18.length] = v64752;
                    }
                } else {
                    IS.SetProperties(v92b18, v9eb68, vf0146);
                    if (v9eb68.childNodes.length > 0) {
                        IS.SetPropertiesRecursive(v92b18, v9eb68, true);
                    }
                }
            }
        }
        if (typeof (vf0146.OnSetPropertiesRecursive) == "function") vf0146.OnSetPropertiesRecursive();
    },
    SetProperties: function(v00137, vacf74, v12e92) {
        if (v00137 != null && vacf74 != null) {
            var attrs, t, nm, v;
            attrs = vacf74.attributes;
            var v47d65 = new Array();
            var v77335 = 0;
            for (var v65c56 = 0; v65c56 < attrs.length; v65c56++) {
                with (attrs.item(v65c56)) {
                    nm = name;
                    v = value.toString();
                }
                t = typeof (v00137[nm]);
                if (t == "undefined") v00137[nm] = undefined;
                switch (t) {
                    case "number":
                        v00137[nm] = parseFloat(v);
                        break;
                    case "string":
                        v00137[nm] = v;
                        if (nm.indexOf("Style") > -1 && nm.indexOf("Style") == nm.length - 5) {
                            v47d65[v77335] = nm;
                            v77335++;
                        }
                        break;
                    case "boolean":
                        v00137[nm] = v.toLowerCase() == "true" ? true : false;
                        break;
                    case "undefined":
                        v00137[nm] = (v != "True" && v != "False") ? v : (v == "True" ? true : false);
                        if (nm.indexOf("Style") > -1 && nm.indexOf("Style") == nm.length - 5) {
                            v47d65[v77335] = nm;
                            v77335++;
                        }
                        break;
                    case "object":
                        if (v00137[nm] != null) {
                            if (v00137[nm].constructor == Array && v.length > 0) v00137[nm] = v.replace(/(^\s+)|\s+$/g, "").split(";");
                        } else {
                            if (v == "True" || v == "False") v00137[nm] = v == "True";
                            else if (!isNaN(parseFloat(v))) v00137[nm] = parseFloat(v);
                            else v00137[nm] = v;
                        }
                        break;
                }
            }
            for (var v65c56 = 0; v65c56 < v47d65.length; v65c56++) {
                vacf74.removeAttribute(v47d65[v65c56]);
            }
            v00137.XmlNode = vacf74;
            if (v12e92 != null) {
                if (typeof (v00137.XmlPath) == "string") {
                    v00137.Parent = v12e92;
                }
            }
            if (typeof (v00137.OnPropertiesInitialized) == "function") {
                v00137.OnPropertiesInitialized("OnInitialize");
            }
        }
    },
    SetModifiedPropertiesToXml: function(v13a17, v17219, vc5634, v9ae28) {
        if (v13a17 != null && v17219 != null) {
            if (v13a17._Type != null) {
                var v8f792 = eval(v13a17._Type);
                var vf1453 = new v8f792();
                for (prop in v13a17) {
                    var vbc278 = v13a17[prop];
                    if (vbc278 != null && vbc278.constructor != Array && typeof (vbc278) != "object" && typeof (vbc278) != "function") {
                        var va6033 = v13a17.OriginalXmlNode;
                        var ve8280 = null;
                        if (va6033 != null) ve8280 = ISXml.GetAttribute(va6033, prop);
                        if (vbc278 != vf1453[prop] || (vbc278 == vf1453[prop] && ve8280 != null && ve8280 != vbc278) || (vbc278 == vf1453[prop] && ISXml.GetAttribute(v17219, prop) != null && vbc278 != ISXml.GetAttribute(v17219, prop))) {
                            var vb6e68 = vbc278.toString();
                            var va2093 = "Attribute";
                            if (typeof (vbc278) == "boolean") vb6e68 = (vb6e68 == "true" ? "True" : "False");
                            if (typeof (v13a17.GetElementType) == "function") va2093 = v13a17.GetElementType(prop);
                            if (va2093 == "Attribute") ISXml.SetAttribute(v17219, prop, vb6e68);
                            else if (va2093 == "CDATA") ISXml.CreateCDATA(v17219.ownerDocument, v17219, prop, vb6e68);
                        }
                    } else if (vc5634 && vbc278 != null && typeof (vbc278) == "object" && typeof (vbc278._Type) == "string" && prop != "Parent") {
                        var v31648 = null;
                        var vcc341 = true;
                        if (v9ae28 && vbc278.XmlNode == null && (typeof (vbc278._UIState) == "undefined" || (typeof (vbc278._UIState) == "string" && vbc278._UIState != "Changed"))) vcc341 = false;
                        if (vcc341) {
                            if (v13a17.XmlNode.selectSingleNode(prop) != null) v31648 = v13a17.XmlNode.removeChild(v13a17.XmlNode.selectSingleNode(prop));
                            var vfbe37 = ISXml.CreateNode(v13a17.XmlNode.ownerDocument, v13a17.XmlNode, prop, "");
                            if (!vbc278.OriginalXmlNode) vbc278.OriginalXmlNode = v31648;
                            vbc278.XmlNode = vfbe37;
                            IS.SetModifiedPropertiesToXml(vbc278, vfbe37, vc5634, v9ae28);
                            v13a17.XmlNode.appendChild(vfbe37);
                        }
                    }
                }
                if (typeof (v13a17.OnUpdate) == "function") v13a17.OnUpdate(v17219);
            }
        }
    },
    SetPropertiesToXml: function(v3ea28, v8c177) {
        if (v3ea28 != null && v8c177 != null) {
            var attrs, attr, a, nm;
            attrs = v8c177.attributes;
            for (var v56e56 = 0; v56e56 < attrs.length; v56e56++) {
                attr = attrs.item(v56e56);
                nm = attr.name;
                if (v3ea28[nm] != null) {
                    if (v3ea28[nm].constructor != Array) attr.value = v3ea28[nm].toString();
                    else {
                        var v05c38 = "";
                        for (var v54b68 = 0; v54b68 < v3ea28[nm].length; v54b68++) {
                            v05c38 += v3ea28[nm][v54b68].toString() + ";";
                        }
                        if (v05c38.length > 0) v05c38 = v05c38.substr(0, v05c38.length - 1);
                        attr.value = v05c38;
                    }
                } else attr.value = "";
            }
        }
    },
    GetIEVersion: function() {
        var v59583 = window.navigator.userAgent;
        var v51356 = v59583.indexOf("MSIE");
        var v54390 = v59583.indexOf(";", v51356 + 1);
        if (v54390 == -1) v54390 = v59583.length - 1;
        var v7c338 = v59583.substring(v51356, v54390);
        v51356 = v7c338.indexOf(".");
        var v21711 = Number(v7c338.substring(v51356 - 1, v51356 + 2));
        return v21711;
    },
    GetInputCtlName: function(vd8d14) {
        if (vd8d14.name != "") return vd8d14.name;
        else return vd8d14.id;
    },
    GetFormAction: function(va0772) {
        var v27897 = va0772.toLowerCase();
        var v3e964 = v27897.indexOf("<form");
        var v4b276 = "";
        if (v3e964 > -1) {
            var vabb26 = v27897.indexOf("action", v3e964);
            var v67331 = v27897.indexOf(">", v3e964);
            if (vabb26 < v67331) {
                var veee74 = v27897.indexOf('"', vabb26);
                var v40c68 = v27897.indexOf('"', veee74 + 1);
                v4b276 = va0772.substring(veee74 + 1, v40c68);
            }
        }
        return v4b276;
    },
    DecodeAmpersand: function(v12b8) {
        return v12b8.replace(/&/g, "&amp;");
    },
    SetWidth: function(vea18, vcde22) {
        if (IS.ie || IS.safari || IS.opera || IsGecko30()) vea18.style.width = IS.MakePixel(vcde22);
        else ISMoz.SetWidth(vea18, vcde22);
    },
    SetCellWidth: function(vaab44, vb6792) {
        if (IS.safari) {
            var v3af44 = vaab44.parentElement.parentElement;
            if (v3af44.tagName != "TABLE") v3af44 = v3af44.parentElement;
            v3af44.style.tableLayout = "";
            vaab44.style.width = vb6792;
            setTimeout(function() {
                v3af44.style.tableLayout = "fixed";
            },
            1);
        } else vaab44.style.width = vb6792;
    },
    SetHeight: function(v4bd64, vaf22) {
        if (IS.ie) v4bd64.style.height = vaf22;
        else ISMoz.SetHeight(v4bd64, vaf22);
    },
    RenderControl: function(vd4a83, v40411) {
        var v70964 = ISGetObject(vd4a83);
        var v90c2 = false;
        if (v70964 != null) {
            ISControl_Dispose(vd4a83);
            ISControl_ReplaceElements(v40411);
            v90c2 = true;
        } else {
            v70964 = document.getElementById(vd4a83);
            if (!v70964 && vd4a83.indexOf("_") > -1) {
                var v60e31 = vd4a83.substring(vd4a83.lastIndexOf("_") + 1);
                if (v60e31) v70964 = document.getElementById(v60e31);
            }
        }
        if (v70964 && !v90c2) {
            if (v40411 != "") IS.ReplaceHtmlElements(v70964, v40411);
            else v70964.outerHTML = "<span id=\"" + vd4a83 + "\"></span>";
        }
    },
    ReplaceHtmlElements: function(v8f258, veaa0) {
        var v4853 = IS.GetTempIFrame();
        var va3921 = v4853.contentWindow.document;
        var v21365 = null;
        v21365 = va3921.body;
        v21365.innerHTML = veaa0;
        if (v21365.children.length == 1) v8f258.outerHTML = veaa0;
        else {
            for (var v8f459 = 0; v8f459 < v21365.children.length; v8f459++) {
                if (v8f258) {
                    v8f258.outerHTML = v21365.children[v8f459].outerHTML;
                    v8f258 = v8f258.nextSibling;
                }
            }
        }
        if (IS.ie) {
            va3921.open("text/plain", "replace");
            va3921.write("");
            va3921.close();
        } else {
            v21365.innerHTML = "";
        }
    },
    SetValue: function(v49c13, v70879) {
        var vcd813 = document.getElementById(v49c13);
        if (vcd813 && typeof (vcd813.value) != "undefined") vcd813.value = v70879;
        else alert("Control '" + v49c13 + "' is not an input control!");
    },
    SetStyle: function(vb1033, v98388) {
        var v8c549 = document.getElementById(vb1033);
        if (v98388 != "") v98388 = v98388.replace(new RegExp("%29", "g"), ")");
        if (v8c549 && typeof (v8c549.style) != "undefined") {
            var vac748 = v8c549.style.position;
            var v81e54 = v8c549.style.left;
            var v4f06 = v8c549.style.top;
            v8c549.style.cssText = v98388;
            v8c549.style.position = vac748;
            v8c549.style.left = v81e54;
            v8c549.style.top = v4f06;
        } else alert("Control '" + vb1033 + "' doesn't support CSS Style!");
    },
    SetOuterHTML: function(vee780, v62e16) {
        try {
            vee780.outerHTML = v62e16;
        } catch (e) {
            if (IS.ie && v62e16 != "") {
                var ve905 = document.createElement(vee780.tagName);
                var v27e27;
                ve905.innerHTML = v62e16;
                if (ve905.childNodes.length > 0) {
                    v27e27 = ve905.childNodes[0];
                    ve905.removeNode(false);
                }
                var vdac39 = vee780.parentElement;
                vdac39.insertBefore(v27e27, vee780);
                vdac39.removeChild(vee780);
            }
        }
    },
    EnsurePureArray: function() {
        if (typeof (RuntimeVersion) == "string" || Array.__typeName == "Array") return;
        for (p in Array.prototype) delete Array.prototype[p];
    },
    GetAttr: function(v48899, vc0b26) {
        if (v48899 != null) {
            if (!v48899.attributes) return "";
            if (v48899.attributes[vc0b26]) return v48899.attributes[vc0b26].value;
            else {
                if (v48899[vc0b26]) return v48899[vc0b26];
            }
        }
        return "";
    },
    GetEventType: function(v2fc19) {
        if (!v2fc19) v2fc19 = window;
        if (IS.ie) {
            return v2fc19.event.type;
        } else {
            var v58b19;
            try {
                v58b19 = v2fc19.event.type;
            } catch (e) {
                v58b19 = IS.mozEventType;
            }
            return v58b19;
        }
    },
    UpdateViewState: function(v8a738) {
        var vc7655 = document.getElementById("__VIEWSTATE");
        if (vc7655) vc7655.value = v8a738;
    },
    IsXHTMLDocType: function() {
        var v3ed74 = document.childNodes[0];
        if (v3ed74 != null && (typeof (v3ed74.tagName) == "undefined" || v3ed74.tagName.toLowerCase() != "html")) v3ed74 = document.childNodes[1];
        return v3ed74 != null && v3ed74.tagName == "HTML" && v3ed74.attributes["xmlns"] != null && v3ed74.attributes["xmlns"].value.toLowerCase().indexOf("xhtml") > -1;
    },
    GetTopOpenPopups: function() {
        var v57610 = window;
        if (window.top != v57610) v57610 = window.top;
        if (typeof (v57610.IS_OpenPopups) == "undefined") v57610.IS_OpenPopups = new Array();
        else {
            try {
                var v0a284 = v57610.IS_OpenPopups.toString();
            } catch (e) {
                v57610.IS_OpenPopups = null;
                v57610.IS_OpenPopups = new Array();
            }
        }
        return v57610.IS_OpenPopups;
    },
    FindFrameRecursive: function(v80465, v4c363, vf8714) {
        for (var v2c529 = 0; v2c529 < v80465.frames.length; v2c529++) {
            var ve0993 = v80465.frames[v2c529];
            if (ve0993.name == v4c363 && ve0993.location.pathname == vf8714) return ve0993;
            else {
                ve0993 = IS.FindFrameRecursive(ve0993, v4c363, vf8714);
                if (ve0993 != null && typeof (ve0993) != undefined) return ve0993;
            }
        }
    },
    GetInnerText: function(vf3585) {
        if (IS.safari) return vf3585.innerTextEx;
        else return vf3585.innerText;
    },
    GetSymbol: function(vd4440, v85e52, vfab66) {
        var v8a168 = false;
        if (IS.ie) v8a168 = true;
        else if (IS.moz && !IsGecko30()) v8a168 = true;
        if (v8a168) {
            if (vfab66) return v85e52;
            else return "<font face='Webdings' style='font-size: 8pt'>" + v85e52 + "</font>";
        } else {
            var vff813 = vd4440.WebResourceIdentifier;
            var ve9c29 = "";
            vd4440.WebResourceIdentifier = "F";
            ve9c29 = vd4440.ResolveImagePath(vd4440.ImagesDirectory, "webdings_" + v85e52 + ".gif");
            if (ve9c29.indexOf(".") == -1) ve9c29 = vd4440.ResolveImagePath("webdings_" + v85e52 + ".gif");
            vd4440.WebResourceIdentifier = vff813;
            if (vfab66) return ve9c29;
            else return "<img valign='absmiddle' src='" + ve9c29 + " ' />";
        }
        return "";
    },
    GetAppDomainPath: function() {
        var v43460 = IS_AppDomainAppVirtualPath;
        if (v43460) {
            if (v43460.length > 1 && v43460.substring(v43460.length - 1, 1) != "/") v43460 += "/";
        }
        return v43460;
    },
    GetSilverlightVersion: function() {
        var v8fc96 = "";
        var v5f131 = null;
        try {
            var v6c351 = null;
            if (window.navigator.userAgent.indexOf('MSIE') >= 0) v6c351 = new ActiveXObject('AgControl.AgControl');
            else {
                if (navigator.plugins['Silverlight Plug-In']) {
                    v5f131 = document.createElement('div');
                    document.body.appendChild(v5f131);
                    v5f131.innerHTML = '<embed type="application/x-silverlight" src="data:," />';
                    v6c351 = v5f131.childNodes[0];
                }
            }
            if (v6c351) {
                if (v6c351.isVersionSupported('2.0')) {
                    v8fc96 = 'Silverlight/2.0';
                } else if (v6c351.isVersionSupported('1.1')) {
                    v8fc96 = 'Silverlight/1.1';
                } else if (v6c351.isVersionSupported('1.0')) {
                    v8fc96 = 'Silverlight/1.0';
                }
            }
        } catch (e) { }
        if (v5f131) document.body.removeChild(v5f131);
        return v8fc96;
    },
    IsRightToLeft: function(vbca99) {
        var vc0199 = vbca99.currentStyle.direction;
        return vc0199 == "rtl";
    },
    AddScript: function(v11590) {
        var vaa135 = document.getElementsByTagName("script");
        var v13150 = true;
        for (var v50a85 = 0; v50a85 < vaa135.length; v50a85++) {
            var va1b37 = vaa135[v50a85];
            if (va1b37.src != "" && va1b37.src.toLowerCase().indexOf(v11590.toLowerCase()) > -1) {
                v13150 = false;
                break;
            }
        }
        if (v13150) {
            var vcf815 = document.getElementsByTagName("head")[0];
            var va1b37 = document.createElement("script");
            va1b37.type = "text/javascript";
            va1b37.src = v11590;
            vcf815.appendChild(va1b37);
        }
    },
    EncodeHtml: function(v4c610) {
        var v84626 = v4c610.replace(/[&]/g, "&amp;");
        v84626 = v84626.replace(/[<]/g, "&lt;");
        v84626 = v84626.replace(/[>]/g, "&gt;");
        return v84626;
    },
    GenerateRandomNumber: function() {
        return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
    },
    CreateGUID: function() {
        return (IS.GenerateRandomNumber() + IS.GenerateRandomNumber() + "-" + IS.GenerateRandomNumber() + "-" + IS.GenerateRandomNumber() + "-" + IS.GenerateRandomNumber() + "-" + IS.GenerateRandomNumber() + IS.GenerateRandomNumber() + IS.GenerateRandomNumber());
    },
    MakePixel: function(v31710) {
        if (typeof (v31710) == "number") return v31710 + "px";
        if (v31710 != null && v31710.toString().indexOf("px") == -1 && !isNaN(parseFloat(v31710))) return v31710.toString() + "px";
    },
    StringBuilder: function() {
        this.Data = new Array();
        this.Append = function(vb8a45) {
            this.Data.push(vb8a45);
        };
        this.Clear = function() {
            this.Data = null;
            this.Data = new Array();
        };
        this.ToString = function() {
            return this.Data.join("");
        }
    },
    RegisterBoxSizing: function(vf9b45) {
        if (IsIE8StandardMode() || !IS.ie) IS.AddRuntimeCssStyle("#" + vf9b45 + "_f *", "box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;");
    }
};
IS.ie = /MSIE/.test(navigator.userAgent);
IS.moz = !IS.ie && navigator.product == "Gecko";
IS.opera = !IS.ie && !IS.moz && /Opera/.test(navigator.userAgent);
IS.safari = /Safari/.test(navigator.userAgent);
IS.khtml = !IS.safari && /KHTML/.test(navigator.userAgent);
IS.mac = /Macintosh/.test(navigator.userAgent);
IS.chrome = /Chrome/.test(navigator.userAgent);
IS.w3c = false;
IS.w3cs = false;
if (IS.moz || IS.opera || IS.safari || IS.chrome || (IS.ie && IS.GetIEVersion() >= 8)) {
    IS.w3c = true;
    if (IS.IsXHTMLDocType()) IS.w3cs = true;
}
if (IS.safari) IS.moz = false;

function ISObject() {
    this.Parent = null;
    this.XmlNode = null;
    this.XmlPath = "";
    this.IsSerialized = false;
    this.Get = function(vd1422) {
        if (typeof (this.__getter) == "function") {
            var vaff2 = this.__getter(vd1422);
            if (typeof (vaff2) == "undefined") return this[vd1422];
            else return vaff2;
        }
        return this[vd1422];
    };
    this.Set = function(vd1422, vd9572, vdc124) {
        this[vd1422] = vd9572;
        if (vdc124) {
            if (this.XmlNode) {
                var ve9b93 = ISXml.GetNode(this.XmlNode, vd1422);
                if (ve9b93) {
                    ISXml.RemoveNode(this.XmlNode, vd1422);
                    ISXml.CreateCDATA(this.XmlNode.ownerDocument, this.XmlNode, vd1422, vd9572);
                } else {
                    if (typeof (vd9572) == "boolean") {
                        if (vd9572) vd9572 = "true";
                        else vd9572 = "false";
                    }
                    ISXml.SetAttribute(this.XmlNode, vd1422, vd9572);
                }
            }
        }
        if (typeof (this.__setter) == "function") {
            this.__setter(vd1422, vd9572, vdc124);
        }
    };
    this.CopyFrom = function(v25c77) {
        var vee138;
        for (vee138 in this) {
            var v85482 = this[vee138];
            if (typeof (v85482) != "function") {
                this[vee138] = v25c77[vee138];
            }
        }
    };
    this.GetType = function() {
        if (this.ClassName) return this.ClassName;
        else return this._Type;
    };
    this.SetChanged = function() {
        if (this._UIState) this._UIState = "Changed";
    };
    this.toString = function() {
        if (this.GetType() != "") return "[object " + this.GetType() + "]";
        return "[object Object]";
    };
}
function ISArray() {
    var v11461 = new Array();
    ISDeleteObjectPermanent(v11461);
    v11461.Parent = null;
    v11461.XmlNode = null;
    v11461._Type == "ISArray";
    v11461.GetNamedItem = function(vc7027) {
        for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
            if (this[vc7621] != null && this[vc7621].Name == vc7027) return this[vc7621];
        }
        return null;
    };
    v11461.GetItemByProperty = function(vd5327, vc7027) {
        for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
            if (this[vc7621] != null && this[vc7621][vd5327] == vc7027) return this[vc7621];
        }
        return null;
    };
    v11461.Add = function(v1e763) {
        if (typeof (v1e763._UIState) == "string") v1e763._UIState = "Added";
        if (typeof (v1e763.Position) == "number") v1e763.Position = this.length;
        if (typeof (v1e763.Index) == "number") v1e763.Index = this.length;
        if (this.Parent != null) v1e763.Parent = this.Parent;
        if (typeof (v1e763.OnPropertiesInitialized) == "function") v1e763.OnPropertiesInitialized("OnAdd");
        this[this.length] = v1e763;
        if (typeof (v1e763.OnAdd) == "function") v1e763.OnAdd();
        return v1e763;
    };
    v11461.Remove = function(v1e763, v30c38) {
        if (typeof (v1e763._UIState) == "string") v1e763._UIState = "Removed";
        if (!v30c38) {
            var vc7621 = this.IndexOf(v1e763);
            if (vc7621 != -1) v11461.splice(vc7621, 1);
            if (typeof (v1e763.OnRemove) == "function") v1e763.OnRemove();
        } else {
            this.ReindexPosition();
        }
        return v1e763;
    };
    v11461.RemoveAt = function(v89918, v30c38) {
        var v64e93 = this[v89918];
        this.Remove(v64e93, v30c38);
        return v64e93;
    };
    v11461.InsertAt = function(v1e763, v89918) {
        if (typeof (v1e763._UIState) == "string") v1e763._UIState = "Added";
        if (typeof (v1e763.Position) == "number") v1e763.Position = v89918;
        if (typeof (v1e763.Index) == "number") v1e763.Index = v89918;
        if (this.Parent != null) v1e763.Parent = this.Parent;
        if (typeof (v1e763.OnPropertiesInitialized) == "function") v1e763.OnPropertiesInitialized("OnInsert");
        if (typeof (v1e763.OnInsert) == "function") v1e763.OnInsert(v89918);
        this.splice(v89918, 0, v1e763);
        this.ReindexPosition();
        return v1e763;
    };
    v11461.Move = function(vace21, v52457) {
        var v64e93 = this[vace21];
        v64e93.OldPosition = vace21;
        this.RemoveAt(vace21);
        this.InsertAt(v64e93, v52457);
        if (typeof (v64e93._UIState) == "string") v64e93._UIState = "PositionChanged";
    };
    v11461.ReindexPosition = function() {
        if (this.length > 0) {
            if (typeof (this[0].Position) == "number" || typeof (this[0].Index) == "number") {
                for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
                    if (typeof (this[vc7621].Position) == "number") this[vc7621].Position = vc7621;
                    else if (typeof (this[vc7621].Index) == "number") this[vc7621].Index = vc7621;
                }
            }
        }
    };
    v11461.IndexOf = function(v64e93) {
        for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
            if (this[vc7621] == v64e93) return vc7621;
        }
        return -1;
    };
    v11461.Clear = function() {
        for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
            this[vc7621] = null;
        }
        this.length = 0;
    };
    v11461.InitializeFrom = function(v1e763) {
        this.XmlNode = v1e763.XmlNode;
        this.Parent = v1e763.Parent;
    };
    v11461.CopyFrom = function(v1e763) {
        for (var vc7621 = 0; vc7621 < v1e763.length; vc7621++) {
            var v64e93 = v1e763[vc7621];
            this.Add(v64e93);
        }
    };
    v11461.UpdateChanges = function(vaef77) {
        if (this.XmlNode != null) {
            this.ReindexPosition();
            if (vaef77) {
                for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
                    var v64e93 = this[vc7621];
                    if (!v64e93.OriginalXmlNode) v64e93.OriginalXmlNode = v64e93.XmlNode;
                }
            }
            for (var vc7621 = 0; vc7621 < this.XmlNode.childNodes.length; vc7621++) {
                var v2cc40 = this.XmlNode.removeChild(this.XmlNode.childNodes[vc7621]);
                vc7621--;
                v2cc40 = null;
            }
            for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
                var v6633 = this[vc7621];
                if (v6633._Type != "") {
                    var va4559 = ISXml.CreateNode(this.XmlNode.ownerDocument, this.XmlNode, v6633._Type, "");
                    v6633.XmlNode = va4559;
                    IS.SetModifiedPropertiesToXml(v6633, va4559, vaef77);
                    this.XmlNode.appendChild(va4559);
                }
            }
            if (vaef77 && this.Parent != null && this.Parent.XmlNode != null) {
                var v86b70 = this.Parent.XmlNode.selectSingleNode(this.XmlNode.nodeName);
                if (v86b70 != null) this.Parent.XmlNode.removeChild(v86b70);
                this.Parent.XmlNode.appendChild(this.XmlNode);
            }
        }
    };
    return v11461;
}
var oIdx = -1;

function ISBaseControl() {
    ISObject.call(this);
    oIdx++;
    this.Index = oIdx;
    this.Register = function(v23b77) {
        ISEvent.Raise(window.OnIntersoftControlRegister, v23b77);
        IS.RuntimeObjects[IS.RuntimeObjects.length] = v23b77;
    };
}
function ISControl(v2a018) {
    if (v2a018 == null) return;
    this.FrameObj = null;
    if (this.RequiredFrameworkVersion) {
        if (!IS.CheckRequiredFrameworkVersion(this.RequiredFrameworkVersion)) {
            alert(this.ClassName + " component requires WebUI.NET Framework Version " + this.RequiredFrameworkVersion + ", current Framework Version is " + IS.FrameworkVersion + "\nPlease update the Framework by using Update Manager.");
        }
    }
    with (document) {
        this.HtmlObj = getElementById(v2a018);
        this.FrameObj = getElementById(v2a018 + IS.FrameSuffix);
    }
    if (!this.FrameObj) this.FrameObj = this.HtmlObj;
    this.XmlDt = ISXml.GetElementById(v2a018 + IS.XmlSuffix);
    var v58349 = IS.CheckXmlCompression(this.XmlDt);
    if (v58349) this.XmlDt = v58349;
    if (this.XmlDt) {
        var v02275 = ISXml.GetAttribute(this.XmlDt.documentElement, "xmlInputHiddenUniqueID");
        if (v02275) {
            this.xmlInputHiddenUniqueID = v02275;
            this.XmlDt.documentElement.removeAttribute("xmlInputHiddenUniqueID");
        }
    }
    if (this.HtmlObj != null) {
        if (this.HtmlObj.form == null) {
            var ve3336 = this.HtmlObj.parentNode;
            while (ve3336 != null) {
                if (ve3336.tagName != "FORM") ve3336 = ve3336.parentNode;
                else {
                    this.HtmlObj.form = ve3336;
                    break;
                }
            }
        }
    }
    this.Id = v2a018;
    this.LastAction = "";
    this.IsInit = false;
    this.ServerUniqueID = "";
    this.XmlCompressionEnabled = false;
    this.Events = null;
    this.EnableWebResources = "Auto";
    this.UseWebResourcesForClient = false;
    this.UseWebResourcesForScript = false;
    this.WebResourceIdentifier = "F";
    this.ContentEncoding = "Unicode";
    this.SharedScriptDirectory = "/CommonLibrary/Shared/";
    if (typeof (IS_ReleaseType) != "undefined" && IS_ReleaseType == "Beta") this.SharedScriptDirectory = "/CommonLibraryBeta/Shared/";
    ISBaseControl.call(this);
    this.IsOnPostInitialized = false;
    this.OnPostInitialized = function() { };
    this.ReBindingPostBackData = function() { };
    this.PrepareAdditionalPostBackData = function() { };
    this.PreparePostBackData = function(v73918) {
        this.ReBindingPostBackData(v73918);
        if (!this.xmlInputHiddenUniqueID) return;
        var v9bb90 = document.getElementById(this.xmlInputHiddenUniqueID);
        if (v9bb90 == null) v9bb90 = document.getElementById(this.xmlInputHiddenUniqueID.replace(/:/g, "_"));
        if (v9bb90 == null) v9bb90 = document.getElementById(this.xmlInputHiddenUniqueID.replace(/\$/g, "_"));
        if (v9bb90) {
            if (typeof (this.CustomStateString) == "string") v9bb90.value = escape(this.CustomStateString);
            else v9bb90.value = escape(this.XmlDt.documentElement.xml);
        }
        this.PrepareAdditionalPostBackData(v73918);
    };
    if (this.XmlDt) {
        var vc2a47 = this.XmlDt.documentElement;
        if (vc2a47) {
            var v0f773 = vc2a47.selectSingleNode("ClientSideEvents");
            if (v0f773) {
                this.Events = ISEvent.Register(this.HtmlObj, v0f773);
                v0f773.parentNode.removeChild(v0f773);
            }
        }
    }
    this.SetFocus = function() {
        if (this.FrameObj) {
            this.FrameObj.focus();
        }
    };
    this.Hide = function() {
        if (this.FrameObj) {
            this.FrameObj.style.display = "none";
        }
    };
    this.Show = function() {
        if (this.FrameObj) {
            this.FrameObj.style.display = "";
        }
    };
    this.GetFrameElement = function() {
        return this.FrameObj;
    };
    this.GetControlElement = function() {
        return this.HtmlObj;
    };
    this.ResolveImagePath = this._ResolveImagePath = function(v43c54, v1e731) {
        var v28f73 = "";
        if (v1e731 != "") {
            if (v1e731.substring(0, 1) == "/" || v1e731.substring(0, 1) == "." || v1e731.indexOf("ISRes") > -1) v28f73 = v1e731;
            else {
                if (this.UseWebResourcesForClient) {
                    v28f73 = v1e731.replace("/", ".");
                    v28f73 = IS.GetAppDomainPath() + "ISRes.axd?" + this.WebResourceIdentifier + "/" + v28f73;
                } else v28f73 = v43c54 + v1e731;
            }
        }
        if (IS.ie && v28f73 != "") {
            if (document.location.protocol.toLowerCase() == "https:") {
                var v96d48 = IS.GetAppDomainPath();
                if ((v28f73.indexOf(v96d48) > -1 && v96d48.length > 1) || v28f73.substring(0, 1) == "/") v96d48 = "";
                v28f73 = "https://" + document.location.host + v96d48 + v28f73;
            }
        }
        return v28f73;
    };
    this.ResolveScriptPath = function(v43c54, v5a641) {
        if (v43c54 == this.ScriptDirectory) {
            if (this.UseWebResourcesForScript) {
                v5a641 = v5a641.replace("/", ".");
                return "ISRes.axd?" + this.WebResourceIdentifier + "/" + v5a641 + "/01";
            } else return v43c54 + v5a641;
        } else return v43c54 + v5a641;
    };
    this.GetServerID = function() {
        var vce937 = this.ServerUniqueID;
        var v29f7 = vce937.lastIndexOf("$");
        return vce937.substring(v29f7 + 1);
    };
    this.IsUnicodeEncoding = function() {
        return this.ContentEncoding.indexOf("Unicode") > -1;
    };
    this.Register(this);
}
var ISPosLib = {
    getIeBox: function(v3fc40) {
        return this.ie && v3fc40.document.compatMode != "CSS1Compat";
    },
    getClientLeft: function(v6a440) {
        if (IS.ie) {
            var v40240 = v6a440.getBoundingClientRect();
            return v40240.left - this.getBorderLeftWidth(this.getCanvasElement(v6a440));
        } else return ISMoz.GetClientLeft(v6a440);
    },
    getClientTop: function(vce660) {
        if (IS.ie) {
            var v01c60 = vce660.getBoundingClientRect();
            return v01c60.top - this.getBorderTopWidth(this.getCanvasElement(vce660));
        } else return ISMoz.GetClientTop(vce660);
    },
    getLeft: function(vb3379) {
        var v45960 = this.getCanvasElement(vb3379);
        var v23489 = v45960.scrollLeft;
        var vdfd25 = 0;
        return this.getClientLeft(vb3379) + v23489 - vdfd25;
    },
    getRight: function(veaa79) {
        return this.getLeft(veaa79) + this.getWidth(veaa79);
    },
    getRightW3C: function(v50579) {
        return this.getLeftW3C(v50579) + this.getWidth(v50579);
    },
    getTop: function(v8bb79) {
        return this.getClientTop(v8bb79) + this.getCanvasElement(v8bb79).scrollTop;
    },
    getTopW3C: function(vd1079) {
        var v7fa79 = 0;
        if (IS.IsXHTMLDocType()) {
            v7fa79 = this.getClientTop(vd1079);
            if (IS.ie || IS.safari || IS.chrome) v7fa79 += this.getScrollTop(this.getDocumentElement(vd1079));
        } else v7fa79 = this.getTop(vd1079);
        return v7fa79;
    },
    getLeftW3C: function(v1cc35, v06378) {
        var vcb079 = 0;
        var vf1a99 = IS.IsXHTMLDocType();
        if (vf1a99) {
            vcb079 = this.getClientLeft(v1cc35);
            if (IS.ie || IS.safari || IS.chrome) vcb079 += this.getScrollLeft(this.getDocumentElement(v1cc35));
        } else vcb079 = this.getLeft(v1cc35);
        if (IS.ie && v06378) vcb079 = this.getCalcRtlLeft(v1cc35, vcb079);
        return vcb079;
    },
    getCalcRtlLeft: function(v4a110, v71c66) {
        var v24554 = this.getCanvasElement(v4a110);
        v71c66 -= v24554.scrollLeft;
        if (IS.IsXHTMLDocType()) v71c66 -= v24554.scrollLeft;
        else {
            v71c66 -= (v24554.scrollWidth - v24554.clientWidth - v24554.scrollLeft);
            if (v24554.scrollWidth > v24554.offsetWidth) v71c66 += 17;
        }
        return v71c66;
    },
    getBottom: function(v80a29) {
        return this.getTop(v80a29) + this.getHeight(v80a29);
    },
    getBottomW3C: function(vd6829) {
        return this.getTopW3C(vd6829) + this.getHeight(vd6829);
    },
    getInnerLeft: function(v5a829) {
        return this.getLeft(v5a829) + this.getBorderLeftWidth(v5a829);
    },
    getInnerRight: function(v69f29) {
        return this.getRight(v69f29) - this.getBorderRightWidth(v69f29);
    },
    getInnerTop: function(v5b829) {
        return this.getTop(v5b829) + this.getBorderTopWidth(v5b829);
    },
    getInnerBottom: function(v28e29) {
        return this.getBottom(v28e29) - this.getBorderBottomWidth(v28e29);
    },
    getWidth: function(vfe21) {
        var v1cd29 = vfe21.offsetWidth;
        if (v1cd29 == 0) {
            v1cd29 = vfe21.style.pixelWidth;
            if (v1cd29 == 0 || isNaN(v1cd29)) v1cd29 = parseFloat(vfe21.style.width);
            if (v1cd29 == 0 || isNaN(v1cd29)) v1cd29 = parseFloat(vfe21.clientWidth);
            if (isNaN(v1cd29)) v1cd29 = 0;
        }
        return v1cd29;
    },
    getInnerWidth: function(vbb01) {
        return this.getWidth(vbb01) - this.getBorderLeftWidth(vbb01) - this.getBorderRightWidth(vbb01);
    },
    getHeight: function(v26b1) {
        var vf011 = v26b1.offsetHeight;
        if (vf011 == 0) {
            vf011 = v26b1.style.pixelHeight;
            if (vf011 == 0 || isNaN(vf011)) vf011 = parseFloat(v26b1.style.height);
            if (vf011 == 0 || isNaN(vf011)) vf011 = parseFloat(v26b1.clientHeight);
            if (isNaN(vf011)) vf011 = 0;
        }
        return vf011;
    },
    getInnerHeight: function(v1801) {
        return this.getHeight(v1801) - this.getBorderTopWidth(v1801) - this.getBorderBottomWidth(v1801);
    },
    getDocumentElement: function(vcdc1) {
        return vcdc1.ownerDocument || vcdc1.document || window.document;
    },
    getCanvasElement: function(v51285) {
        var va4f1 = v51285.ownerDocument || v51285.document;
        if (va4f1.compatMode == "CSS1Compat" || IS.IsXHTMLDocType()) return va4f1.documentElement;
        else return va4f1.body;
    },
    getBorderLeftWidth: function(vfbb85) {
        if (IS.moz) return 0;
        return vfbb85.clientLeft;
    },
    getBorderRightWidth: function(vc3985) {
        if (IS.moz) return 0;
        return this.getWidth(vc3985) - vc3985.clientLeft - vc3985.clientWidth;
    },
    getBorderTopWidth: function(vae985) {
        if (IS.moz) return 0;
        return vae985.clientTop;
    },
    getBorderBottomWidth: function(v4e185) {
        if (IS.moz) return 0;
        return this.getHeight(v4e185) - v4e185.clientTop - v4e185.clientHeight;
    },
    getScreenLeft: function(v76921) {
        var v28a85 = v76921.ownerDocument || v76921.document;
        var vb4755 = v28a85.parentWindow;
        return vb4755.screenLeft + this.getBorderLeftWidth(this.getCanvasElement(v76921)) + this.getClientLeft(v76921);
    },
    getScreenTop: function(v5fb21) {
        var v1ba21 = v5fb21.ownerDocument || v5fb21.document;
        var vd0424 = v1ba21.parentWindow;
        return vd0424.screenTop + this.getBorderTopWidth(this.getCanvasElement(v5fb21)) + this.getClientTop(v5fb21);
    },
    getCurX: function() {
        if (event) return event.clientX + document.body.scrollLeft;
    },
    getCurY: function() {
        if (event) return event.clientY + document.body.scrollTop;
    },
    getLeftNonIE: function(v2c821) {
        return ISMoz.GetLeft(v2c821);
    },
    getTopNonIE: function(ve9821) {
        return ISMoz.GetTop(ve9821);
    },
    getScrollTop: function(v3804) {
        var v45821 = v3804.body.parentElement || v3804.body.parentNode;
        if (IS.IsXHTMLDocType()) return Math.max(v45821.scrollTop, v3804.body.scrollTop);
        else return v3804.body.scrollTop;
    },
    getScrollLeft: function(v8684) {
        var v5fb4 = v8684.body.parentElement || v8684.body.parentNode;
        if (IS.IsXHTMLDocType()) return Math.max(v5fb4.scrollLeft, v8684.body.scrollLeft);
        else return v8684.body.scrollLeft;
    },
    ApplyIntelligentPosition: function(v54f96, v19913, v80d52, v4b011) {
        var vcf74 = v54f96.Y;
        var v6e665 = v54f96.X;
        var v86d48 = ISPosLib.getDocumentElement(v19913);
        var v15766 = ISPosLib.getCanvasElement(v19913);
        var v3cb88 = false;
        if (vcf74 + ISPosLib.getHeight(v19913) > v15766.clientHeight + ISPosLib.getScrollTop(v86d48)) {
            if (!v80d52) {
                vcf74 = ((v15766.clientHeight + ISPosLib.getScrollTop(v86d48)) - ISPosLib.getHeight(v19913));
                vcf74 -= 4;
            } else {
                vcf74 = ISPosLib.getTopW3C(v80d52) - ISPosLib.getHeight(v19913) - 2;
                if (vcf74 < 1) {
                    if (!v4b011) vcf74 = 1;
                    else {
                        vcf74 = ((v15766.clientHeight + ISPosLib.getScrollTop(v86d48)) - ISPosLib.getHeight(v19913));
                        v3cb88 = true;
                    }
                }
            }
        }
        if (v3cb88) v6e665 += ISPosLib.getWidth(v80d52);
        if (v6e665 + (ISPosLib.getWidth(v19913)) > v15766.clientWidth) {
            if (!v4b011) {
                v6e665 = v15766.clientWidth - ISPosLib.getWidth(v19913);
                v6e665 -= 4;
            } else if (v80d52 != null) {
                v6e665 = ISPosLib.getLeft(v80d52) - ISPosLib.getWidth(v19913) - 4;
            }
        }
        if (vcf74 < 0) vcf74 = 2;
        return new OffsetLocation(v6e665, vcf74);
    }
};
ISPosLib.ua = navigator.userAgent;
ISPosLib.opera = /opera[56789]|opera\/[56789]/i.test(ISPosLib.ua);
ISPosLib.ie = (!ISPosLib.opera) && /MSIE/.test(ISPosLib.ua);
ISPosLib.ie6 = ISPosLib.ie && /MSIE[6789]/.test(ISPosLib.ua);
ISPosLib.moz = !ISPosLib.opera && /gecko/i.test(ISPosLib.ua);

function Dimension(v7f79, va6010, va8d10, vf5826, v5ec34, v8ae20) {
    this.Left = v7f79;
    this.Top = va6010;
    this.Right = va8d10;
    this.Bottom = vf5826;
    this.Width = v5ec34;
    this.Height = v8ae20;
}
var ISDimension = {
    Calc: function(v5944) {
        if (v5944 == null) return;
        with (v5944.style) {
            if (position == "relative") position = "absolute";
            with (ISPosLib) {
                left = getLeft(v5944);
                right = getRight(v5944);
                top = getTop(v5944);
                bottom = getBottom(v5944);
                width = getWidth(v5944);
                height = getHeight(v5944);
            }
        }
    },
    Copy: function(vf924, vab472) {
        if (vf924 == null || vab472 == null) return;
        with (ISDimension) {
            Check(vf924);
            Check(vab472);
        }
        with (vf924.style) {
            vab472.style.width = width;
            vab472.style.height = height;
            vab472.style.top = top;
            vab472.style.left = left;
            vab472.style.right = parseFloat(left) + parseFloat(width) + "px";
            vab472.style.bottom = parseFloat(top) + parseFloat(height) + "px";
        }
    },
    Save: function(v06660, vee551) {
        if (vee551 == null) return;
        with (v06660.style) {
            with (vee551) {
                Left = parseFloat(left);
                Right = parseFloat(right);
                Top = parseFloat(top);
                Bottom = parseFloat(bottom);
                Width = parseFloat(width);
                Height = parseFloat(height);
            }
        }
    },
    Retrieve: function(v6a543, vb0691) {
        if (vb0691 == null) return;
        with (v6a543.style) {
            with (vb0691) {
                left = Left;
                right = Left + Width;
                top = Top;
                bottom = Top + Height;
                width = Width;
                height = Height;
            }
        }
    },
    Check: function(v92843) {
        if (v92843 == null) return;
        with (v92843.style) {
            if (position == "relative" || position == "static") ISDimension.Calc(v92843);
        }
    },
    CalcStyleDimension: function(v61843) {
        if (v61843 == null) return;
        with (v61843) {
            style.left = offsetLeft;
            style.top = offsetTop;
            style.width = offsetWidth;
            style.height = offsetHeight;
            style.right = offsetWidth + offsetLeft;
            style.bottom = offsetHeight + offsetTop;
            if (style.position == "relative") style.position = "absolute";
        }
    }
};

function Listener(v82f48, v44a29, v8d444) {
    this.fp = v82f48;
    this.scope = v44a29;
    this.remove = v8d444;
}
Listener.Add = function(oSource, sEvent, fpDest, oScope, bRunOnce) {
    if (!oSource[sEvent] || oSource[sEvent] == null || !oSource[sEvent]._listeners) {
        oSource[sEvent] = function() {
            return Listener.Fire(oSource, sEvent, arguments);
        };
        if (IS.safari && oSource[sEvent] == null) {
            setTimeout(function() {
                Listener.Add(oSource, sEvent, fpDest, oScope, bRunOnce);
            },
            100);
            return;
        }
        oSource[sEvent]._listeners = new Array();
    }
    var idx = this.FindForEvent(oSource[sEvent], fpDest, oScope);
    if (idx == -1) idx = oSource[sEvent]._listeners.length;
    oSource[sEvent]._listeners[idx] = new Listener(fpDest, oScope, bRunOnce);
};
Listener.Append = function(index, oSource, sEvent, fpDest, oScope, bRunOnce) {
    if (!oSource[sEvent] || oSource[sEvent] == null || !oSource[sEvent]._listeners) {
        oSource[sEvent] = function() {
            try {
                return Listener.Fire(oSource, sEvent, arguments);
            } catch (e) {
                alert(e.description);
                return true;
            }
        };
        oSource[sEvent]._listeners = new Array();
    }
    var idx = this.FindForEvent(oSource[sEvent], fpDest, oScope);
    if (idx == -1) {
        var lstr = oSource[sEvent]._listeners;
        idx = lstr.length;
        if (idx > 0) {
            if (index < idx) {
                var nLstr = new Array(idx + 1);
                var oIdx = 0;
                for (var i = 0; i < nLstr.length; i++) {
                    if (index != i) {
                        nLstr[i] = lstr[oIdx];
                        oIdx++;
                    }
                }
                oSource[sEvent]._listeners = nLstr;
                idx = index;
            }
        }
    }
    oSource[sEvent]._listeners[idx] = new Listener(fpDest, oScope, bRunOnce);
};
Listener.Remove = function(oSource, sEvent, fpDest, oScope) {
    var idx = this.FindForEvent(oSource[sEvent], fpDest, oScope);
    if (idx != -1) {
        var iLast = oSource[sEvent]._listeners.length - 1;
        oSource[sEvent]._listeners[idx] = oSource[sEvent]._listeners[iLast];
        oSource[sEvent]._listeners.length--;
    }
};
Listener.FindForEvent = function(fpEvent, fpDest, oScope) {
    if (fpEvent && fpEvent._listeners) {
        for (var i = 0; i < fpEvent._listeners.length; i++) {
            if (fpEvent._listeners[i].scope == oScope && fpEvent._listeners[i].fp == fpDest) {
                return i;
            }
        }
    }
    return -1;
};
Listener.Fire = function(oSourceObj, sEvent, args) {
    var lstnr, fp, returnValue, tempReturn;
    var last = null;
    var e;
    try {
        last = oSourceObj[sEvent]._listeners.length - 1;
    } catch (e) {
        return;
    }
    if (IS.moz) e = window.event = args[0];
    else e = window.event;
    if (e == null) {
        try {
            if (IS.ie) e = oSourceObj.document.parentWindow.event;
            else e = oSourceObj.ownerDocument.parentWindow.event;
        } catch (e) { }
    }
    for (var i = last; i >= 0; i--) {
        lstnr = oSourceObj[sEvent]._listeners[i];
        if ((e && !e.cancelBubble) || !e) {
            fp = lstnr.fp;
            tempReturn = fp.apply(lstnr.scope, args);
            if (typeof tempReturn != "undefined") returnValue = tempReturn;
        }
        if (lstnr.remove) Listener.Remove(oSourceObj, sEvent, lstnr.fp, lstnr.scope);
    }
    if (typeof returnValue != "undefined") return returnValue;
};
Listener.Unload = function(oSourceObj) {
    if (oSourceObj == null) return;
    for (var i = 0; i < NtvEvents.length; i++) {
        var ev = NtvEvents[i].toLowerCase();
        if (oSourceObj[ev] != null) {
            oSourceObj[ev] = null;
        }
    }
};
var NtvEvents = new Array();
NtvEvents[0] = "OnActivate";
NtvEvents[1] = "OnAfterUpdate";
NtvEvents[2] = "OnBeforeActivate";
NtvEvents[3] = "OnBeforeDeActivate";
NtvEvents[4] = "OnBeforeEditFocus";
NtvEvents[5] = "OnBeforePaste";
NtvEvents[6] = "OnBeforeUpdate";
NtvEvents[7] = "OnBlur";
NtvEvents[8] = "OnChange";
NtvEvents[9] = "OnClick";
NtvEvents[10] = "OnContextMenu";
NtvEvents[11] = "OnControlSelect";
NtvEvents[12] = "OnDblClick";
NtvEvents[13] = "OnDeActivate";
NtvEvents[14] = "OnErrorUpdate";
NtvEvents[15] = "OnFilterChange";
NtvEvents[16] = "OnFocus";
NtvEvents[17] = "OnFocusin";
NtvEvents[18] = "OnFocusOut";
NtvEvents[19] = "OnHelp";
NtvEvents[20] = "OnKeyDown";
NtvEvents[21] = "OnKeypress";
NtvEvents[22] = "OnKeyUp";
NtvEvents[23] = "OnLoseCapture";
NtvEvents[24] = "OnMouseDown";
NtvEvents[25] = "OnMouseEnter";
NtvEvents[26] = "OnMouseLeave";
NtvEvents[27] = "OnMouseMove";
NtvEvents[28] = "OnMouseOut";
NtvEvents[29] = "OnMouseOver";
NtvEvents[30] = "OnMouseUp";
NtvEvents[31] = "OnMouseWheel";
NtvEvents[32] = "OnPropertyChange";
NtvEvents[33] = "OnReadyStateChange";
NtvEvents[34] = "OnScroll";
NtvEvents[35] = "OnSelect";
NtvEvents[36] = "OnResize";
NtvEvents[37] = "OnDragStart";
NtvEvents[38] = "OnSelectStart";

function IsEvtHdlExist(v25a68) {
    var v8b768;
    try {
        v8b768 = eval(v25a68 + "!=null");
    } catch (ex) {
        v8b768 = false;
    }
    return v8b768;
}
var ISEvent = {
    objEvent: null,
    clientX: 0,
    clientY: 0,
    LastKeyboardType: null,
    LastKeyCode: null,
    MouseDownId: -1,
    ContextMenuCancelled: false,
    LEFT: 1,
    MIDDLE: 4,
    RIGHT: 2,
    IsLeftButton: function(vc4f35) {
        var v72935 = window.event;
        if (!v72935) v72935 = vc4f35;
        if (IS.ie) return (v72935.button == 1);
        else return (v72935.button == 0 || v72935.button == 65535);
    },
    IsMiddleButton: function(ve9d6) {
        var v9916 = window.event;
        if (!v9916) v9916 = ve9d6;
        if (IS.ie) return (v9916.button == 4);
        else return (v9916.button == 1);
    },
    IsRightButton: function(v33a6) {
        var vdfc6 = window.event;
        if (!vdfc6) vdfc6 = v33a6;
        return (vdfc6.button == 2);
    },
    Capture: function(v2d76) {
        with (ISEvent) {
            objEvent = (v2d76 == null) ? window.event : v2d76;
            clientX = v2d76.clientX + v2d76.srcElement.parentNode.scrollLeft;
            clientY = v2d76.clientY + v2d76.srcElement.parentNode.scrollTop;
        }
    },
    Register: function(va3126, vdfd81) {
        var v97c6;
        if (vdfd81 != null) {
            v97c6 = new Object();
            IS.SetProperties(v97c6, vdfd81);
            var vdff71;
            for (var v60623 = 0; v60623 < vdfd81.childNodes.length; v60623++) {
                vdff71 = vdfd81.childNodes[v60623];
                var vd2c17 = ISEvent.Register(va3126, vdff71);
                eval("v97c6." + vdff71.nodeName + "=vd2c17;");
            }
        }
        return v97c6;
    },
    AttachControlEvents: function(v35a65, v2080) {
        if (!v35a65) return;
        var ve5981 = "";
        for (ve5981 in v35a65) {
            var vb8860 = ve5981.toLowerCase();
            Listener.Add(v2080, vb8860, function() {
                ISEvent.RaiseMultiDelegates();
            });
        }
    },
    ValidateHandler: function(v66c92, vc7718) {
        if (v66c92[vc7718].constructor == Array || typeof (v66c92[vc7718]) == "object") {
            var v4211 = false;
            for (var v11c70 = 0; v11c70 < v66c92[vc7718].length; v11c70++) {
                var v89a42 = v66c92[vc7718][v11c70];
                try {
                    var v18844 = v89a42.toString();
                } catch (e) {
                    v4211 = true;
                    break;
                }
            }
            if (v4211) {
                var vf4298 = new Array();
                for (var v11c70 = 0; v11c70 < v66c92[vc7718].length; v11c70++) {
                    var v89a42 = v66c92[vc7718][v11c70];
                    try {
                        var v18844 = v89a42.toString();
                        vf4298.push(v89a42);
                    } catch (e) { }
                }
                v66c92[vc7718] = vf4298;
            }
        }
    },
    AddFunctionHandler: function(v65e31, v99e37, v2d279) {
        if (!v65e31) return;
        try {
            ISEvent.ValidateHandler(v65e31, v99e37);
        } catch (e) {
            v65e31[v99e37] = new Array();
        }
        try {
            if (v65e31[v99e37] == null || v65e31[v99e37] == "") v65e31[v99e37] = new Array();
        } catch (e) { }
        var vd3c76 = true;
        var va4b58 = false;
        if (v2d279.TargetObject != null) va4b58 = true;
        for (var v52794 = 0; v52794 < v65e31[v99e37].length; v52794++) {
            var v7a18 = v65e31[v99e37][v52794];
            if (v7a18.toString() == v2d279.toString()) {
                if (va4b58) {
                    if (v2d279.TargetObject == v7a18.TargetObject) {
                        vd3c76 = false;
                        break;
                    }
                } else {
                    vd3c76 = false;
                    break;
                }
            }
        }
        if (vd3c76) v65e31[v99e37][v65e31[v99e37].length] = v2d279;
    },
    RemoveFunctionHandler: function(v85a42, vbcf95, v9aa49) {
        if (!v85a42) return;
        var vf5f86 = new Array();
        for (var v80416 = 0; v80416 < v85a42[vbcf95].length; v80416++) {
            var v72864 = v85a42[vbcf95][v80416];
            var v0ba15 = v72864.toString().substring(0, v72864.toString().lastIndexOf("("));
            var vfc363 = v9aa49.toString().substring(0, v9aa49.toString().lastIndexOf("("));
            if (v0ba15 != vfc363) vf5f86.push(v72864);
        }
        v85a42[vbcf95] = vf5f86;
    },
    RaiseMultiDelegates: function() {
        var v0de61 = IS.GetRuntimeObjectById(window.event.srcElement.id);
        var vc1f5 = "";
        var v1a116 = "";
        var v02080 = IS.GetEventType();
        for (vc1f5 in v0de61.Events) {
            if (vc1f5.toLowerCase() == "on" + v02080) v1a116 = v0de61.Events[vc1f5];
        }
        if (v1a116 != "") {
            if (v1a116.indexOf(";") < 0) {
                if (v1a116.indexOf("(") < 0) {
                    return eval(v1a116 + "('" + v0de61.Id + "')");
                } else {
                    return eval(v1a116);
                }
            } else {
                var v11085 = v1a116.split(';');
                for (var v2de27 = 0; v2de27 < v11085.length; v2de27++) {
                    var ve9c48 = v11085[v2de27];
                    if (ve9c48.indexOf("(") < 0) {
                        return eval(ve9c48 + "('" + v0de61.Id + "')");
                    } else {
                        return eval(ve9c48);
                    }
                }
            }
        }
    },
    IsNative: function(vb9836) {
        var va1517 = false;
        for (var vd6c84 = 0; vd6c84 < NtvEvents.length; vd6c84++) {
            if (NtvEvents[vd6c84] == vb9836) {
                va1517 = true;
                break;
            }
        }
        return va1517;
    },
    IsDirtyKeyboardEvent: function() {
        var v98e56 = window.event;
        var va1e3 = IS.ie ? v98e56.type : IS.mozEventType;
        with (ISEvent) {
            if (LastKeyboardType == null || LastKeyboardType != va1e3 || LastKeyCode != v98e56.keyCode) {
                LastKeyboardType = va1e3;
                LastKeyCode = v98e56.keyCode;
                return false;
            } else return true;
        }
    },
    GetName: function(ve3e92) {
        var v5ab92 = window.event;
        var vfc973 = null;
        if (v5ab92) vfc973 = IS.ie ? v5ab92.type : IS.mozEventType;
        var v83054 = null;
        if (ve3e92 == null || ve3e92 == "") ve3e92 = vfc973;
        else {
            if (ve3e92.indexOf("On") > -1) return ve3e92;
        }
        switch (ve3e92) {
            case "c":
            case "click":
                v83054 = "OnClick";
                break;
            case "dc":
            case "dblclick":
                v83054 = "OnDblClick";
                break;
            case "md":
            case "mousedown":
                v83054 = "OnMouseDown";
                break;
            case "mm":
            case "mousemove":
                v83054 = "OnMouseMove";
                break;
            case "mout":
            case "mouseout":
                v83054 = "OnMouseOut";
                break;
            case "mover":
            case "mouseover":
                v83054 = "OnMouseOver";
                break;
            case "mu":
            case "mouseup":
                v83054 = "OnMouseUp";
                break;
        }
        return v83054;
    },
    Raise: function() {
        var v27311 = true;
        var evtHandler, params;
        evtHandler = arguments[0];
        try {
            if (evtHandler == null || evtHandler == "") return v27311;
        } catch (e) { }
        if (typeof (evtHandler) == "function") {
            v27311 = evtHandler(arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
            if (v27311 == null) v27311 = true;
            return v27311;
        } else if (evtHandler.constructor == Array || typeof (evtHandler) == "object") {
            for (var vae682 = 0; vae682 < evtHandler.length; vae682++) {
                var ve2c20 = evtHandler[vae682];
                if (ve2c20 == null) continue;
                v27311 = ve2c20(arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
                if (v27311 == null) v27311 = true;
                if (!v27311) break;
            }
            return v27311;
        }
        params = "";
        for (var vae682 = 1; vae682 < arguments.length; vae682++) {
            if (arguments[vae682] != null) {
                if (arguments[vae682].constructor == String) params = params + "'" + escape(arguments[vae682]) + "',";
                else params = params + "arguments[" + vae682 + "],";
            } else params = params + "null,";
        }
        if (params.length > 0) params = "(" + params.substr(0, params.length - 1) + ")";
        if (evtHandler.indexOf(";") > -1) {
            var vc0428 = evtHandler.split(';');
            for (var vc3a60 = 0; vc3a60 < vc0428.length; vc3a60++) {
                var vba938 = vc0428[vc3a60];
                if (vba938.indexOf("(") == -1) vba938 += params;
                v27311 = eval(vba938);
                if (v27311 == null) v27311 = true;
                if (!v27311) break;
            }
        } else {
            if (evtHandler.indexOf("(") == -1) evtHandler += params;
            v27311 = eval(evtHandler);
        }
        if (v27311 == null) v27311 = true;
        return v27311;
    }
};
if (!IS.ie) {
    ISEvent.LEFT = 0;
    ISEvent.MIDDLE = 1;
    ISEvent.RIGHT = 2;
}
var ISShiftSymbol = new Array();
var ISUnShiftSymbol = new Array();
ISShiftSymbol[0] = new Array("~", 192);
ISShiftSymbol[1] = new Array("!", 49);
ISShiftSymbol[2] = new Array("@", 50);
ISShiftSymbol[3] = new Array("#", 51);
ISShiftSymbol[4] = new Array("$", 52);
ISShiftSymbol[5] = new Array("%", 53);
ISShiftSymbol[6] = new Array("^", 54);
ISShiftSymbol[7] = new Array("&", 55);
ISShiftSymbol[8] = new Array("*", 56);
ISShiftSymbol[9] = new Array("(", 67);
ISShiftSymbol[10] = new Array(")", 48);
if (IS.ie) {
    ISShiftSymbol[11] = new Array("_", 189);
    ISShiftSymbol[12] = new Array("+", 187);
} else {
    ISShiftSymbol[11] = new Array("_", 109);
    ISShiftSymbol[12] = new Array("+", 61);
}
ISShiftSymbol[13] = new Array("|", 220);
ISShiftSymbol[14] = new Array("{", 219);
ISShiftSymbol[15] = new Array("}", 221);
if (IS.ie) ISShiftSymbol[16] = new Array(":", 186);
else ISShiftSymbol[16] = new Array(":", 59);
ISShiftSymbol[17] = new Array("\"", 222);
ISShiftSymbol[18] = new Array("<", 188);
ISShiftSymbol[19] = new Array(">", 190);
ISShiftSymbol[20] = new Array("?", 191);
ISUnShiftSymbol[0] = new Array("`", 192);
ISUnShiftSymbol[1] = new Array("-", 189);
if (IS.ie) ISUnShiftSymbol[2] = new Array("=", 187);
else ISUnShiftSymbol[2] = new Array("=", 61);
ISUnShiftSymbol[3] = new Array("\\", 220);
ISUnShiftSymbol[4] = new Array("[", 219);
ISUnShiftSymbol[5] = new Array("]", 221);
if (IS.ie) ISUnShiftSymbol[6] = new Array(";", 186);
else ISUnShiftSymbol[6] = new Array(";", 59);
ISUnShiftSymbol[7] = new Array("'", 222);
ISUnShiftSymbol[8] = new Array(",", 188);
ISUnShiftSymbol[9] = new Array(".", 190);
ISUnShiftSymbol[10] = new Array("/", 191);
ISUnShiftSymbol[11] = new Array("/", 111);
ISUnShiftSymbol[12] = new Array("*", 106);
ISUnShiftSymbol[13] = new Array("-", 109);
ISUnShiftSymbol[14] = new Array("+", 107);
ISUnShiftSymbol[15] = new Array(".", 110);
var ISKeyboardKey = {
    ENTER: 13,
    TAB: 9,
    UP: 38,
    DOWN: 40,
    LEFT: 37,
    RIGHT: 39,
    SPACE: 32,
    SHIFT: 16,
    CTRL: 17,
    ALT: 18,
    ESC: 27,
    F1: 112,
    F2: 113,
    F3: 114,
    F4: 115,
    F5: 116,
    F6: 117,
    F7: 118,
    F8: 119,
    F9: 120,
    F10: 121,
    F11: 122,
    F12: 123,
    DELETE: 46,
    BACKSPACE: 8,
    INSERT: 45,
    HOME: 36,
    END: 35,
    PAGE_UP: 33,
    PAGE_DOWN: 34,
    NUM_LOCK: 144,
    NUMPAD0: 96,
    NUMPAD1: 97,
    NUMPAD2: 98,
    NUMPAD3: 99,
    NUMPAD4: 100,
    NUMPAD5: 101,
    NUMPAD6: 102,
    NUMPAD7: 103,
    NUMPAD8: 104,
    NUMPAD9: 105,
    NUMPAD_DIVIDE: 111,
    NUMPAD_MULTIPLY: 106,
    NUMPAD_MINUS: 109,
    NUMPAD_PLUS: 107,
    IsSpecialKey: function(v12c79) {
        return ((v12c79 >= 112 && v12c79 <= 123) || v12c79 == 13 || v12c79 == 32);
    },
    IsDirection: function(v87879) {
        if (v87879 == null) v87879 = window.event.keyCode;
        return (37 <= v87879 && v87879 <= 40);
    },
    IsLetter: function(v5f479) {
        if (v5f479 == null) v5f479 = window.event.keyCode;
        return (65 <= v5f479 && v5f479 <= 90);
    },
    IsUpperCaseLetter: function(vbad79, vc0888) {
        if (vc0888 == null) vc0888 = window.event;
        if (vbad79 == null) vbad79 = vc0888.keyCode;
        return (65 <= vbad79 && vbad79 <= 90 && !vc0888.shiftKey);
    },
    IsLowerCaseLetter: function(veb179, v8bf88) {
        if (v8bf88 == null) v8bf88 = window.event;
        if (veb179 == null) veb179 = window.event.keyCode;
        return (65 <= veb179 && veb179 <= 90 && v8bf88.shiftKey);
    },
    IsNumber: function(ve1079, v4c688) {
        if (v4c688 == null) v4c688 = window.event;
        if (ve1079 == null) ve1079 = window.event.keyCode;
        return ((48 <= ve1079 && ve1079 <= 57 && !v4c688.shiftKey) || (96 <= ve1079 && ve1079 <= 105));
    },
    IsShiftSymbol: function(v2c079, v9cb88) {
        if (v9cb88 == null) v9cb88 = window.event;
        if (!v9cb88.shiftKey) return false;
        if (v2c079 == null) v2c079 = v9cb88.keyCode;
        var v60879 = false;
        for (var vad988 = 0; vad988 < ISShiftSymbol.length; vad988++) {
            if (ISShiftSymbol[vad988][1] == v2c079) {
                v60879 = true;
                break;
            }
        }
        return v60879;
    },
    IsUnShiftSymbol: function(v5db35, v59167) {
        if (v59167 == null) v59167 = window.event;
        if (v59167.shiftKey) return false;
        if (v5db35 == null) v5db35 = v59167.keyCode;
        var vbaa63 = false;
        for (var v75e28 = 0; v75e28 < ISUnShiftSymbol.length; v75e28++) {
            if (ISUnShiftSymbol[v75e28][1] == v5db35) {
                vbaa63 = true;
                break;
            }
        }
        return vbaa63;
    },
    IsSymbol: function(vc2f18, v13c7) {
        return (ISKeyboardKey.IsShiftSymbol(vc2f18, v13c7) || ISKeyboardKey.IsUnShiftSymbol(vc2f18, v13c7));
    },
    GetChar: function(v4d729, v8d366, v48c3) {
        var v5aa74 = "";
        if (v8d366 == null) v8d366 = window.event;
        if (v4d729 == null) v4d729 = v8d366.keyCode;
        ISUnShiftSymbol[15][0] = v48c3 != null ? v48c3 : ".";
        if (ISKeyboardKey.IsLetter(v4d729)) {
            v5aa74 = String.fromCharCode(v4d729);
            if (!v8d366.shiftKey) v5aa74 = v5aa74.toLowerCase();
        } else {
            if (ISKeyboardKey.IsNumber(v4d729)) {
                if (48 <= v4d729 && v4d729 <= 57) v5aa74 = v4d729 - 48;
                else if (96 <= v4d729 && v4d729 <= 105) v5aa74 = v4d729 - 96;
                v5aa74 = v5aa74.toString();
            } else {
                if (v8d366.shiftKey) {
                    for (var vbbb86 = 0; vbbb86 < ISShiftSymbol.length; vbbb86++) {
                        if (ISShiftSymbol[vbbb86][1] == v4d729) {
                            v5aa74 = ISShiftSymbol[vbbb86][0];
                            break;
                        }
                    }
                } else {
                    for (var vbbb86 = 0; vbbb86 < ISUnShiftSymbol.length; vbbb86++) {
                        if (ISUnShiftSymbol[vbbb86][1] == v4d729) {
                            v5aa74 = ISUnShiftSymbol[vbbb86][0];
                            break;
                        }
                    }
                }
            }
        }
        return v5aa74;
    }
};

function WindowInfo() {
    this.IsEnabled = true;
    this.DisplayPosition = this.DisplayType = this.OffsetControlID = this.ControlID = "";
    this.X = this.Y = this.Width = this.Height = 0;
    this.OffsetLocation = new OffsetLocation();
    this.OffsetControl = null;
    this.IsRelFromOffsetControl = false;
    this.GetWindowType = function() {
        if (IS.ie) {
            if (this.DisplayType == null || this.DisplayType == "") return "Normal";
            else return this.DisplayType;
        } else return "Normal";
    };
};

function OffsetLocation(v78c4, va549) {
    this.X = this.Y = 0;
    this.IsEmpty = function() {
        return (this.X == 0 && this.Y == 0);
    };
    this.Parse = function(vc7d39) {
        if (!vc7d39) return;
        var v5f34 = vc7d39.split(",");
        this.X = parseFloat(v5f34[0]);
        this.Y = parseFloat(v5f34[1]);
    };
    if (v78c4) this.X = v78c4;
    if (va549) this.Y = va549;
};
var WindowEngine = {
    Register: function(v42f20, v9cf14, ve127) {
        var v08b85;
        if (v42f20 != null) {
            v08b85 = new WindowInfo();
            WindowEngine.AssignProperties(v08b85, v42f20);
            var vc0545 = document.getElementById(v08b85.ControlID);
            if (v9cf14 != null && ve127 != null) {
                v9cf14 = parseFloat(v9cf14);
                v08b85.Width = isNaN(v9cf14) ? 0 : v9cf14;
                ve127 = parseFloat(ve127);
                v08b85.Height = isNaN(ve127) ? 0 : ve127;
            } else {
                if (vc0545) {
                    v08b85.Width = ISPosLib.getWidth(vc0545);
                    v08b85.Height = ISPosLib.getHeight(vc0545);
                }
            }
            if (v08b85.GetWindowType() == "Popup" && IS.ie) {
                v08b85.Popup = window.createPopup();
                if (vc0545) {
                    with (v08b85.Popup.document.body) {
                        topMargin = bottomMargin = leftMargin = rightMargin = 0;
                        innerHTML = vc0545.outerHTML;
                    }
                }
            } else v08b85.Popup = new WindowPopup(v08b85);
            if (vc0545) vc0545.style.display = "none";
        }
        return v08b85;
    },
    AssignProperties: function(v3b995, v6183) {
        if (v3b995 != null && v6183 != null) {
            IS.SetProperties(v3b995, v6183);
            if (!IS.ie) v3b995.DisplayType = "Normal";
            var v43e40 = v6183.selectSingleNode("OffsetLocation");
            IS.SetProperties(v3b995.OffsetLocation, v43e40);
        }
    },
    AssignPropertiesToXml: function(vaf395, v67b3) {
        if (vaf395 != null && v67b3 != null) {
            IS.SetPropertiesToXml(vaf395, v67b3);
            var v23695 = v67b3.selectSingleNode("OffsetLocation");
            IS.SetPropertiesToXml(vaf395.OffsetLocation, v23695);
        }
    },
    ShowById: function(v2ee79, ve3343) {
        var v61495 = IS.GetRuntimeObjectById(v2ee79);
        if (v61495 == null) return;
    },
    Show: function(v99215, vad912) {
        if (v99215 == null) return;
        if (v99215.IsEnabled) {
            if (typeof (v99215.Popup.Init) == "function") v99215.Popup.Init();
            if (!vad912) WindowEngine.CalcLocation(v99215);
            v99215.Popup.show(v99215.X, v99215.Y, parseFloat(v99215.Width), parseFloat(v99215.Height));
        }
    },
    Hide: function(v9b615) {
        if (v9b615 == null) return;
    },
    CalcLocation: function(v1ad51) {
        if (v1ad51.IsEnabled) {
            var v40b15 = new OffsetLocation();
            with (v1ad51) {
                var v38512 = document.getElementById(OffsetControlID);
                var v85926 = v1ad51.Popup.document.getElementById(ControlID);
                if (v38512) {
                    v1ad51.OffsetControl = v38512;
                    var d, v;
                    if (v85926) {
                        with (v85926.style) {
                            d = display;
                            v = visibility;
                            display = "";
                            visibility = "visible";
                        }
                        v1ad51.Width = ISPosLib.getWidth(v85926);
                        v1ad51.Height = ISPosLib.getHeight(v85926);
                    }
                    WindowEngine._InitOffsetLocation(v40b15, v38512, v1ad51.Width, v1ad51.Height, DisplayPosition, v1ad51);
                    if (v85926) {
                        with (v85926.style) {
                            display = d;
                            visibility = v;
                        }
                    }
                    var vdf338 = OffsetLocation.X != null ? parseFloat(OffsetLocation.X) : 0;
                    var v0a785 = OffsetLocation.Y != null ? parseFloat(OffsetLocation.Y) : 0;
                    v1ad51.X = vdf338 + v40b15.X;
                    v1ad51.Y = v0a785 + v40b15.Y;
                }
            }
        }
    },
    _InitOffsetLocation: function(v9e19, v7ab11, vedb45, vcd865, va6d6, v3bc72) {
        var v1ef70 = 0;
        var vafe91 = 0;
        var vad511 = ISPosLib.getWidth(v7ab11);
        var v87841 = ISPosLib.getHeight(v7ab11);
        vedb45 = parseFloat(vedb45);
        vcd865 = parseFloat(vcd865);
        if (v3bc72.IsRelFromOffsetControl == false) {
            if (v3bc72.GetWindowType() == "Normal") {
                v1ef70 = ISPosLib.getLeft(v7ab11);
                vafe91 = ISPosLib.getTop(v7ab11);
            } else {
                v1ef70 = ISPosLib.getScreenLeft(v7ab11);
                vafe91 = ISPosLib.getScreenTop(v7ab11);
            }
            switch (va6d6) {
                case "Left":
                    v9e19.X = v1ef70 - vedb45;
                    v9e19.Y = vafe91;
                    break;
                case "LeftTop":
                    v9e19.X = v1ef70 - vedb45;
                    v9e19.Y = vafe91 - vcd865;
                    break;
                case "LeftBottom":
                    v9e19.X = v1ef70 - vedb45;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Right":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91;
                    break;
                case "RightTop":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91 - vcd865;
                    break;
                case "RightBottom":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Top":
                    v9e19.X = v1ef70;
                    v9e19.Y = vafe91 - vcd865;
                    break;
                case "Bottom":
                    v9e19.X = v1ef70;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Center":
                    v9e19.X = v1ef70 + (vad511 / 2);
                    v9e19.Y = vafe91 + (vad511 / 2);
                    break;
            }
        } else {
            var vec27 = v3bc72.Popup.document.getElementById(v3bc72.ControlID);
            if (vec27 == null) vec27 = document.getElementById(v3bc72.ControlID);
            v1ef70 = v7ab11.offsetLeft;
            vafe91 = v7ab11.offsetTop;
            if (v1ef70 == 0 && vafe91 == 0) {
                v1ef70 = ISPosLib.getLeftW3C(v7ab11);
                vafe91 = ISPosLib.getTopW3C(v7ab11);
            }
            var v18153 = vec27.currentStyle.display;
            var vae923 = v3bc72.Width;
            var v5ec24 = v3bc72.Height;
            if (vae923 == 0 || v5ec24 == 0) {
                if (v18153 == "none") vec27.style.display = "";
                if (vae923 == 0) vae923 = ISPosLib.getWidth(vec27);
                if (v5ec24 == 0) v5ec24 = ISPosLib.getHeight(vec27);
                if (v18153 == "none") vec27.style.display = "none";
            }
            switch (va6d6) {
                case "Left":
                    v9e19.Y = vafe91;
                    v9e19.X = v1ef70 - vae923;
                    break;
                case "LeftTop":
                    v9e19.Y = vafe91 - v5ec24;
                    v9e19.X = v1ef70 - vae923;
                    break;
                case "LeftBottom":
                    v9e19.X = v1ef70 - vae923;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Right":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91;
                    break;
                case "RightTop":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91 - v5ec24;
                    break;
                case "RightBottom":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Top":
                    v9e19.Y = vafe91 - v5ec24;
                    v9e19.X = v1ef70;
                    break;
                case "Bottom":
                    v9e19.X = v1ef70;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Center":
                    v9e19.X = ((v1ef70 + vad511) / 2) * -1;
                    v9e19.Y = ((vafe91 + v87841) / 2) * -1;
                    break;
            }
        }
    }
};

function ClientEditor() {
    this.AccessKey = 113;
    this.EnterValueKey = 13;
    this.SwitchKey = 17;
    this.IsEnabled = false;
    this.IsCollaborateWithHighLight = true;
    this.WindowInfo = this.Styles = this.CId = null;
    this.IsUICreated = false;
    this.IsActive = false;
    this.Behavior = null;
}
function Settings() {
    this.Directory = null;
}
function CommonElementClientSideEvents() {
    this.OnClick = this.OnDblClick = this.OnMouseDown = this.OnMouseMove = this.OnMouseOut = this.OnMouseOver = this.OnMouseUp = null;
}
function DynamicStyle(ve0639, v2c378, vfc048) {
    this.Normal = this.Active = this.Over = "";
    this.Object = null;
    if (ve0639) this.Normal = ve0639;
    if (v2c378) this.Over = v2c378;
    if (vfc048) this.Active = vfc048;
    this.SetToNormal = function() {
        if (this.Object != null) DynamicStyleEngine.SetToStyle(null, this, this.Object);
    };
    this.SetToActive = function() {
        if (this.Object != null) DynamicStyleEngine.SetToActiveStyle(null, this, this.Object);
    };
    this.SetToOver = function() {
        if (this.Object != null) DynamicStyleEngine.SetToOverStyle(null, this, this.Object);
    };
    this.GetCurrentState = function() {
        if (this.Object != null) {
            if (this.Object.className == this.Normal) return "Normal";
            else if (this.Object.className == this.Over) return "Over";
            else if (this.Object.className == this.Active) return "Active";
        }
    };
}
var DynamicStyleEngine = {
    _o: null,
    Assign: function(vde71, v0f287) {
        var v30d65;
        if (vde71 != null) {
            v30d65 = new DynamicStyle();
            IS.SetProperties(v30d65, vde71);
            if (v0f287) v30d65.Object = v0f287;
        }
        return v30d65;
    },
    AssignFromArray: function(v2d584, vb8027, v2dd89) {
        for (var v71584 = 0; v71584 < v2dd89.length; v71584++) {
            var v03227 = vb8027.selectSingleNode(v2dd89[v71584]);
            if (v03227) {
                v2d584[v2dd89[v71584]] = DynamicStyleEngine.Assign(v03227);
                vb8027.removeChild(v03227);
            }
        }
    },
    _GetElementToSet: function(v92476) {
        var v91b40;
        if (DynamicStyleEngine._o != null) {
            if (DynamicStyleEngine._o.id == v92476) v91b40 = DynamicStyleEngine._o;
            else v91b40 = document.getElementById(v92476);
        } else v91b40 = document.getElementById(v92476);
        return v91b40;
    },
    SetToActiveStyle: function(vdb159, vdce16, v62341) {
        var ve9e59 = v62341 == null ? DynamicStyleEngine._GetElementToSet(vdb159) : v62341;
        if (ve9e59 != null && vdce16 != null) ve9e59.className = vdce16.Active;
    },
    SetToOverStyle: function(v0d387, v22e34, v07563) {
        var vcda51 = v07563 == null ? DynamicStyleEngine._GetElementToSet(v0d387) : v07563;
        if (vcda51 != null && v22e34 != null) vcda51.className = v22e34.Over;
    },
    SetToStyle: function(v3956, v1b843, v01e30) {
        var vf8d6 = v01e30 == null ? DynamicStyleEngine._GetElementToSet(v3956) : v01e30;
        if (vf8d6 != null && v1b843 != null) vf8d6.className = v1b843.Normal;
    },
    AddStyleRule: function(v51a90, vbd684, v33c79) {
        if (v33c79 != null && v51a90 != null) {
            IS.AddStyleRule(v51a90, vbd684, v33c79.Active);
            IS.AddStyleRule(v51a90, vbd684, v33c79.Over);
            IS.AddStyleRule(v51a90, vbd684, v33c79.Normal);
        }
    },
    GetStyleText: function(v4d661, v86d22, v0f815) {
        var vb8a61 = "";
        if (v86d22) {
            vb8a61 = IS.GetStyleText(v4d661, v86d22.Active, v0f815);
            vb8a61 += IS.GetStyleText(v4d661, v86d22.Over, v0f815);
            vb8a61 += IS.GetStyleText(v4d661, v86d22.Normal, v0f815);
        }
        return vb8a61;
    }
};
var ISXml = {
    GetAttribute: function(v8af58, v66510) {
        if (v8af58) {
            var vda358 = v8af58.getAttribute(v66510);
            if (vda358 == null) {
                vda358 = v8af58.getAttribute(v66510.toLowerCase());
                if (vda358 == null) vda358 = v8af58.getAttribute(v66510.toUpperCase());
            }
            return vda358;
        }
        return "";
    },
    SetAttribute: function(v98277, vf8020, vece76) {
        if (v98277) {
            var v45f77 = v98277.attributes.getNamedItem(vf8020);
            if (v45f77) v45f77.value = vece76;
            else {
                v45f77 = v98277.attributes.getNamedItem(vf8020.toLowerCase());
                if (v45f77) v45f77.value = vece76;
                else {
                    v45f77 = v98277.attributes.getNamedItem(vf8020.toUpperCase());
                    if (v45f77) v45f77.value = vece76;
                    else v98277.setAttribute(vf8020, vece76);
                }
            }
        }
    },
    GetNode: function(vbae13, v93789) {
        return vbae13.selectSingleNode(v93789);
    },
    GetNodes: function(v4c813, v84689) {
        return v4c813.selectNodes(v84689);
    },
    GetNodeText: function(v8d697, v22b29) {
        var va8113 = ISXml.GetNode(v8d697, v22b29);
        if (va8113) {
            return va8113.text;
        }
        return "";
    },
    SetNodeText: function(v9d197, v95f29, v99743) {
        var va9f97 = ISXml.GetNode(v9d197, v95f29);
        if (va9f97) {
            if (IS.ie) va9f97.text = v99743;
            else va9f97.textContent = v99743;
        }
    },
    CreateNode: function(vdc633, v91b99, va9461, v2ac22) {
        var v54733 = vdc633.createNode(1, va9461, v2ac22);
        v91b99.appendChild(v54733);
        return v54733;
    },
    CreateNodeOnly: function(v75733, v1a899, v2df61) {
        var v3d733 = v75733.createNode(1, v1a899, v2df61);
        return v3d733;
    },
    CreateCDATA: function(v7f333, vb0299, v35b61, vd9e22) {
        var veca33 = v7f333.createNode(1, v35b61, "");
        var v08099 = v7f333.createCDATASection(vd9e22);
        veca33.appendChild(v08099);
        vb0299.appendChild(veca33);
        return veca33;
    },
    RemoveNode: function(v8f619, vb8a45) {
        var vc0b47 = v8f619.selectSingleNode(vb8a45);
        if (vc0b47) {
            v8f619.removeChild(vc0b47);
        }
        return vc0b47;
    },
    GetElementById: function(vdc413) {
        var v4622 = document.getElementById(vdc413);
        if (!v4622) return null;
        var ve6486 = v4622.innerHTML;
        if (ve6486.substring(4, 11) == "[CDATA[") {
            ve6486 = ve6486.substr(ve6486.indexOf("[CDATA[") + 7);
            ve6486 = ve6486.substr(0, ve6486.length - 5);
            if (IS.ie) {
                var v65133 = new ActiveXObject("Microsoft.XMLDOM");
                v65133.loadXML(ve6486);
                return v65133;
            } else {
                ve6486 = ve6486.replace(new RegExp(">\\s*<", "g"), "><");
                ve6486 = ve6486.replace(new RegExp("\"\\s{2,}", "g"), "\" ");
                ve6486 = ve6486.replace(new RegExp("^\\s*"), "");
                ve6486 = ve6486.replace(new RegExp("\\s*$"), "");
                return (new DOMParser()).parseFromString(ve6486, "text/xml");
            }
        }
        return v4622;
    },
    CreateXmlDocument: function() {
        if (IS.ie) return new ActiveXObject("Microsoft.XMLDOM");
        else return (new DOMParser()).parseFromString("<root/>", "text/xml");
    },
    LoadXml: function(v54d13, v55344) {
        v54d13.loadXML(v55344);
    },
    EncodeAmpersand: function(vc5549) {
        return vc5549.replace(/[&]/g, "$isamp;");
    },
    EncodeString: function(vf6332) {
        if (vf6332 == null || typeof (vf6332) == "undefined") return null;
        if (typeof (vf6332) != "string") vf6332 = vf6332.toString();
        var vcb632 = vf6332.replace(/[&]/g, "$isamp;");
        vcb632 = vcb632.replace(/[<]/g, "$isltd;");
        vcb632 = vcb632.replace(/[>]/g, "$isgtd;");
        vcb632 = vcb632.replace(/[+]/g, "$isplus;");
        vcb632 = vcb632.replace(/["]/g, "$isquot;");
        return vcb632;
    },
    DecodeString: function(v5b14) {
        if (typeof (v5b14) != "string") return;
        var vba768 = v5b14.replace(/\$isamp;/g, "&");
        vba768 = vba768.replace(/\$isltd;/g, "<");
        vba768 = vba768.replace(/\$isgtd;/g, ">");
        vba768 = vba768.replace(/\$isplus;/g, "+");
        vba768 = vba768.replace(/\$isquot;/g, "\"");
        return vba768;
    }
};

function IFlyPostBack(v4e898) {
    this.PostViewState = true;
    this.PostHiddenFields = true;
    this.PostInputControls = false;
    this.PostControlState = true;
    this.FormIndex = -1;
    this.FormKey = v4e898;
    this.AdditionalInputs = new Array();
    this.IsFlyPostBackControl = true;
    this.AddInput = function(vb2734, v9fa76) {
        var v5f479 = false;
        for (var vd6f97 = 0; vd6f97 < this.AdditionalInputs.length; vd6f97++) {
            if (this.AdditionalInputs[vd6f97][0] == vb2734) {
                v5f479 = true;
                break;
            }
        }
        if (v5f479) this.AdditionalInputs[vd6f97] = [vb2734, ISXmlHttpEngine.EncodeURL(v9fa76)];
        else this.AdditionalInputs[this.AdditionalInputs.length] = [vb2734, ISXmlHttpEngine.EncodeURL(v9fa76)];
    };
    this.CollectInput = function() {
        var v29e81 = ISXmlHttpEngine.CollectInput();
        for (var vd6f97 = 0; vd6f97 < v29e81.length; vd6f97++) {
            var v27d77 = v29e81[vd6f97];
            this.AddInput(v27d77[0], v27d77[1]);
        }
        for (var vd6f97 = 0; vd6f97 < this.AdditionalInputs.length; vd6f97++) {
            if (this.AdditionalInputs[vd6f97][1] == "!_remove") {
                this.AdditionalInputs.splice(vd6f97, 1);
                vd6f97--;
            }
        }
    };
}
function ISXmlHttp() {
    this.XmlHttp = null;
    this.OnResponse = null;
    this.Control = null;
    this.Asynchronous = true;
    this.LastAction = "";
    this.ResponseFormat = "Xml";
    this.HttpVerb = "POST";
    this.HttpSubVerb = "";
    this.UsePostTunneling = false;
    this.Reset = function() {
        this.HttpVerb = "POST";
        this.HttpSubVerb = "";
        this.UsePostTunneling = false;
    };
    this.SendFast = function() {
        this.Send(null, null, true);
    };
    this.SendJson = function(vea759, v0c742, v34c23) {
        var v29e70 = this.XmlHttp;
        var v55446 = this;
        if (!this.Asynchronous || v29e70 == null || v29e70.readyState != 0) {
            this.XmlHttp = null;
            if (v29e70 != null) v29e70.abort();
            v29e70 = null;
            try {
                v29e70 = new XMLHttpRequest();
            } catch (e) {
                if (IS.ie) v29e70 = new ActiveXObject("Microsoft.XMLHTTP");
            }
            if (this.Asynchronous) this.XmlHttp = v29e70;
        }
        if (this.UsePostTunneling) {
            this.HttpSubVerb = this.HttpVerb;
            this.HttpVerb = "POST";
        }
        v29e70.open(this.HttpVerb, vea759, true);
        v29e70.setRequestHeader("Content-Type", "application/json");
        v29e70.setRequestHeader("Accept", "application/json");
        if (this.HttpSubVerb != "") v29e70.setRequestHeader("X-HTTP-Method", this.HttpSubVerb);
        v29e70.onreadystatechange = function() {
            ISXmlHttpEngine.OnResponse(v55446);
        };
        if (typeof (v34c23) != "undefined") v29e70.send(ISJsonEngine.Serialize(v34c23));
        else v29e70.send("");
        if (typeof (v0c742) != "undefined" && v0c742 != null) this.LastAction = v0c742;
        if (!this.Asynchronous) ISXmlHttpEngine.OnResponse(v55446, v29e70);
    };
    this.Send = function(v14a14, v0c742, ve0c8) {
        var v29e70 = this.XmlHttp;
        var vd4162 = "";
        var v4c821 = -1;
        var v55446 = this;
        if (v14a14 == null) {
            if (typeof (this.Control.FormIndex) == "number") v4c821 = this.Control.FormIndex;
            if (v4c821 == -1) {
                if (document.forms.length > 1) {
                    var vfc876 = this.Control.FrameObj;
                    if (vfc876) {
                        var v1e433 = vfc876.parentElement;
                        while (v1e433) {
                            if (v1e433.tagName == "FORM") {
                                vd4162 = v1e433.action;
                                break;
                            }
                            v1e433 = v1e433.parentElement;
                        }
                    } else v4c821 = 0;
                } else v4c821 = 0;
            }
            if (vd4162 == "") vd4162 = document.forms[v4c821].action;
        } else vd4162 = v14a14;
        if (IS.ie && IS.GetIEVersion() < 6) vd4162 = vd4162.substring(0, 2).toUpperCase() + vd4162.substring(2).toLowerCase();
        var vb4c23 = "&__EVENTTARGET=ISControl&__EVENTARGUMENT=PostBack";
        if (this.Control.GetType() == "WebFlyPostBackManager" && this.Control.EnableUIMode) {
            var v72245 = document.getElementById("__EVENTTARGET");
            var vf8a77 = document.getElementById("__EVENTARGUMENT");
            vb4c23 = "";
            if (v72245) vb4c23 = "&__EVENTTARGET=" + v72245.value;
            if (vf8a77) vb4c23 += "&__EVENTARGUMENT=" + vf8a77.value;
        }
        if (!this.Asynchronous || v29e70 == null) {
            this.XmlHttp = null;
            if (v29e70 != null) v29e70.abort();
            v29e70 = null;
            try {
                v29e70 = new XMLHttpRequest();
            } catch (e) {
                if (IS.ie) v29e70 = new ActiveXObject("Microsoft.XMLHTTP");
            }
            if (this.Asynchronous) this.XmlHttp = v29e70;
        }
        v29e70.open("POST", vd4162, this.Asynchronous);
        v29e70.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        v29e70.onreadystatechange = function() {
            ISXmlHttpEngine.OnResponse(v55446);
        };
        v29e70.send(this.Control.FormKey + "=" + ISXmlHttpEngine.GetData(this.Control, ve0c8) + vb4c23 + "&__FLYPOSTBACK=true&__FLYPOSTBACKID=" + this.Control.ServerUniqueID);
        if (typeof (v0c742) != "undefined" && v0c742 != null) this.LastAction = v0c742;
        if (!this.Asynchronous) ISXmlHttpEngine.OnResponse(v55446, v29e70);
    };
    this.Abort = function() {
        var v29e70 = this.XmlHttp;
        if (v29e70 != null) {
            v29e70.abort();
            if (IS.safari) {
                if (this.Control != null) this.Control.OnResponseError("");
            }
        }
    };
}
var ISXmlHttpEngine = {
    Create: function(v64f12, v4d335) {
        var v34f12 = new ISXmlHttp();
        v34f12.OnResponse = v4d335;
        v34f12.Control = v64f12;
        try {
            v34f12.XmlHttp = new XMLHttpRequest();
        } catch (e) {
            if (IS.ie) v34f12.XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        return v34f12;
    },
    CreateRequestXml: function(vcd567) {
        var vb4912 = ISXml.CreateXmlDocument();
        var v96335 = "<" + vcd567 + ">";
        v96335 += "<request />";
        v96335 += "</" + vcd567 + ">";
        vb4912.loadXML(v96335);
        return vb4912;
    },
    CreateResponseXml: function() {
        return ISXml.CreateXmlDocument();
    },
    GetObjectData: function(vf5851, v76854) {
        var vca167 = "";
        var v2cc14 = "";
        if (typeof (vf5851.ClassName) == "string" && vf5851.XmlDt != null) {
            vf5851.PreparePostBackData(4);
            if (typeof (vf5851.CustomStateString) == "string") vca167 = vf5851.CustomStateString;
            else {
                if (vf5851.XmlDt.documentElement != null) vca167 = vf5851.XmlDt.documentElement.xml;
            }
            if (vf5851.XmlCompressionEnabled) vca167 = IS.CompressXmlState(vca167);
            vca167 = ISXmlHttpEngine.EncodePlus(ISXmlHttpEngine.EncodeXml(vca167));
            v2cc14 += "&" + vf5851.xmlInputHiddenUniqueID + "=" + (!vf5851.IsUnicodeEncoding() ? escape(vca167) : vca167);
        }
        return v2cc14;
    },
    GetData: function(v7f292, v70e80) {
        var v89e23 = ISXmlHttpEngine.EncodeXml(v7f292.XmlReq.xml);
        var v35e93 = "";
        var v78123 = null;
        if (!v7f292.IsUnicodeEncoding()) v89e23 = escape(v89e23);
        if (v70e80) {
            var v38064 = document.getElementById(v7f292.Id);
            if (v38064 != null) v89e23 += "&" + v38064.name + "=" + "Dummy";
            for (var v2d993 = 0; v2d993 < v7f292.AdditionalInputs.length; v2d993++) v89e23 += "&" + v7f292.AdditionalInputs[v2d993][0] + "=" + v7f292.AdditionalInputs[v2d993][1];
            return v89e23;
        }
        if (v7f292.PostViewState) {
            var v36f23 = document.getElementById("__VIEWSTATE");
            if (IS.moz) v36f23 = document.forms[0]["__VIEWSTATE"];
            if (v36f23) {
                v35e93 = v36f23.value;
                v35e93 = v35e93.replace(/[+]/g, "%2b");
            }
            if (v35e93 != "") v35e93 = "&__VIEWSTATE=" + v35e93;
            v89e23 += v35e93;
        }
        if (v7f292.PostInputControls) v7f292.CollectInput();
        if (v7f292.PostControlState) {
            var v38064 = document.getElementById(v7f292.Id);
            if (v38064 != null) v89e23 += "&" + v38064.name + "=" + ISXmlHttpEngine.EncodeURL(v38064.value);
            v89e23 += ISXmlHttpEngine.GetObjectData(v7f292);
        }
        if (v7f292.PostHiddenFields) {
            var vcd372 = document.getElementsByTagName("input");
            var v72a36 = false;
            if (v7f292.GetType() == "WebFlyPostBackManager" && v7f292.FlyPostBackSettings.SelectiveControlsForHiddenFields.length > 0) {
                v72a36 = true;
                v78123 = v7f292.FlyPostBackSettings.SelectiveControlsForHiddenFields;
            }
            for (var v2d993 = 0; v2d993 < vcd372.length; v2d993++) {
                if (vcd372[v2d993].name.indexOf("EVENT") == -1 && vcd372[v2d993].name != "__VIEWSTATE" && vcd372[v2d993].type == "hidden" && vcd372[v2d993].id != v7f292.Id) if (vcd372[v2d993].name.indexOf("_h") == -1) v89e23 += "&" + vcd372[v2d993].name + "=" + ISXmlHttpEngine.EncodeURL(vcd372[v2d993].value);
                else if (vcd372[v2d993].type == "checkbox" && vcd372[v2d993].checked) v89e23 += "&" + vcd372[v2d993].name + "=" + vcd372[v2d993].value;
            }
            var v2d993;
            for (v2d993 in IS.RuntimeObjects) {
                var vf0c87 = IS.RuntimeObjects[v2d993];
                if (typeof (vf0c87.ClassName) == "string" && vf0c87.Id != v7f292.Id) {
                    var v2f668 = false;
                    if (v72a36) {
                        for (var v51b77 = 0; v51b77 < v78123.length; v51b77++) {
                            var vaf152 = v78123[v51b77].ControlID;
                            if (vf0c87.Id.indexOf(vaf152) > -1) {
                                v2f668 = true;
                                break;
                            }
                        }
                    } else v2f668 = true;
                    if (v2f668) v89e23 += ISXmlHttpEngine.GetObjectData(vf0c87, true);
                }
            }
        }
        for (var v2d993 = 0; v2d993 < v7f292.AdditionalInputs.length; v2d993++) {
            v89e23 += "&" + v7f292.AdditionalInputs[v2d993][0] + "=" + v7f292.AdditionalInputs[v2d993][1];
        }
        return v89e23;
    },
    EncodeXml: function(v2233) {
        var v6b111 = v2233;
        var va8690 = new RegExp("<", "g");
        var vcc961 = new RegExp("&lt;", "g");
        var vde417 = new RegExp("&", "g");
        var v9df35 = new RegExp("On", "g");
        v6b111 = v6b111.replace(va8690, "\03");
        v6b111 = v6b111.replace(vcc961, "\04");
        v6b111 = v6b111.replace(vde417, "\05");
        v6b111 = v6b111.replace(v9df35, "\02");
        return v6b111;
    },
    EncodePlus: function(v8c239) {
        return v8c239.replace(/[+]/g, "$isplus;");
    },
    EncodeURL: function(va5539) {
        var v7bf39 = va5539.replace(/[&]/g, "%26");
        v7bf39 = v7bf39.replace(/[+]/g, "%2b");
        return v7bf39;
    },
    CollectInput: function() {
        var vdcf39 = document.getElementsByTagName("input");
        var v4e18 = [];
        var v8ae83 = new Array();
        for (var vb0d3 = 0; vb0d3 < vdcf39.length; vb0d3++) {
            if (vdcf39[vb0d3].type != "hidden" && vdcf39[vb0d3].type != "button" && vdcf39[vb0d3].type != "submit" && vdcf39[vb0d3].type != "reset" && vdcf39[vb0d3].type != "checkbox" && vdcf39[vb0d3].type != "radio") {
                var vf262 = ISXmlHttpEngine.EncodeURL(vdcf39[vb0d3].value);
                v8ae83[v8ae83.length] = [IS.GetInputCtlName(vdcf39[vb0d3]), vf262];
            } else if (vdcf39[vb0d3].type == "checkbox") {
                if (vdcf39[vb0d3].checked) v8ae83[v8ae83.length] = [IS.GetInputCtlName(vdcf39[vb0d3]), "true"];
                else v8ae83[v8ae83.length] = [IS.GetInputCtlName(vdcf39[vb0d3]), "!_remove"];
            } else if (vdcf39[vb0d3].type == "radio") {
                if (!v4e18[vdcf39[vb0d3].name]) {
                    var v53478 = document.getElementsByName(vdcf39[vb0d3].name);
                    if (v53478.length == 1) {
                        if (vdcf39[vb0d3].checked) v8ae83[v8ae83.length] = [vdcf39[vb0d3].name, vdcf39[vb0d3].value];
                    } else {
                        for (var vd7f29 = 0; vd7f29 < v53478.length; vd7f29++) {
                            if (vd7f29 == 0) v4e18[vdcf39[vb0d3].name] = true;
                            if (v53478[vd7f29].checked) {
                                v8ae83[v8ae83.length] = [vdcf39[vb0d3].name, v53478[vd7f29].value];
                                break;
                            }
                        }
                    }
                }
            }
        }
        var va2272 = document.getElementsByTagName("select");
        for (var vb0d3 = 0; vb0d3 < va2272.length; vb0d3++) {
            var vf262 = ISXmlHttpEngine.EncodeURL(va2272[vb0d3].value);
            v8ae83[v8ae83.length] = [IS.GetInputCtlName(va2272[vb0d3]), vf262];
        }
        var v3eb65 = document.getElementsByTagName("textarea");
        for (var vb0d3 = 0; vb0d3 < v3eb65.length; vb0d3++) {
            var vf262 = ISXmlHttpEngine.EncodeURL(v3eb65[vb0d3].value);
            v8ae83[v8ae83.length] = [IS.GetInputCtlName(v3eb65[vb0d3]), vf262];
        }
        return v8ae83;
    },
    OnResponse: function(v0b574, vbfc32) {
        var v64288 = v0b574.Control;
        var v3e185 = v0b574.XmlHttp;
        if (vbfc32 != null) v3e185 = vbfc32;
        if (!ISXmlHttpEngine) return;
        if (v3e185 == null || typeof (v3e185) == "undefined") return;
        if (v3e185.readyState == 4) {
            var v9ef87 = v3e185.getResponseHeader("Content-Type");
            var vc7633 = v3e185.status;
            if (vc7633 == 204 || vc7633 == 1223) {
                if (v0b574.LastAction != "" && v0b574.LastAction.indexOf("Execute") > -1 && v64288.ClientProvider) v64288.ClientProvider.CallbackHandler(new Object());
                if (v64288.OnResponse) v64288.OnResponse(new Object(), true);
                return;
            }
            var v96345 = v3e185.getResponseHeader("IS-Redirect");
            if (v96345 == "true") {
                window.location = v3e185.getResponseHeader("IS-Location");
                return;
            }
            if (v9ef87 != null && v9ef87 != "" && v9ef87.indexOf("json") > -1) {
                var v8e511 = v3e185.getResponseHeader("jsonerror");
                v0b574.ResponseFormat = "Json";
                if (v8e511 == "true" || (vc7633 < 200 || vc7633 >= 300)) {
                    v64288.OnResponseError(v3e185.responseText);
                    return;
                } else {
                    var v22618 = ISXmlHttpEngine.GetJsonObject(v3e185.responseText);
                    if (v0b574.LastAction != "" && v0b574.LastAction.indexOf("Execute") > -1 && v64288.ClientProvider) v64288.ClientProvider.CallbackHandler(v22618);
                    if (v64288.OnResponse) v64288.OnResponse(v22618, true);
                    ISXmlHttpEngine.ProcessClientActions(v22618, true);
                    if (!ISXmlHttpEngine) return;
                    ISXmlHttpEngine.InvokeGeneralResponse(v22618, true);
                }
            } else {
                if (v64288.XmlResp == null) v64288.XmlResp = ISXmlHttpEngine.CreateResponseXml();
                var veaf98 = v64288.XmlResp;
                ISXml.LoadXml(veaf98, v3e185.responseText);
                if (veaf98.xml == "" || veaf98.xml.indexOf("parsererror") > 0) {
                    var v6ae40 = v3e185.responseText;
                    var ve7968 = true;
                    var v6a658 = "<" + v64288.XmlNamespace + ">";
                    var vaa054 = "</" + v64288.XmlNamespace + ">";
                    if (v6ae40.indexOf(v6a658) >= 0 && v6ae40.indexOf(vaa054) >= 0) {
                        v6ae40 = v6ae40.substring(0, v6ae40.indexOf(vaa054) + vaa054.length);
                        ISXml.LoadXml(veaf98, v6ae40);
                        if (veaf98.xml == "") ve7968 = true;
                        else ve7968 = false;
                    }
                    if (ve7968) {
                        v64288.OnResponseError(v6ae40);
                        return;
                    }
                }
                v64288.OnResponse(veaf98.xml);
                ISXmlHttpEngine.ProcessClientActions(veaf98);
                if (!ISXmlHttpEngine) return;
                ISXmlHttpEngine.InvokeGeneralResponse(veaf98);
            }
            v0b574.Asynchronous = true;
        }
    },
    InvokeGeneralResponse: function(v39549, vc3c20) {
        for (var vc7d94 = 0; vc7d94 < IS.RuntimeObjects.length; vc7d94++) {
            var v4b541 = IS.RuntimeObjects[vc7d94];
            if (v4b541 != null && v4b541.ClassName != null && typeof (v4b541.ClassName) != "undefined" && typeof (v4b541.OnFlyPostBackResponse) == "function") {
                v4b541.OnFlyPostBackResponse(v39549, vc3c20);
            }
        }
    },
    ReplaceCDataEndTag: function(v4b949) {
        while (v4b949.indexOf("||C!||") > -1) {
            v4b949 = v4b949.replace("||C!||", "]]");
        }
        return v4b949;
    },
    ProcessClientActions: function(v5fe24, v2c39) {
        if (v5fe24 == null) return;
        var vfd049 = null;
        if (!v2c39) {
            vfd049 = v5fe24.selectSingleNode("//clientActions");
        } else {
            if (typeof (v5fe24.clientActions) != "undefined") {
                vfd049 = new Object();
                vfd049.text = v5fe24.clientActions;
            }
        }
        if (vfd049) {
            var v29720 = vfd049.text;
            IS.OnAJAXInitialization = true;
            if (v29720 != "") {
                var v15761 = v29720.split("||IS||");
                for (var v26769 = 0; v26769 < v15761.length; v26769++) {
                    if (v15761[v26769] != "") {
                        var v73332 = v15761[v26769];
                        if (v73332.indexOf("ISControlRenderer") > -1) {
                            v73332 = v73332.replace(new RegExp("ISControlRenderer", ""), "IS.RenderControl");
                            v73332 = v73332.replace(/\n/g, "");
                            v73332 = v73332.replace(new RegExp("\'", "ig"), "\\'");
                            v73332 = ISXmlHttpEngine.ReplaceCDataEndTag(v73332);
                        } else if (v73332.indexOf("SetValue") > -1) {
                            v73332 = v73332.replace(/\n/g, "\\n");
                        }
                        eval(v73332);
                    }
                }
            }
            IS.OnAJAXInitialization = false;
        }
    },
    GetJsonObject: function(v53943) {
        var vdae60 = ISJsonEngine.ParseAjax(v53943);
        var vdac79 = "";
        if (vdae60.d) vdae60 = vdae60.d;
        if (vdae60 != null && typeof (vdae60) != "undefined") {
            if (typeof (vdae60["__type"]) == "string") vdac79 = vdae60["__type"];
            if (typeof (ISADONETMappingEngine) == "object" && vdac79.indexOf("ISDataSet") > -1 || vdac79.indexOf("ISDataTable") > -1) vdae60 = ISADONETMappingEngine.MappingJsonToObject(vdae60);
        }
        return vdae60;
    }
};
var ISJsonEngine = {
    DateRegEx: new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"', 'g'),
    Cx: /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
    Escapable: /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
    Gap: null,
    Indent: null,
    Meta: { // table of character substitutions
        '\b': '\\b',
        '\t': '\\t',
        '\n': '\\n',
        '\f': '\\f',
        '\r': '\\r',
        '"': '\\"',
        '\\': '\\\\'
    },
    Rep: null,
    Parse: function(v5056, v89b70) {
        var veb522;
        var v1c130 = ISJsonEngine.Cx;
        v1c130.lastIndex = 0;
        if (v1c130.test(v5056)) {
            v5056 = v5056.replace(v1c130, function(a) {
                return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
            });
        }
        veb522 = eval("(" + v5056 + ")");
        return typeof v89b70 === "function" ? ISJsonEngine._Walker({
            "": veb522
        },
        "", v89b70) : veb522;
    },
    ParseAjax: function(ve596) {
        ve596 = ve596.replace(ISJsonEngine.DateRegEx, "$1new Date($2)");
        return ISJsonEngine.Parse(ve596);
    },
    _Walker: function(vb0b41, v88340, vea464) {
        var k, v, value = vb0b41[v88340];
        if (value && typeof value === "object") {
            for (k in value) {
                if (Object.hasOwnProperty.call(value, k)) {
                    v = walk(value, k);
                    if (v !== undefined) value[k] = v;
                    else delete value[k];
                }
            }
        }
        return vea464.call(vb0b41, v88340, value);
    },
    Quote: function(vcf241) {
        ISJsonEngine.Escapable.lastIndex = 0;
        return ISJsonEngine.Escapable.test(vcf241) ? '"' + vcf241.replace(ISJsonEngine.Escapable, function(a) {
            var v1cd41 = ISJsonEngine.Meta[a];
            return typeof v1cd41 === "string" ? v1cd41 : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
        }) + '"' : '"' + vcf241 + '"';
    },
    Serialize: function(vcd861, vc8a49, v3f531) {
        var v9e461;
        ISJsonEngine.Gap = "";
        ISJsonEngine.Indent = "";
        if (typeof v3f531 === "number") {
            for (v9e461 = 0; v9e461 < v3f531; v9e461 += 1) ISJsonEngine.Indent += " ";
        } else if (typeof v3f531 === "string") ISJsonEngine.Indent = v3f531;
        ISJsonEngine.Rep = vc8a49;
        if (vc8a49 && typeof vc8a49 !== "function" && (typeof vc8a49 !== "object" || typeof vc8a49.length !== "number")) {
            throw new Error("ISJsonEngine.Serialize");
        }
        return ISJsonEngine._SerializeString("", {
            "": vcd861
        });
    },
    _SerializeString: function(v93869, vbc265) {
        var vbb433, // The loop counter.

        k, // The member v93869.

        v, // The member value.
        length, mind = ISJsonEngine.Gap,
            partial, value = vbc265[v93869];
        if (value && typeof value === "object" && typeof value.toJSON === "function") value = value.toJSON(v93869);
        if (typeof ISJsonEngine.Rep === "function") value = ISJsonEngine.Rep.call(vbc265, v93869, value);
        switch (typeof value) {
            case "string":
                return ISJsonEngine.Quote(value);
            case "number":
                return isFinite(value) ? String(value) : "null";
            case "boolean":
            case "null":
                return String(value);
            case "object":
                if (!value) return 'null';
                ISJsonEngine.Gap += ISJsonEngine.Indent;
                partial = [];
                if (Object.prototype.toString.apply(value) === '[object Array]') {
                    length = value.length;
                    for (vbb433 = 0; vbb433 < length; vbb433 += 1) partial[vbb433] = ISJsonEngine._SerializeString(vbb433, value) || "null";
                    v = partial.length === 0 ? '[]' : ISJsonEngine.Gap ? '[\n' + ISJsonEngine.Gap + partial.join(',\n' + ISJsonEngine.Gap) + '\n' + mind + ']' : '[' + partial.join(',') + ']';
                    ISJsonEngine.Gap = mind;
                    return v;
                } else if (value instanceof Date) {
                    return '"\\/Date(' + value.getTime() + ')\\/"';
                }
                if (ISJsonEngine.Rep && typeof ISJsonEngine.Rep === 'object') {
                    length = ISJsonEngine.Rep.length;
                    for (vbb433 = 0; vbb433 < length; vbb433 += 1) {
                        k = ISJsonEngine.Rep[vbb433];
                        if (typeof k === 'string') {
                            v = ISJsonEngine._SerializeString(k, value);
                            if (v) partial.push(ISJsonEngine.Quote(k) + (ISJsonEngine.Gap ? ': ' : ':') + v);
                        }
                    }
                } else {
                    for (k in value) {
                        if (Object.hasOwnProperty.call(value, k)) {
                            v = ISJsonEngine._SerializeString(k, value);
                            if (v) partial.push(ISJsonEngine.Quote(k) + (ISJsonEngine.Gap ? ': ' : ':') + v);
                        }
                    }
                }
                v = partial.length === 0 ? '{}' : ISJsonEngine.Gap ? '{\n' + ISJsonEngine.Gap + partial.join(',\n' + ISJsonEngine.Gap) + '\n' + mind + '}' : '{' + partial.join(',') + '}';
                ISJsonEngine.Gap = mind;
                return v;
        }
    }
};

function ISCoreDestructor() {
    if (IS.RuntimeObjects != null) {
        for (var v1e734 = 0; v1e734 < IS.RuntimeObjects.length; v1e734++) {
            var v25831 = IS.RuntimeObjects[v1e734];
            if (v25831 != null && v25831.ClassName != null) {
                if (typeof (v25831.OnBeforeUnload) == "function") v25831.OnBeforeUnload();
            }
        }
    }
    Listener.Unload(document);
    var v99f75;
    var v1e734;
    for (var v1e734 = 0; v1e734 < IS.RuntimeObjects.length; v1e734++) {
        var v25831 = IS.RuntimeObjects[v1e734];
        if (v25831 != null) {
            if (typeof (v25831.OnUnload) == "function") v25831.OnUnload();
            if (v25831.HtmlObj != null) {
                try {
                    v25831.HtmlObj.form = null;
                } catch (e) { }
            }
            ISDeleteObject(v25831);
        }
    }
    ISDeleteObject(IS.RuntimeObjects);
    ISDeleteObject(IS.RuntimeWindowPopups);
    document.body.detachEvent("onmousedown", doHideWindowPopups);
    window.detachEvent("onresize", doHideWindowPopups);
    if (!IS.ie) {
        document.body.detachEvent("onkeydown", doHideWindowPopupsOnKeyDown);
        window.detachEvent("onkeydown", doHideWindowPopupsOnKeyDown);
    }
    UnregisterKeyboardHandler();
    if (typeof (IS) == "object" && IS.UnloadVariables != null) {
        for (var v1e734 = 0; v1e734 < IS.UnloadVariables.length; v1e734++) {
            try {
                if (typeof (IS.UnloadVariables[v1e734]) == "string") eval(IS.UnloadVariables[v1e734] + " =null;");
                else IS.UnloadVariables[v1e734] = null;
            } catch (e) { }
        }
    }
    IS.UnloadVariables = null;
    ISXmlHttpEngine = null;
    ISXml = null;
    DynamicStyleEngine = null;
    WindowEngine = null;
    ISKeyboardKey = null;
    ISUnShiftSymbol = null;
    ISShiftSymbol = null;
    ISEvent = null;
    /* NtvEvents = null;*/
    /* Listener = null;*/
    ISDimension = null;
    ISPosLib = null;
    /* IS = null; */
    ISUI = null;
}
function ISDeleteObject(vf4844) {
    if (vf4844.length > 0) {
        for (var v61061 = 0; v61061 < vf4844.length; v61061++) {
            delete vf4844[v61061];
            vf4844[v61061] = null;
        }
        delete vf4844;
        vf4844 = null;
    } else {
        var vc9049 = null;
        for (vc9049 in vf4844) {
            delete vf4844[vc9049];
            vf4844[vc9049] = null;
        }
        delete vf4844;
        vf4844 = null;
    }
}
function ISDeleteObjectPermanent(vbe836) {
    if (vbe836.length > 0) {
        for (var v5de64 = 0; v5de64 < vbe836.length; v5de64++) {
            delete vbe836[v5de64];
            vbe836[v5de64] = null;
        }
        delete vbe836;
        vbe836 = null;
    } else {
        var v7cd99 = null;
        for (v7cd99 in vbe836) {
            delete vbe836[v7cd99];
            eval("delete vbe836." + v7cd99);
        }
    }
}
/* <WindowPopup> */

function WindowPopupBody(e) {
    this._e = e;
    this.appendChild = function(vbe063) {
        return this._e.appendChild(vbe063);
    };
}
function WindowPopupDocument(v61b80) {
    this._e = v61b80;
    this._ts = null;
    this.body = new WindowPopupBody(v61b80);
    this.open = function() {
        this._ts = "";
        this._e.innerHTML = "";
    };
    this.write = function(ved679) {
        if (typeof (ved679) == "string") this._ts += ved679;
    };
    this.close = function() {
        this._e.innerHTML = this._ts;
    };
    this.getOwnerDocument = function() {
        return this._e;
    };
    this.getElementById = function(ve8e55, v59b0) {
        // return document.getElementById(ve8e55); // this doesn'v5e168 guarantee correct object when there are multiple objects with same ve8e55
        var v2a555 = null;
        if (v59b0) v2a555 = v59b0;
        else v2a555 = this._e;
        for (var v38f47 = 0; v38f47 < v2a555.childNodes.length; v38f47++) {
            if (v2a555.childNodes[v38f47].id && v2a555.childNodes[v38f47].id == ve8e55) return v2a555.childNodes[v38f47];
            if (v2a555.childNodes[v38f47].childNodes.length > 0) {
                var v1bf16 = this.getElementById(ve8e55, v2a555.childNodes[v38f47]);
                if (v1bf16) return v1bf16;
            }
        }
        return null;
    };
    this.attachEvent = function(v46d29, v00473) {
        this._e.attachEvent(v46d29, v00473);
    };
    this.detachEvent = function(v46d29, v00473) {
        this._e.detachEvent(v46d29, v00473);
    };
    this.createElement = function(v4b660) {
        return this._e.ownerDocument.createElement(v4b660);
    };
    this.createStyleSheet = function() {
        return this._e.ownerDocument.createStyleSheet();
    };
    this.getElementsByName = function(vad215, v59b0, v2ad66) {
        var v2a555 = null;
        if (!v2ad66) v2ad66 = new Array();
        if (v59b0) v2a555 = v59b0;
        else v2a555 = this._e;
        for (var v38f47 = 0; v38f47 < v2a555.childNodes.length; v38f47++) {
            if (v2a555.childNodes[v38f47].name && v2a555.childNodes[v38f47].name == vad215) v2ad66[v2ad66.length] = v2a555.childNodes[v38f47];
            if (v2a555.childNodes[v38f47].childNodes.length > 0) {
                this.getElementsByName(vad215, v2a555.childNodes[v38f47], v2ad66);
            }
        }
        return v2ad66;
    };
    if (!IS.ie) {
        this.__defineGetter__("all", function() {
            var vd2764 = new Array();
            for (var v38f47 = 0; v38f47 < this._e.childNodes.length; v38f47++) {
                vd2764[vd2764.length] = this._e.childNodes[v38f47];
            }
            return vd2764;
        });
        this.parentWindow = window;
    }
}
function WindowPopup(wi) {
    ISObject.call(this);
    this._wi = wi;
    this._e = null;
    this.Index = IS.RuntimeWindowPopups.length;
    this.Id = IS.PopupPrefix + this.Index;
    this.document = new WindowPopupDocument();
    this.isOpen = false;
    this.Initialized = false;
    this.OnClosed = null;
    this.Init = function() {
        if (this.Initialized) return;
        if (this._wi) {
            this._e = document.getElementById(this._wi.ControlID);
            if (this._e) {
                this.Id = this._wi.ControlID;
                with (this._e.style) {
                    visibility = "visible";
                    display = "";
                }
                this._wi.Width = ISPosLib.getWidth(this._e);
                this._wi.Height = ISPosLib.getWidth(this._e);
            } else {
                this._e = document.createElement("DIV");
                if (this._wi.ControlID != "") this.Id = this._e.id = this._wi.ControlID;
                else this._e.id = this.Id;
            }
        } else {
            this._e = document.createElement("DIV");
            this._e.id = this.Id;
        }
        with (this._e.style) {
            visibility = "hidden";
            position = "absolute";
            left = "-100px";
            top = "-100px";
            zIndex = 9900 + this.Index;
        }
        // make sure our popup has Intersoft flag
        this._e.setAttribute("popupProvider", "Intersoft");
        if (this._wi == null || this._wi.IsRelFromOffsetControl == false || (this._wi.OffsetControlID == null || this._wi.OffsetControlID == "")) document.body.insertAdjacentElement("afterBegin", this._e);
        else {
            var vecf14 = document.getElementById(this._wi.OffsetControlID);
            if (vecf14.offsetParent != null) vecf14.offsetParent.insertAdjacentElement("beforeEnd", this._e);
            else document.body.insertAdjacentElement("beforeEnd", this._e);
            this._e.style.display = "none";
            //this._e.style.position="relative";
        }
        this.document.body._e = this.document._e = this._e;
        if (this._wi) WindowEngine.CalcLocation(this._wi);
        this.Initialized = true;
    };
    this.ShowSmart = function(vcfe10, vaf418, v28685, v40772, v50713, v0ea86, va0b52, v0d732) {
        var v59f11 = ISPosLib.ApplyIntelligentPosition(new OffsetLocation(vcfe10, vaf418), this._e, v28685, true);
        this.Show(v59f11.X, v59f11.Y, v40772, v50713, v0ea86, va0b52, v0d732);
    };
    this.show = this.Show = function(vcfe10, vaf418, v40772, v50713, v0ea86, va0b52, v0d732) {
        if (this._e) {
            vcfe10 = parseFloat(vcfe10);
            if (vcfe10 == NaN) vcfe10 = 0;
            vaf418 = parseFloat(vaf418);
            if (vaf418 == NaN) vaf418 = 0;
            v40772 = parseFloat(v40772);
            if (isNaN(v40772)) v40772 = 0;
            v50713 = parseFloat(v50713);
            if (isNaN(v50713)) v50713 = 0;
            if (v0ea86) {
                vcfe10 = vcfe10 + ISPosLib.getLeft(v0ea86);
                vaf418 = vaf418 + ISPosLib.getTop(v0ea86);
            }
            if (!this._wi) {
                if (window.screenLeft) vcfe10 -= window.screenLeft;
                if (window.screenTop) vaf418 -= window.screenTop;
            }
            if (va0b52 && !IS.ie) {
                vaf418 = ISMoz.GetPreferredTop(vaf418, this._e, v0d732);
                vcfe10 = ISMoz.GetPreferredLeft(vcfe10, this._e, v0d732);
            }
            if (!IS.ie) {
                // check for negative pos
                if (vaf418 < 0) vaf418 = 1;
                if (vcfe10 < 0) vcfe10 = 1;
            }
            if (this._e.id == "") this._e.id = this.Id;
            with (this._e.style) {
                left = vcfe10 + "px";
                top = vaf418 + "px";
                if (v40772 <= 0) {
                    if (this._e.offsetWidth != 0) width = this._e.offsetWidth;
                } else width = v40772 + "px";
                if (v50713 == 0) height = "auto";
                else height = v50713 + "px";
                visibility = "visible";
                display = "";
            }
        }
        if (isPopup_CloseAcrossFrameClick) {
            var v30593 = IS.GetTopOpenPopups();
            try {
                v30593.push([window.name, this.Id, window.location.pathname, this]);
            } catch (v61b80) {
                v30593 = new Array();
                v30593.push([window.name, this.Id, window.location.pathname, this]);
            }
        }
        this.isOpen = true;
    };
    this.hide = this.Hide = function() {
        if (this._e) {
            this._e.style.visibility = "hidden";
            if ((IS.mac && IS.moz) || (this._wi != null && this._wi.IsRelFromOffsetControl == true)) this._e.style.display = "none";
        }
        if (isPopup_CloseAcrossFrameClick) {
            var v30593 = IS.GetTopOpenPopups();
            for (var v38f47 = 0; v38f47 < v30593.length; v38f47++) {
                var vab299 = v30593[v38f47];
                if (vab299[0] == window.name && vab299[1] == this.Id && vab299[2] == window.location.pathname) {
                    try {
                        v30593.splice(v38f47, 1);
                    } catch (v61b80) {
                        window.top.IS_OpenPopups = new Array();
                    }
                    break;
                }
            }
        }
        this.isOpen = false;
    };
    if (!wi) {
        this.Init();
    }
    IS.RuntimeWindowPopups[IS.RuntimeWindowPopups.length] = this;
}
/* </WindowPopup> */

function UnitSize(width, height) {
    this.Height = this.Width = null;
    if (width) this.Width = width;
    if (height) this.Height = height;
    this.IsEmpty = function() {
        return (this.Height == null && this.Width == null);
    };
    this.Parse = function(ved679) {
        if (!ved679) return;
        var vd2764 = ved679.split(",");
        this.Width = parseFloat(vd2764[0]);
        this.Height = parseFloat(vd2764[1]);
    };
}
function Rectangle(x, y, width, height) {
    this.X = this.Y = this.Width = this.Height = null;
    this.IsEmpty = function() {
        return (this.Height == null && this.Width == null && this.X == null && this.Y == null);
    };
    if (x) this.X = x;
    if (y) this.Y = y;
    if (width) this.Width = width;
    if (height) this.Height = height;
}
function FlyPostBackSettings() {
    this._Type = "FlyPostBackSettings";
    ISObject.call(this);
    this.PostViewState = true;
    this.PostInputControls = false;
    this.PostHiddenFields = true;
    this.PostControlState = true;
    this.OnPropertiesInitialized = function() {
        var vf6e46 = this.Parent;
        if (vf6e46 != null) {
            if (typeof (vf6e46.PostViewState) == "boolean") {
                vf6e46.PostViewState = this.PostViewState;
                vf6e46.PostInputControls = this.PostInputControls;
                vf6e46.PostHiddenFields = this.PostHiddenFields;
                vf6e46.PostControlState = this.PostControlState;
            }
        }
    };
}
function ShortcutKey(vf6e46, alt, shift, type, v93869) {
    this._Type = "ShortcutKey";
    ISObject.call(this);
    this.Ctrl = this.Alt = this.Shift = false;
    this.AccessKeyType = "Alphabet";
    this.SpecialKey = "None";
    this.AlphabetKey = "";
    this.Object = null;
    this.OwnerControl = null;
    if (typeof (vf6e46) != "undefined") this.Ctrl = vf6e46;
    if (typeof (alt) != "undefined") this.Alt = alt;
    if (typeof (shift) != "undefined") this.Shift = shift;
    if (typeof (type) != "undefined") this.AccessKeyType = type;
    if (typeof (v93869) != "undefined") {
        if (this.AccessKeyType == "Alphabet") this.AlphabetKey = v93869;
        else this.SpecialKey = v93869;
    }
    this.GetString = function() {
        var ved679 = "";
        if (this.Ctrl) ved679 = "Ctrl+";
        if (this.Shift) ved679 += "Shift+";
        if (this.Alt) ved679 += "Alt+";
        if (this.AccessKeyType == "Alphabet") ved679 += this.AlphabetKey;
        else ved679 += this.SpecialKey;
        return ved679;
    };
    this.IsEmpty = function() {
        if (!this.Ctrl && !this.Alt && !this.Shift && this.AccessKeyType == "Alphabet" && this.SpecialKey == "None" && this.AlphabetKey == "") return true;
        return false;
    };
    this.OnPropertiesInitialized = function() {
        if (!this.IsEmpty()) RegisterShortcutKey(this);
    };
}
function RegisterKeyboardHandler() {
    if (!IS.KeyboardHandlerInitialized) {
        if (document != null && document.body != null) document.body.attachEvent("onkeydown", ISCoreKeyboardHandler);
        IS.KeyboardHandlerInitialized = true;
    }
}
function RegisterShortcutKey(shortcut) {
    IS.ShortcutKeys.push(shortcut);
}
function UnregisterShortcutKey(shortcut) {
    var v38f47 = -1;
    for (var v9e165 = 0; v9e165 < IS.ShortcutKeys.length; v9e165++) {
        var vfc125 = IS.ShortcutKeys[v9e165];
        if (vfc125 == shortcut) {
            v38f47 = v9e165;
            break;
        }
    }
    if (v38f47 > -1) IS.ShortcutKeys.splice(v38f47, 1);
}
function UnregisterKeyboardHandler() {
    window.detachEvent("onkeydown", ISCoreKeyboardHandler);
}
function ISCoreKeyboardHandler(sourceEvent) {
    var v52c45 = event;
    var v1bf16 = null;
    if (sourceEvent) v52c45 = sourceEvent;
    try {
        var v23031 = v52c45.altKey; // check for permission denied issue when Window has closed
    } catch (v61b80) {
        return;
    }
    if (v52c45) {
        if (v52c45.altKey || v52c45.ctrlKey) {
            var ve2e65 = String.fromCharCode(v52c45.keyCode).toLowerCase();
            if (ve2e65 == ISKeyboardKey.TAB) return;
            for (var v38f47 = 0; v38f47 < IS.ShortcutKeys.length; v38f47++) {
                var vfc125 = IS.ShortcutKeys[v38f47];
                if ((vfc125.Ctrl == v52c45.ctrlKey) && (vfc125.Alt == v52c45.altKey) && (vfc125.Shift == v52c45.shiftKey)) // check enabled and other state of the object
                {
                    var v10784 = vfc125.Parent;
                    if (v10784 && v10784.Enabled && v10784.Visible) {
                        if (vfc125.AccessKeyType == "Alphabet" && vfc125.AlphabetKey.toLowerCase() == ve2e65) {
                            v1bf16 = vfc125;
                            break;
                        } else if (vfc125.AccessKeyType == "Special" && ISKeyboardKey.IsSpecialKey(v52c45.keyCode)) {
                            if (ISKeyboardKey[vfc125.SpecialKey] == v52c45.keyCode) {
                                v1bf16 = vfc125;
                                break;
                            }
                        }
                    }
                }
            }
            if (!v1bf16) {
                // try again to search on WebDesktopWindow level
                var v3fc14 = ISGetDesktopManager();
                if (v3fc14) {
                    var vf1430 = ISGetCurrentWindow(true);
                    if (vf1430) {
                        var v6d291 = vf1430.DesktopManager.GetIFrameWindow(vf1430.Name);
                        if (v6d291 != window && v6d291 != null) v6d291.ISCoreKeyboardHandler(v52c45);
                    }
                }
            }
            if (v1bf16) {
                var v10784 = vfc125.Parent;
                // check for object validity
                if (v10784.Click) v10784.Click();
                v52c45.keyCode = 0;
                v52c45.cancelBubble = true;
                v52c45.returnValue = false;
            }
        }
    }
}
function ISCoreContextMenuHandler() {
    var v52c45 = window.event;
    if (v52c45.type == "mousedown" && !ISEvent.ContextMenuCancelled) {
        if (ISEvent.IsLeftButton(event)) {
            if (ISEvent.MouseDownId != -1) clearTimeout(ISEvent.MouseDownId);
            var v2a555 = v52c45.srcElement;
            ISEvent.MouseDownId = setTimeout(function() {
                ISCoreEmulateContextMenu(v2a555);
            },
            1000);
        }
    } else if (v52c45.type == "mouseup") {
        if (ISEvent.MouseDownId != -1) {
            clearTimeout(ISEvent.MouseDownId);
            ISEvent.MouseDownId = -1;
        }
        ISEvent.ContextMenuCancelled = false;
    } else {
        /* mouse moved, context menu emulation cancelled */
        if (ISEvent.MouseDownId != -1) {
            clearTimeout(ISEvent.MouseDownId);
            ISEvent.MouseDownId = -1;
            ISEvent.ContextMenuCancelled = true;
        }
    }
}
function ISCoreEmulateContextMenu(v2a555) {
    if (v2a555 != null) {
        v2a555.fireEvent("oncontextmenu");
        var v59b0 = v2a555.parentElement;
        if (v59b0 != null && v59b0.tagName != "HTML") ISCoreEmulateContextMenu(v59b0);
    }
}
function ISGetPlaceHolderManager() {
    var vf4326 = null;
    if (typeof (GetPagePlaceHolderManager) == "function") vf4326 = GetPagePlaceHolderManager();
    if (!vf4326) {
        // try to find v59b0
        while (window.parent != null && window != window.parent) {
            var v88025 = window.parent;
            if (typeof (v88025.GetPagePlaceHolderManager) == "function") {
                return v88025.GetPagePlaceHolderManager();
            }
        }
    }
    return null;
}
function ISGetDesktopManager() {
    if (typeof (IS) == "object") {
        for (var v38f47 = 0; v38f47 < IS.RuntimeObjects.length; v38f47++) {
            var vf4326 = IS.RuntimeObjects[v38f47];
            if (vf4326 && vf4326.ClassName != null && vf4326.GetType() == "WebDesktopManager") return vf4326;
        }
    }
    var v88025 = window;
    // try to find v59b0
    while (v88025.parent != null && v88025 != v88025.parent) {
        v88025 = v88025.parent;
        if (typeof (v88025.ISGetDesktopManager) == "function") {
            return v88025.ISGetDesktopManager();
        }
    }
    return null;
}
function ISGetWindow(vad215) {
    var v3fc14 = ISGetDesktopManager();
    if (v3fc14) return v3fc14.GetWindow(vad215);
}
function ISGetActiveWindow() {
    var v3fc14 = ISGetDesktopManager();
    if (v3fc14) return v3fc14.GetActiveWindow();
}
function ISGetCurrentWindow(searchParent, _dm) {
    var v3fc14 = ISGetDesktopManager();
    if (_dm) v3fc14 = _dm;
    if (v3fc14) {
        if (window.frameElement) {
            var vbd448 = v3fc14.GetWindow(window.frameElement.name);
            if (!searchParent) return vbd448;
            else {
                if (vbd448) return vbd448;
                else {
                    var v0b943 = window.parent;
                    while (v0b943 && v0b943.frameElement) {
                        vbd448 = v3fc14.GetWindow(v0b943.frameElement.name);
                        if (vbd448) return vbd448;
                        else v0b943 = v0b943.parent;
                    }
                }
            }
        }
    }
    return null;
}
function ISCloseCurrentWindow() {
    var vbd448 = ISGetCurrentWindow();
    if (vbd448) vbd448.Close();
}
function IsGecko18() {
    return (IS.moz && navigator.userAgent.indexOf("rv:1.8") > -1);
}
function IsGecko20() {
    return (IS.moz && navigator.userAgent.indexOf("Firefox/2.0") > -1);
}
function IsGecko30() {
    return (IS.moz && (navigator.userAgent.indexOf("Firefox/3.0") > -1 || navigator.userAgent.indexOf("Firefox/3.5")));
}
function IsGecko18Up() {
    if (IsGecko18() || IsGecko20() || IsGecko30()) return true;
    return false;
}
function IsIE8StandardMode() {
    return (IS.ie && IS.GetIEVersion() > 7 && IS.IsXHTMLDocType());
}
function IsIE7StandardMode() {
    return (IS.ie && IS.GetIEVersion() < 8 && IS.IsXHTMLDocType());
}
window.attachEvent("onload", ISCoreOnLoad);
window.attachEvent("onunload", ISCoreDestructor);
if (!IS.ie) ec56c82.md619();
if (typeof (Sys) != "undefined") Sys.Application.notifyScriptLoaded();
// Generated by Intersoft Script Optimizer V1.5 + Intersoft JS Engine MaxObfuscate(tm) V1.0 
// Generated Datetime : 12/8/2009 4:30:21 PM
// Copyright (c) 2005 Intersoft Solutions.
// Unauthorized decryption/reproduction of any codes contained herein is strictly prohibited and will result in severe civil and criminal penalties .
//**Start Encode**
var isNetPage_ClientValidateCalled = false;
var isPopup_CloseAcrossFrameClick = false;
__doPostBack = function(eventTarget, eventArgument, skipValidation) {
    var theform;
    if (window.navigator.appName.toLowerCase().indexOf("netscape") > -1) theform = document.forms["Form1"];
    else theform = document.Form1;
    if (theform == null) theform = document.forms["aspnetForm"];
    if (theform == null) theform = document.forms[0];
    if (IS.IsObjExists("ValidatorCommonOnSubmit") && !skipValidation) {
        if (IS.IsObjExists("WebForm_PostBackOptions") == false) {
            if (Page_BlockSubmit) Page_BlockSubmit = false;
        }
        if (theform.onsubmit == null) {
            if (theform.fireEvent("onsubmit") == false) {
                return;
            }
        } else {
            if (theform.onsubmit() == false) return;
        }
    }
    var ctrlOnPostBack = null;
    for (var i = 0; i < IS.RuntimeObjects.length; i++) {
        ctrl = IS.RuntimeObjects[i];
        if (ctrl != null) {
            try {
                ctrl.PreparePostBackData(1);
            }
            catch (err1) { }

            if (typeof (ctrl.OnPostBack) == "function") {
                if (ctrl.Owner != null && ctrl.Owner.GetType() == "WebNotification") continue;
                else {
                    ctrlOnPostBack = ctrl;
                    break;
                }
            }
        }
    }
    if (ctrlOnPostBack != null) {
        var result = ctrlOnPostBack.OnPostBack(theform, eventTarget, eventArgument);
        if (result == false) return;
    }
    if (typeof (theform.OnValidateSuccess) == "function") theform.OnValidateSuccess();
    theform.__EVENTTARGET.value = eventTarget.split("$").join(":");
    theform.__EVENTARGUMENT.value = eventArgument;
    window.onerror = function() {
        return true;
    };
    theform.submit();
    window.onerror = null;
};

function IsValidationGroupMatch(v20935, v21239) {
    if ((typeof (v21239) == "undefined") || (v21239 == null)) {
        return true;
    }
    var vc7c99 = "";
    if (typeof (v20935.validationGroup) == "string") {
        vc7c99 = v20935.validationGroup;
    }
    return (vc7c99 == v21239);
}
function OverrideSubmitScripts() {
    if (IS.IsObjExists("ValidatorCommonOnSubmit")) {
        ValidatorCommonOnSubmit = function() {
            var va6d18 = !Page_BlockSubmit;
            if (event) event.returnValue = va6d18;
            Page_BlockSubmit = false;
            return va6d18;
        }
    }
    Page_ClientValidate = function(v20b4, v72326) {
        return ISNetPage_ClientValidate(v20b4, v72326);
    };
    ValidatorGetValue = function(vfdf76) {
        var vd5b79 = ISGetObject(vfdf76);
        if (vd5b79 != null) {
            if (typeof (vd5b79.GetValidatorValue) == "function") return vd5b79.GetValidatorValue();
            else {
                if (vd5b79.ClassName == "WebInput") return vd5b79.GetValueData();
            }
        }
        vd5b79 = document.all[vfdf76];
        if (typeof (vd5b79.value) == "string") {
            return vd5b79.value;
        }
        if (typeof (vd5b79.tagName) == "undefined" && typeof (vd5b79.length) == "number") {
            var v9e440;
            for (v9e440 = 0; v9e440 < vd5b79.length; v9e440++) {
                var vef223 = vd5b79[v9e440];
                if (typeof (vef223.value) == "string" && (vef223.type != "radio" || vef223.status == true)) {
                    return vef223.value;
                }
            }
        } else {
            return ValidatorGetValueRecursive(vd5b79);
        }
        return "";
    };
    if (IS.IsObjExists("ValidatorOnLoad")) {
        ValidatorOnSubmit = function() {
            var va6d18 = true;
            if (Page_ValidationActive) {
                var v4ed32 = window.event;
                var v3cb27 = false;
                var v52074 = isNetPage_ClientValidateCalled;
                if (v4ed32 != null) {
                    var vcbd95 = v4ed32.srcElement.onclick;
                    if (vcbd95 != null) {
                        if (vcbd95.toString().indexOf("Page_ClientValidate") > -1 || vcbd95.toString().indexOf("WebForm_DoPostBackWithOptions") > -1 || vcbd95._listeners != null) v3cb27 = true;
                    }
                }
                if (Page_BlockSubmit && !Page_IsValid) {
                    if (isNetPage_ClientValidateCalled || v3cb27) {
                        if (v3cb27 && isNetPage_ClientValidateCalled) v3cb27 = false;
                        isNetPage_ClientValidateCalled = false;
                    }
                }
                if (v52074 == false && v3cb27) ISNetPage_ClientValidate();
                va6d18 = ValidatorCommonOnSubmit();
                if (v4ed32) {
                    var v6c10 = v4ed32.srcElement;
                    if (v6c10 != null) {
                        if (v6c10.type != null) {
                            if (v6c10.type.toLowerCase() == "form") Page_BlockSubmit = false;
                        }
                    }
                }
            }
            if (va6d18 == true) {
                var v9cf29;
                var v47e30;
                for (v47e30 in IS.RuntimeObjects) {
                    v9cf29 = IS.RuntimeObjects[v47e30];
                    if (v9cf29.HtmlObj != null) {
                        v9cf29.PreparePostBackData(2);
                    }
                }
            }
            return va6d18;
        };
        if (IS.moz) ValidatorOnLoad();
    }
}
function ISCoreOnLoad() {
    if (typeof (ISWindowDestroyed) != "undefined") return;
    OverrideSubmitScripts();
    IS.EnsurePureArray();
    var v6e459 = IS.RuntimeWindowPopups;
    for (var vbae5 = 0; vbae5 < v6e459.length; vbae5++) v6e459[vbae5].Init();
    var v80248;
    for (vbae5 in IS.RuntimeObjects) {
        v80248 = IS.RuntimeObjects[vbae5];
        if (typeof (v80248.OnPostInitialized) == "function") {
            if (!v80248.IsOnPostInitialized) {
                v80248.OnPostInitialized();
                v80248.IsOnPostInitialized = true;
            }
        }
    }
    var vaaa97 = document.forms;
    document.body.attachEvent("onmousedown", doHideWindowPopups);
    window.attachEvent("onresize", doHideWindowPopups);
    if (IS.moz) {
        document.body.attachEvent("onkeydown", doHideWindowPopupsOnKeyDown);
        window.attachEvent("onkeydown", doHideWindowPopupsOnKeyDown);
    }
    if (IS.opera) {
        document.body.attachEvent("onmousedown", ISCoreContextMenuHandler);
        document.body.attachEvent("onmouseup", ISCoreContextMenuHandler);
        document.body.attachEvent("onmousemove", ISCoreContextMenuHandler);
    }
}
function ISGetObject(v35f15) {
    if (!v35f15) return null;
    var va2015 = IS.GetRuntimeObjectById(v35f15);
    if (va2015) return va2015;
    else {
        return IS.GetRuntimeObjectByIdWildCard(v35f15);
    }
}
function ISDestroyObject(v87351) {
    if (v87351 == null) return;
    var vab615;
    for (vab615 in IS.RuntimeObjects) {
        if (IS.RuntimeObjects[vab615].Id == v87351) {
            delete IS.RuntimeObjects[vab615];
        }
    }
    IS.ActiveCtrl = null;
}
function ISRemoveObject(v3bb34) {
    for (i in IS.RuntimeObjects) {
        var ve2351 = IS.RuntimeObjects[i];
        if (ve2351 != null && typeof (ve2351) == "object" && ve2351.Id == v3bb34) {
            IS.RuntimeObjects.splice(i, 1);
            break;
        }
    }
    IS.ActiveCtrl = null;
}
function ISControl_InitializeAtlas(v7066) {
    var vf6134 = ISGetObject(v7066);
    if (vf6134 != null) return;
    IS.OnAJAXInitialization = true;
    eval(v7066 + "_InitializeAtlas();");
    IS.OnAJAXInitialization = false;
}
function ISControl_Dispose(vcef6) {
    var va286 = ISGetObject(vcef6);
    if (va286 != null && typeof (va286.OnUnload) == "function") va286.OnUnload(true);
    ISDestroyObject(vcef6);
    ISRemoveObject(vcef6);
}
function ISControl_ReplaceElements(v0ef39) {
    var v99b6 = IS.GetTempIFrame();
    var v86433 = v99b6.contentWindow.document;
    var v68b37 = null;
    var v95b45 = null;
    v68b37 = v86433.body;
    v68b37.innerHTML = v0ef39;
    for (var v98f99 = 0; v98f99 < v68b37.childNodes.length; v98f99++) {
        var vfed83 = v68b37.childNodes[v98f99];
        var v88768 = false;
        if (!vfed83.id && vfed83.childNodes.length > 0) {
            vfed83 = vfed83.childNodes[0];
            if (vfed83.id) v88768 = true;
        }
        if (vfed83.id) {
            var v95780 = document.getElementById(vfed83.id);
            if (v95780 != null && v88768) {
                v95780 = v95780.parentNode;
                vfed83 = vfed83.parentNode;
            }
            if (v95780 != null) {
                var va6765 = vfed83.outerHTML;
                if (IS.moz) va6765 = ISMoz.GetOuterHTML(vfed83);
                if (va6765.indexOf("<xml") > -1) {
                    var vd9732 = va6765.indexOf("_x>");
                    if (vd9732 < 0) vd9732 = va6765.indexOf("_x\">") + 1;
                    if (vd9732 < 0) vd9732 = va6765.indexOf("_x'>") + 1;
                    if (va6765.substring(vd9732 + 7, vd9732 + 14) == "[CDATA[") {
                        va6765 = va6765.substr(vd9732 + 3);
                        va6765 = va6765.substr(0, va6765.length - 6);
                        v95780.innerHTML = va6765;
                    }
                } else {
                    Listener.Unload(v95780);
                    IS.SetOuterHTML(v95780, va6765);
                }
                v95b45 = v95780;
                vfed83 = null;
                v95780 = null;
            } else {
                if (!v88768 && v95b45 != null && v95b45.id) {
                    v95b45 = document.getElementById(v95b45.id);
                    if (v95b45 != null) {
                        try {
                            v95b45 = v95b45.insertAdjacentElement("afterEnd", vfed83);
                        } catch (e) {
                            v95b45 = v95b45.insertAdjacentHTML("afterEnd", vfed83.outerHTML);
                        }
                        vfed83 = null;
                        v95780 = null;
                    }
                }
            }
        }
    }
    if (IS.ie) {
        v86433.open("text/plain", "replace");
        v86433.write("");
        v86433.close();
    } else {
        v68b37.innerHTML = "";
    }
}
function doHideWindowPopupsOnKeyDown() {
    var v93c39 = window.event;
    if (v93c39.keyCode == ISKeyboardKey.ESC) doHideWindowPopups();
}
function doHideWindowPopups() {
    var vf4039 = null;
    var v49250 = IS.RuntimeWindowPopups;
    if (event != null) vf4039 = event.srcElement;
    if (vf4039 && (vf4039.isContextMenu || vf4039.cancelBubble)) return false;
    for (var v37a90 = 0; v37a90 < v49250.length; v37a90++) {
        var v3af95 = v49250[v37a90];
        if (v3af95._e != null) {
            if (!v3af95._e.contains(vf4039) && !v3af95._e.keepVisible && v3af95._e.style.visibility != "hidden") {
                var vac219 = true;
                if (v3af95.OnClosed != null) vac219 = ISEvent.Raise(v3af95.OnClosed, v3af95);
                if (vac219) v3af95.hide();
            }
        }
    }
    if (isPopup_CloseAcrossFrameClick && event && (event.button == ISEvent.LEFT || event.button == ISEvent.RIGHT)) {
        var v26a27 = IS.GetTopOpenPopups();
        if (v26a27.length > 0) {
            for (var v37a90 = 0; v37a90 < v26a27.length; v37a90++) {
                var v3af95 = v26a27[v37a90];
                var v1c781 = window.top;
                if (v3af95[0] != "") v1c781 = v1c781.frames[v3af95[0]];
                if (v1c781 == null || typeof (v1c781) == "undefined" || !v1c781) v1c781 = IS.FindFrameRecursive(window.top, v3af95[0], v3af95[2]);
                if (v1c781 != null && typeof (v1c781) != "undefined") {
                    var vf4039 = v1c781.document.getElementById(v3af95[1]);
                    if (IS.moz && vf4039 == document.getElementById(v3af95[1])) continue;
                    if (vf4039 != null) {
                        vf4039.style.visibility = "hidden";
                        v3af95[3].isOpen = false;
                    }
                }
                v26a27[v37a90] = null;
            }
            delete v26a27;
            window.top.IS_OpenPopups = new Array();
        }
    }
}
function doControlSubmit() {
    if (IS.IsObjExists("ValidatorOnSubmit")) return true;
    var v81a25 = true;
    var v7a897 = IS.IsObjExists("Page_IsValid");
    if (v7a897) v81a25 = Page_IsValid;
    var ve8412 = "";
    var v06c66;
    var vba184;
    var v40858 = false;
    if (window.event != null) {
        v40858 = true;
        if (window.event.srcElement != null) ve8412 = window.event.srcElement.id;
        if (ve8412 == "") v40858 = false;
    }
    for (vba184 in IS.RuntimeObjects) {
        v06c66 = IS.RuntimeObjects[vba184];
        if (v06c66 != null && v06c66.HtmlObj != null && ((v06c66.HtmlObj.form == null || v06c66.HtmlObj.form.id == ve8412) || !v40858)) v06c66.PreparePostBackData(3);
    }
    return true;
}
function ISNetPage_ClientValidate(vaed30, vfc854) {
    OverrideSubmitScripts();
    var v5480;
    var v76586;
    Page_InvalidControlToBeFocused = null;
    if (!IS.IsObjExists("Page_Validators")) return true;
    isNetPage_ClientValidateCalled = true;
    Page_IsValid = true;
    var v12864 = false;
    var v1b431;
    var v99e6;
    for (v5480 = 0; v5480 < Page_Validators.length; v5480++) {
        v76586 = Page_Validators[v5480];
        if (IS.GetRuntimeObjectById(v76586.controltovalidate) != null) {
            v76586.isvalid = true;
            if (v76586.enabled != false) {
                if (IS.IsObjExists("IsValidationGroupMatch")) {
                    v12864 = IsValidationGroupMatch(v76586, vaed30);
                    if (!v12864) {
                        ValidatorUpdateDisplay(v76586);
                        if (!v76586.isvalid) {
                            Page_IsValid = false;
                        }
                        continue;
                    }
                }
                if (v12864 == true) {
                    if (typeof (v76586.controltovalidate) == "string" && v76586.controltovalidate != "") {
                        v1b431 = ISGetObject(v76586.controltovalidate);
                        if (v1b431 != null && v1b431.ClassName == "WebInput") v1b431.Validator = v76586;
                    }
                    if (typeof (v76586.controltocompare) == "string" && v76586.controltocompare != "") {
                        v99e6 = ISGetObject(v76586.controltocompare);
                        if (v99e6 != null && v99e6.ClassName == "WebInput") v99e6.Validator = v76586;
                    }
                    if (typeof (v76586.evaluationfunction) == "function") {
                        v76586.isvalid = v76586.evaluationfunction(v76586, true);
                    } else {
                        if (typeof (v76586.evaluationfunction) == "string") v76586.isvalid = eval(v76586.evaluationfunction + "(v76586, true);");
                        if (IS.IsObjExists("ValidatorSetFocus")) {
                            if (!v76586.isvalid && Page_InvalidControlToBeFocused == null && typeof (v76586.focusOnError) == "string" && v76586.focusOnError == "t") ValidatorSetFocus(v76586, null);
                        }
                    }
                }
                v12864 = false;
            }
            ValidatorUpdateDisplay(v76586);
            if (!v76586.isvalid) {
                Page_IsValid = false;
            }
        } else {
            if (vfc854 == true) {
                var v0c374 = v76586.getAttribute("validationGroup");
                if (v0c374 == vaed30) ValidatorValidate(v76586, vaed30, null);
            } else ValidatorValidate(v76586, vaed30, null);
            if (!v76586.isvalid) {
                Page_IsValid = false;
            }
        }
    }
    ValidationSummaryOnSubmit(vaed30);
    Page_BlockSubmit = !Page_IsValid;
    return Page_IsValid;
}
var IS = {
    FrameworkVersion: "3.0.5000.40",
    FrameworkBuild: "40",
    FrameSuffix: "_f",
    FrameHeaderSuffix: "_fh",
    InnerFrameSuffix: "_if",
    XmlSuffix: "_x",
    CSSSuffix: "_css",
    CultureInfoPrefix: "ISCIXml_",
    PopupPrefix: "ISPopup_",
    HiddenDataSuffix: "_h",
    DropDownSuffix: "_dd",
    MaskValidatorSuffix: "_mv",
    FormatValidatorSuffix: "_fv",
    TempSuffix: "_temp",
    TempIFrameID: "TempIFrameID",
    RuntimeObjects: new Array(),
    RuntimeWindowPopups: new Array(),
    ShortcutKeys: new Array(),
    LastAction: "",
    ActiveControlId: "",
    ActiveCtrl: null,
    DebugWnd: null,
    TempIFrame: null,
    ValidationEngine: null,
    ie: null,
    moz: null,
    mozEventType: null,
    UnloadVariables: new Array(),
    StyleCache: new Array(),
    RegisterUnloadVariables: function(vfba34) {
        if (typeof (IS) == "object" && IS.UnloadVariables != null) IS.UnloadVariables[IS.UnloadVariables.length] = vfba34;
    },
    Trace: function(vdb734) {
        if (!IS.DebugWnd) IS.DebugWnd = window.open('', '_search', 'height=' + window.screen.availHeight + ', top=0, left=0, width=300, scrollbars=yes');
        IS.DebugWnd.document.writeln(vdb734 + "<br>");
    },
    GetValidationEngine: function() {
        if (IS.ValidationObject == null) {
            if (typeof (ISBuiltInValidation) == "function") {
                IS.ValidationObject = new ISBuiltInValidation();
            }
        }
        return IS.ValidationObject;
    },
    GetCommonDateFormat: function(vef318, v10a37, v47a67) {
        var v64118 = "";
        var v80c37 = "";
        v80c37 = v10a37.toString();
        if (v80c37.length == 1) v80c37 = "0" + v80c37;
        v64118 = v80c37;
        v80c37 = vef318.toString();
        if (v80c37.length == 1) v80c37 = "0" + v80c37;
        v64118 += "/" + v80c37;
        v80c37 = v47a67.toString();
        if (v80c37.length == 1) v80c37 = "0" + v80c37;
        if (v80c37.length == 2) v80c37 = "19" + v80c37;
        v64118 += "/" + v80c37;
        return v64118;
    },
    GetFullCommonDateTimeFormat: function(v3b092) {
        var vc2373 = "";
        if (v3b092 != null) {
            vc2373 = (v3b092.getMonth() + 1).toString() + "/" + v3b092.getDate() + "/";
            var v24b16 = v3b092.getFullYear().toString();
            if (v24b16.length == 1) v24b16 = "000" + v24b16;
            if (v24b16.length == 2) v24b16 = "00" + v24b16;
            if (v24b16.length == 3) v24b16 = "0" + v24b16;
            vc2373 += v24b16 + " " + (v3b092.getHours().toString().length == 1 ? "0" : "") + v3b092.getHours() + ":" + (v3b092.getMinutes().toString().length == 1 ? "0" : "") + v3b092.getMinutes() + ":" + (v3b092.getSeconds().toString().length == 1 ? "0" : "") + v3b092.getSeconds();
        }
        return vc2373;
    },
    GetTempIFrame: function() {
        if (IS.TempIFrame == null) {
            IS.TempIFrame = document.getElementById(IS.TempIFrameID);
            if (!IS.moz && !IS.safari) {
                var v6f164 = IS.TempIFrame.contentWindow.document;
                var v55265 = v6f164.createElement("BODY");
                v6f164.appendChild(v55265);
            }
        } else IS.TempIFrame.contentWindow.document.body.innerHTML = "";
        return IS.TempIFrame;
    },
    CreateTempIFrame: function() {
        var v89e48 = document.createElement("IFRAME");
        v89e48.id = IS.TempIFrameID;
        v89e48.style.cssText = "WIDTH:1px;HEIGHT:1px;POSITION:absolute;LEFT:-500px;TOP:-500px;TABINDEX:-1;";
        document.body.appendChild(v89e48);
        return v89e48;
    },
    GetRuntimeObjectById: function(v2b723) {
        if (v2b723 == null || v2b723 == "") return null;
        var o, id1;
        if (typeof (v2b723) != "string") id1 = v2b723.Id;
        else id1 = v2b723;
        if (IS.ActiveCtrl != null) {
            if (IS.ActiveCtrl.Id == id1) return IS.ActiveCtrl;
        }
        var v5d784;
        for (v5d784 in IS.RuntimeObjects) {
            var v84c74 = IS.RuntimeObjects[v5d784];
            if (v84c74 != null && typeof (v84c74) == "object" && v84c74.Id == id1) {
                o = v84c74;
                break;
            }
        }
        if (o != null) {
            if (typeof (o.OnPostInitialized) == "function") {
                if (!o.IsOnPostInitialized) {
                    o.OnPostInitialized();
                    o.IsOnPostInitialized = true;
                }
            }
        }
        IS.ActiveCtrl = o;
        return o;
    },
    GetRuntimeObjectByIdWildCard: function(vba034) {
        var o, id1;
        if (typeof (vba034) != "string") id1 = vba034.Id;
        else id1 = vba034;
        var va4595;
        var vfc532;
        for (vfc532 in IS.RuntimeObjects) {
            var v42394 = IS.RuntimeObjects[vfc532];
            if (v42394 == null) continue;
            if (v42394.HtmlObj) va4595 = v42394.HtmlObj.id;
            else va4595 = v42394.Id;
            if (va4595 != null && va4595.indexOf(id1) > -1 && (va4595.indexOf(id1) + id1.length == va4595.length)) {
                o = v42394;
                break;
            }
        }
        return o;
    },
    IsAvailableRuntimeObjectById: function(v77d34) {
        var v3c534 = IS.GetRuntimeObjectById(v77d34);
        return v3c534 != null ? true : false;
    },
    IsObjExists: function(vf5769) {
        var vbed34;
        try {
            eval(vf5769);
            vbed34 = true;
        } catch (e) {
            vbed34 = false;
        }
        return vbed34;
    },
    GetObj: function(v2d769) {
        var v2d969 = null;
        try {
            v2d969 = eval(v2d769);
        } catch (e) { }
        return v2d969;
    },
    GetRuntimeStyleSheet: function(v40a44) {
        var v00469 = document;
        if (v40a44) v00469 = v40a44;
        for (var v62b21 = 0; v62b21 < v00469.styleSheets.length; v62b21++) {
            var v6d346 = v00469.styleSheets[v62b21];
            if (v6d346.name == "ISRuntimeStyle" || v6d346.id == "ISRuntimeStyle") return v6d346;
        }
        if (!IS.ie) {
            var vff451 = v00469.getElementsByTagName("STYLE");
            for (var v62b21 = 0; v62b21 < vff451.length; v62b21++) {
                var v6d346 = vff451[v62b21];
                if (v6d346.name == "ISRuntimeStyle" || v6d346.id == "ISRuntimeStyle") return v6d346;
            }
        }
        return null;
    },
    GetRuntimeStyleSheetExact: function() {
        s = IS.GetRuntimeStyleSheet(document);
        if (!s) s = IS.CreateRuntimeStyleSheet(document);
        return s;
    },
    CreateRuntimeStyleSheet: function(v6cc64) {
        var vded80 = document;
        if (v6cc64) vded80 = v6cc64;
        var vc2779 = vded80.createStyleSheet();
        vc2779.name = "ISRuntimeStyle";
        if (!IS.ie) vc2779.id = vc2779.name;
        if (!IS.ie) {
            var v5aa16 = document.getElementsByTagName("HEAD")[0];
            v5aa16.appendChild(vc2779);
        }
        return vc2779;
    },
    AddRuntimeCssStyle: function(v78219, v9b598) {
        var vafb64 = IS.GetCssObject(null, v78219);
        if (!vafb64) {
            var v90619 = IS.GetRuntimeStyleSheetExact();
            if (v78219.substring(0, 1) != "." && v78219.substring(0, 1) != "#") v78219 = "." + v78219;
            if (IS.ie || IS.safari) v90619.addRule(v78219, v9b598);
            else v90619.innerHTML += v78219 + " { " + v9b598 + " }\n";
        }
    },
    AddCssStyles: function(v19485) {
        if (v19485 == null || v19485 == "") return;
        var vef219 = v19485.split("}");
        var v5f498 = null;
        try {
            v5f498 = document.createStyleSheet();
        } catch (e) {
            return;
        }
        if (IS.ie) {
            for (var v70c50 = 0; v70c50 < vef219.length; v70c50++) {
                var v3d881 = vef219[v70c50] + "}";
                if (v3d881.indexOf("{") > -1) {
                    var va5874 = v3d881.indexOf(".") > -1;
                    var vf0f20 = v3d881.indexOf(".") + 1;
                    var v40566 = v3d881.indexOf("{");
                    var v74061 = v3d881.indexOf("}");
                    var vd3f83 = v3d881.substring(vf0f20, v40566);
                    var va8f58 = v3d881.substring(v40566 + 1, v74061);
                    var v8813 = va8f58.split(';');
                    for (var vc1797 = 0; vc1797 < v8813.length; vc1797++) {
                        if (v8813[vc1797] != "" && v8813[vc1797] != null) v8813[vc1797] += "!important";
                    }
                    va8f58 = v8813.join(';');
                    v5f498.addRule((va5874 ? "." : "") + vd3f83, va8f58);
                }
            }
        } else {
            var v36f46 = document.getElementsByTagName("HEAD")[0];
            v5f498 = document.createElement("style");
            v5f498.innerText = v19485;
            v36f46.appendChild(v5f498);
        }
    },
    AddStyleRule: function(v6f025, v41255, v08a39) {
        if (v6f025 && v08a39 && v08a39 != "") {
            if (v08a39.charAt(0) != ".") v08a39 = "." + v08a39;
            var v4d55 = IS.GetCssText(v41255, v08a39);
            if (v4d55) v6f025.addRule(v08a39, v4d55)
        }
    },
    GetStyleText: function(v69580, ve9b34, va2825) {
        if (ve9b34 == null || ve9b34 == "") return;
        if (ve9b34.charAt(0) != ".") ve9b34 = "." + ve9b34;
        var v1f480 = ve9b34 + "{" + IS.GetCssText(v69580, ve9b34, va2825) + "} \n";
        return v1f480;
    },
    GetCssText: function(v4a099, v4c743, vc1d92) {
        var v19199 = IS.GetCssObject(v4a099, v4c743, null, vc1d92);
        if (v19199) return v19199.cssText;
        else return null;
    },
    GetCssObject: function(vd1c30, vb7311, vd5229, v1a046) {
        if (vb7311 == null || vb7311 == "") return "";
        var t, s;
        var v01e99 = true;
        var vb9943 = null;
        var v7ae92 = null;
        if (vb7311.charAt(0) != ".") vb7311 = "." + vb7311;
        if (vb7311.indexOf(" ") > -1) vb7311 = vb7311.substring(0, vb7311.indexOf(" "));
        if (vb7311.indexOf("-") > -1 && vb7311.indexOf(vd1c30) > -1) {
            s = document.getElementById(vd1c30 + IS.CSSSuffix);
            try {
                if (s.styleSheet.rules.length > 0) rule0 = s.styleSheet.rules[0];
            } catch (e) {
                v01e99 = false;
            }
            if (s && v01e99) {
                for (var v36178 = 0; v36178 < s.styleSheet.rules.length; v36178++) {
                    with (s.styleSheet.rules[v36178]) {
                        if (vb7311 == selectorText) {
                            if (vd5229) t = s.styleSheet.rules[v36178];
                            else t = style;
                            break;
                        }
                    }
                }
            }
        }
        if (v1a046 != false) {
            for (var v36178 = 0; v36178 < IS.StyleCache.length; v36178++) {
                var v63a77 = IS.StyleCache[v36178];
                if (v63a77[0] == vb7311) {
                    if (vd5229) return v63a77[2];
                    else return v63a77[1];
                }
            }
        }
        if (!t) {
            for (var v54656 = 0; v54656 < document.styleSheets.length; v54656++) {
                s = document.styleSheets[v54656];
                var v65e58 = null;
                if (IS.opera || IS.safari || IsGecko30()) v65e58 = s.cssRules;
                else {
                    try {
                        v65e58 = s.rules;
                    } catch (e) {
                        continue;
                    }
                }
                try {
                    var va5f59 = v65e58.length;
                } catch (e) {
                    continue;
                }
                for (var v36178 = 0; v36178 < v65e58.length; v36178++) {
                    with (v65e58[v36178]) {
                        if (typeof (selectorText) == "string" && (vb7311.toLowerCase() == selectorText.toLowerCase() || (IS.opera && vb7311.toLowerCase() == OperaEngine.Escape(selectorText).toLowerCase()))) {
                            if (vd5229) t = v65e58[v36178];
                            else t = style;
                            vb9943 = style;
                            v7ae92 = v65e58[v36178];
                            break;
                        }
                    }
                }
                if (t) break;
            }
        }
        if (v1a046 != false) {
            if (vb9943 != null) IS.StyleCache.push([vb7311, vb9943, v7ae92]);
        }
        return t;
    },
    CheckRequiredFrameworkVersion: function(va685) {
        var v3b821 = IS.FrameworkVersion.replace(/[.]/g, "");
        var v6bb60 = va685.replace(/[.]/g, "");
        return parseInt(v3b821) >= parseInt(v6bb60);
    },
    CheckXmlCompression: function(v21896) {
        if (v21896) {
            if (v21896.firstChild.nodeName == "CompressedXml") {
                var v3a641 = new XmlCompressor();
                var v8d369 = v3a641.Decompress(v21896);
                if (v8d369) {
                    var vf5299 = ISXml.CreateXmlDocument();
                    vf5299.loadXML(v8d369.childNodes[0].childNodes[0].childNodes[0].xml);
                    v8d369 = null;
                    return vf5299;
                }
            }
        }
        return null;
    },
    CompressXmlState: function(v21f51) {
        var v7db96 = ISXml.CreateXmlDocument();
        v7db96.loadXML(v21f51);
        var vd7b48 = new XmlCompressor(v7db96);
        var v69b85 = vd7b48.Compress(v7db96);
        var v87656 = v69b85.xml;
        v69b85 = null;
        v7db96 = null;
        delete v69b85;
        delete v7db96;
        return v87656;
    },
    SetPropertiesRecursive: function(vf0146, vecb26, v5e289) {
        if (!v5e289) IS.SetProperties(vf0146, vecb26);
        var v77835 = 0;
        for (v77835 = 0; v77835 < vecb26.childNodes.length; v77835++) {
            var v9eb68 = vecb26.childNodes[v77835];
            var v92b18 = vf0146[v9eb68.nodeName];
            if (v92b18 == null) {
                try {
                    cObjFn = eval(v9eb68.nodeName);
                    v92b18 = new cObjFn();
                } catch (e) { }
            }
            if (v92b18 != null) {
                if (v92b18.constructor == Array) {
                    v92b18.XmlNode = v9eb68;
                    v92b18.Parent = vf0146;
                    for (var v5d579 = 0; v5d579 < v9eb68.childNodes.length; v5d579++) {
                        var v7c770 = v9eb68.childNodes[v5d579];
                        var v93741 = eval(v7c770.nodeName);
                        var v64752 = new v93741();
                        IS.SetProperties(v64752, v7c770, vf0146);
                        if (v7c770.childNodes.length > 0) {
                            IS.SetPropertiesRecursive(v64752, v7c770, true);
                        }
                        v92b18[v92b18.length] = v64752;
                    }
                } else {
                    IS.SetProperties(v92b18, v9eb68, vf0146);
                    if (v9eb68.childNodes.length > 0) {
                        IS.SetPropertiesRecursive(v92b18, v9eb68, true);
                    }
                }
            }
        }
        if (typeof (vf0146.OnSetPropertiesRecursive) == "function") vf0146.OnSetPropertiesRecursive();
    },
    SetProperties: function(v00137, vacf74, v12e92) {
        if (v00137 != null && vacf74 != null) {
            var attrs, t, nm, v;
            attrs = vacf74.attributes;
            var v47d65 = new Array();
            var v77335 = 0;
            for (var v65c56 = 0; v65c56 < attrs.length; v65c56++) {
                with (attrs.item(v65c56)) {
                    nm = name;
                    v = value.toString();
                }
                t = typeof (v00137[nm]);
                if (t == "undefined") v00137[nm] = undefined;
                switch (t) {
                    case "number":
                        v00137[nm] = parseFloat(v);
                        break;
                    case "string":
                        v00137[nm] = v;
                        if (nm.indexOf("Style") > -1 && nm.indexOf("Style") == nm.length - 5) {
                            v47d65[v77335] = nm;
                            v77335++;
                        }
                        break;
                    case "boolean":
                        v00137[nm] = v.toLowerCase() == "true" ? true : false;
                        break;
                    case "undefined":
                        v00137[nm] = (v != "True" && v != "False") ? v : (v == "True" ? true : false);
                        if (nm.indexOf("Style") > -1 && nm.indexOf("Style") == nm.length - 5) {
                            v47d65[v77335] = nm;
                            v77335++;
                        }
                        break;
                    case "object":
                        if (v00137[nm] != null) {
                            if (v00137[nm].constructor == Array && v.length > 0) v00137[nm] = v.replace(/(^\s+)|\s+$/g, "").split(";");
                        } else {
                            if (v == "True" || v == "False") v00137[nm] = v == "True";
                            else if (!isNaN(parseFloat(v))) v00137[nm] = parseFloat(v);
                            else v00137[nm] = v;
                        }
                        break;
                }
            }
            for (var v65c56 = 0; v65c56 < v47d65.length; v65c56++) {
                vacf74.removeAttribute(v47d65[v65c56]);
            }
            v00137.XmlNode = vacf74;
            if (v12e92 != null) {
                if (typeof (v00137.XmlPath) == "string") {
                    v00137.Parent = v12e92;
                }
            }
            if (typeof (v00137.OnPropertiesInitialized) == "function") {
                v00137.OnPropertiesInitialized("OnInitialize");
            }
        }
    },
    SetModifiedPropertiesToXml: function(v13a17, v17219, vc5634, v9ae28) {
        if (v13a17 != null && v17219 != null) {
            if (v13a17._Type != null) {
                var v8f792 = eval(v13a17._Type);
                var vf1453 = new v8f792();
                for (prop in v13a17) {
                    var vbc278 = v13a17[prop];
                    if (vbc278 != null && vbc278.constructor != Array && typeof (vbc278) != "object" && typeof (vbc278) != "function") {
                        var va6033 = v13a17.OriginalXmlNode;
                        var ve8280 = null;
                        if (va6033 != null) ve8280 = ISXml.GetAttribute(va6033, prop);
                        if (vbc278 != vf1453[prop] || (vbc278 == vf1453[prop] && ve8280 != null && ve8280 != vbc278) || (vbc278 == vf1453[prop] && ISXml.GetAttribute(v17219, prop) != null && vbc278 != ISXml.GetAttribute(v17219, prop))) {
                            var vb6e68 = vbc278.toString();
                            var va2093 = "Attribute";
                            if (typeof (vbc278) == "boolean") vb6e68 = (vb6e68 == "true" ? "True" : "False");
                            if (typeof (v13a17.GetElementType) == "function") va2093 = v13a17.GetElementType(prop);
                            if (va2093 == "Attribute") ISXml.SetAttribute(v17219, prop, vb6e68);
                            else if (va2093 == "CDATA") ISXml.CreateCDATA(v17219.ownerDocument, v17219, prop, vb6e68);
                        }
                    } else if (vc5634 && vbc278 != null && typeof (vbc278) == "object" && typeof (vbc278._Type) == "string" && prop != "Parent") {
                        var v31648 = null;
                        var vcc341 = true;
                        if (v9ae28 && vbc278.XmlNode == null && (typeof (vbc278._UIState) == "undefined" || (typeof (vbc278._UIState) == "string" && vbc278._UIState != "Changed"))) vcc341 = false;
                        if (vcc341) {
                            if (v13a17.XmlNode.selectSingleNode(prop) != null) v31648 = v13a17.XmlNode.removeChild(v13a17.XmlNode.selectSingleNode(prop));
                            var vfbe37 = ISXml.CreateNode(v13a17.XmlNode.ownerDocument, v13a17.XmlNode, prop, "");
                            if (!vbc278.OriginalXmlNode) vbc278.OriginalXmlNode = v31648;
                            vbc278.XmlNode = vfbe37;
                            IS.SetModifiedPropertiesToXml(vbc278, vfbe37, vc5634, v9ae28);
                            v13a17.XmlNode.appendChild(vfbe37);
                        }
                    }
                }
                if (typeof (v13a17.OnUpdate) == "function") v13a17.OnUpdate(v17219);
            }
        }
    },
    SetPropertiesToXml: function(v3ea28, v8c177) {
        if (v3ea28 != null && v8c177 != null) {
            var attrs, attr, a, nm;
            attrs = v8c177.attributes;
            for (var v56e56 = 0; v56e56 < attrs.length; v56e56++) {
                attr = attrs.item(v56e56);
                nm = attr.name;
                if (v3ea28[nm] != null) {
                    if (v3ea28[nm].constructor != Array) attr.value = v3ea28[nm].toString();
                    else {
                        var v05c38 = "";
                        for (var v54b68 = 0; v54b68 < v3ea28[nm].length; v54b68++) {
                            v05c38 += v3ea28[nm][v54b68].toString() + ";";
                        }
                        if (v05c38.length > 0) v05c38 = v05c38.substr(0, v05c38.length - 1);
                        attr.value = v05c38;
                    }
                } else attr.value = "";
            }
        }
    },
    GetIEVersion: function() {
        var v59583 = window.navigator.userAgent;
        var v51356 = v59583.indexOf("MSIE");
        var v54390 = v59583.indexOf(";", v51356 + 1);
        if (v54390 == -1) v54390 = v59583.length - 1;
        var v7c338 = v59583.substring(v51356, v54390);
        v51356 = v7c338.indexOf(".");
        var v21711 = Number(v7c338.substring(v51356 - 1, v51356 + 2));
        return v21711;
    },
    GetInputCtlName: function(vd8d14) {
        if (vd8d14.name != "") return vd8d14.name;
        else return vd8d14.id;
    },
    GetFormAction: function(va0772) {
        var v27897 = va0772.toLowerCase();
        var v3e964 = v27897.indexOf("<form");
        var v4b276 = "";
        if (v3e964 > -1) {
            var vabb26 = v27897.indexOf("action", v3e964);
            var v67331 = v27897.indexOf(">", v3e964);
            if (vabb26 < v67331) {
                var veee74 = v27897.indexOf('"', vabb26);
                var v40c68 = v27897.indexOf('"', veee74 + 1);
                v4b276 = va0772.substring(veee74 + 1, v40c68);
            }
        }
        return v4b276;
    },
    DecodeAmpersand: function(v12b8) {
        return v12b8.replace(/&/g, "&amp;");
    },
    SetWidth: function(vea18, vcde22) {
        if (IS.ie || IS.safari || IS.opera || IsGecko30()) vea18.style.width = IS.MakePixel(vcde22);
        else ISMoz.SetWidth(vea18, vcde22);
    },
    SetCellWidth: function(vaab44, vb6792) {
        if (IS.safari) {
            var v3af44 = vaab44.parentElement.parentElement;
            if (v3af44.tagName != "TABLE") v3af44 = v3af44.parentElement;
            v3af44.style.tableLayout = "";
            vaab44.style.width = vb6792;
            setTimeout(function() {
                v3af44.style.tableLayout = "fixed";
            },
            1);
        } else vaab44.style.width = vb6792;
    },
    SetHeight: function(v4bd64, vaf22) {
        if (IS.ie) v4bd64.style.height = vaf22;
        else ISMoz.SetHeight(v4bd64, vaf22);
    },
    RenderControl: function(vd4a83, v40411) {
        var v70964 = ISGetObject(vd4a83);
        var v90c2 = false;
        if (v70964 != null) {
            ISControl_Dispose(vd4a83);
            ISControl_ReplaceElements(v40411);
            v90c2 = true;
        } else {
            v70964 = document.getElementById(vd4a83);
            if (!v70964 && vd4a83.indexOf("_") > -1) {
                var v60e31 = vd4a83.substring(vd4a83.lastIndexOf("_") + 1);
                if (v60e31) v70964 = document.getElementById(v60e31);
            }
        }
        if (v70964 && !v90c2) {
            if (v40411 != "") IS.ReplaceHtmlElements(v70964, v40411);
            else v70964.outerHTML = "<span id=\"" + vd4a83 + "\"></span>";
        }
    },
    ReplaceHtmlElements: function(v8f258, veaa0) {
        var v4853 = IS.GetTempIFrame();
        var va3921 = v4853.contentWindow.document;
        var v21365 = null;
        v21365 = va3921.body;
        v21365.innerHTML = veaa0;
        if (v21365.children.length == 1) v8f258.outerHTML = veaa0;
        else {
            for (var v8f459 = 0; v8f459 < v21365.children.length; v8f459++) {
                if (v8f258) {
                    v8f258.outerHTML = v21365.children[v8f459].outerHTML;
                    v8f258 = v8f258.nextSibling;
                }
            }
        }
        if (IS.ie) {
            va3921.open("text/plain", "replace");
            va3921.write("");
            va3921.close();
        } else {
            v21365.innerHTML = "";
        }
    },
    SetValue: function(v49c13, v70879) {
        var vcd813 = document.getElementById(v49c13);
        if (vcd813 && typeof (vcd813.value) != "undefined") vcd813.value = v70879;
        else alert("Control '" + v49c13 + "' is not an input control!");
    },
    SetStyle: function(vb1033, v98388) {
        var v8c549 = document.getElementById(vb1033);
        if (v98388 != "") v98388 = v98388.replace(new RegExp("%29", "g"), ")");
        if (v8c549 && typeof (v8c549.style) != "undefined") {
            var vac748 = v8c549.style.position;
            var v81e54 = v8c549.style.left;
            var v4f06 = v8c549.style.top;
            v8c549.style.cssText = v98388;
            v8c549.style.position = vac748;
            v8c549.style.left = v81e54;
            v8c549.style.top = v4f06;
        } else alert("Control '" + vb1033 + "' doesn't support CSS Style!");
    },
    SetOuterHTML: function(vee780, v62e16) {
        try {
            vee780.outerHTML = v62e16;
        } catch (e) {
            if (IS.ie && v62e16 != "") {
                var ve905 = document.createElement(vee780.tagName);
                var v27e27;
                ve905.innerHTML = v62e16;
                if (ve905.childNodes.length > 0) {
                    v27e27 = ve905.childNodes[0];
                    ve905.removeNode(false);
                }
                var vdac39 = vee780.parentElement;
                vdac39.insertBefore(v27e27, vee780);
                vdac39.removeChild(vee780);
            }
        }
    },
    EnsurePureArray: function() {
        if (typeof (RuntimeVersion) == "string" || Array.__typeName == "Array") return;
        for (p in Array.prototype) delete Array.prototype[p];
    },
    GetAttr: function(v48899, vc0b26) {
        if (v48899 != null) {
            if (!v48899.attributes) return "";
            if (v48899.attributes[vc0b26]) return v48899.attributes[vc0b26].value;
            else {
                if (v48899[vc0b26]) return v48899[vc0b26];
            }
        }
        return "";
    },
    GetEventType: function(v2fc19) {
        if (!v2fc19) v2fc19 = window;
        if (IS.ie) {
            return v2fc19.event.type;
        } else {
            var v58b19;
            try {
                v58b19 = v2fc19.event.type;
            } catch (e) {
                v58b19 = IS.mozEventType;
            }
            return v58b19;
        }
    },
    UpdateViewState: function(v8a738) {
        var vc7655 = document.getElementById("__VIEWSTATE");
        if (vc7655) vc7655.value = v8a738;
    },
    IsXHTMLDocType: function() {
        var v3ed74 = document.childNodes[0];
        if (v3ed74 != null && (typeof (v3ed74.tagName) == "undefined" || v3ed74.tagName.toLowerCase() != "html")) v3ed74 = document.childNodes[1];
        return v3ed74 != null && v3ed74.tagName == "HTML" && v3ed74.attributes["xmlns"] != null && v3ed74.attributes["xmlns"].value.toLowerCase().indexOf("xhtml") > -1;
    },
    GetTopOpenPopups: function() {
        var v57610 = window;
        if (window.top != v57610) v57610 = window.top;
        if (typeof (v57610.IS_OpenPopups) == "undefined") v57610.IS_OpenPopups = new Array();
        else {
            try {
                var v0a284 = v57610.IS_OpenPopups.toString();
            } catch (e) {
                v57610.IS_OpenPopups = null;
                v57610.IS_OpenPopups = new Array();
            }
        }
        return v57610.IS_OpenPopups;
    },
    FindFrameRecursive: function(v80465, v4c363, vf8714) {
        for (var v2c529 = 0; v2c529 < v80465.frames.length; v2c529++) {
            var ve0993 = v80465.frames[v2c529];
            if (ve0993.name == v4c363 && ve0993.location.pathname == vf8714) return ve0993;
            else {
                ve0993 = IS.FindFrameRecursive(ve0993, v4c363, vf8714);
                if (ve0993 != null && typeof (ve0993) != undefined) return ve0993;
            }
        }
    },
    GetInnerText: function(vf3585) {
        if (IS.safari) return vf3585.innerTextEx;
        else return vf3585.innerText;
    },
    GetSymbol: function(vd4440, v85e52, vfab66) {
        var v8a168 = false;
        if (IS.ie) v8a168 = true;
        else if (IS.moz && !IsGecko30()) v8a168 = true;
        if (v8a168) {
            if (vfab66) return v85e52;
            else return "<font face='Webdings' style='font-size: 8pt'>" + v85e52 + "</font>";
        } else {
            var vff813 = vd4440.WebResourceIdentifier;
            var ve9c29 = "";
            vd4440.WebResourceIdentifier = "F";
            ve9c29 = vd4440.ResolveImagePath(vd4440.ImagesDirectory, "webdings_" + v85e52 + ".gif");
            if (ve9c29.indexOf(".") == -1) ve9c29 = vd4440.ResolveImagePath("webdings_" + v85e52 + ".gif");
            vd4440.WebResourceIdentifier = vff813;
            if (vfab66) return ve9c29;
            else return "<img valign='absmiddle' src='" + ve9c29 + " ' />";
        }
        return "";
    },
    GetAppDomainPath: function() {
        var v43460 = IS_AppDomainAppVirtualPath;
        if (v43460) {
            if (v43460.length > 1 && v43460.substring(v43460.length - 1, 1) != "/") v43460 += "/";
        }
        return v43460;
    },
    GetSilverlightVersion: function() {
        var v8fc96 = "";
        var v5f131 = null;
        try {
            var v6c351 = null;
            if (window.navigator.userAgent.indexOf('MSIE') >= 0) v6c351 = new ActiveXObject('AgControl.AgControl');
            else {
                if (navigator.plugins['Silverlight Plug-In']) {
                    v5f131 = document.createElement('div');
                    document.body.appendChild(v5f131);
                    v5f131.innerHTML = '<embed type="application/x-silverlight" src="data:," />';
                    v6c351 = v5f131.childNodes[0];
                }
            }
            if (v6c351) {
                if (v6c351.isVersionSupported('2.0')) {
                    v8fc96 = 'Silverlight/2.0';
                } else if (v6c351.isVersionSupported('1.1')) {
                    v8fc96 = 'Silverlight/1.1';
                } else if (v6c351.isVersionSupported('1.0')) {
                    v8fc96 = 'Silverlight/1.0';
                }
            }
        } catch (e) { }
        if (v5f131) document.body.removeChild(v5f131);
        return v8fc96;
    },
    IsRightToLeft: function(vbca99) {
        var vc0199 = vbca99.currentStyle.direction;
        return vc0199 == "rtl";
    },
    AddScript: function(v11590) {
        var vaa135 = document.getElementsByTagName("script");
        var v13150 = true;
        for (var v50a85 = 0; v50a85 < vaa135.length; v50a85++) {
            var va1b37 = vaa135[v50a85];
            if (va1b37.src != "" && va1b37.src.toLowerCase().indexOf(v11590.toLowerCase()) > -1) {
                v13150 = false;
                break;
            }
        }
        if (v13150) {
            var vcf815 = document.getElementsByTagName("head")[0];
            var va1b37 = document.createElement("script");
            va1b37.type = "text/javascript";
            va1b37.src = v11590;
            vcf815.appendChild(va1b37);
        }
    },
    EncodeHtml: function(v4c610) {
        var v84626 = v4c610.replace(/[&]/g, "&amp;");
        v84626 = v84626.replace(/[<]/g, "&lt;");
        v84626 = v84626.replace(/[>]/g, "&gt;");
        return v84626;
    },
    GenerateRandomNumber: function() {
        return (((1 + Math.random()) * 0x10000) | 0).toString(16).substring(1);
    },
    CreateGUID: function() {
        return (IS.GenerateRandomNumber() + IS.GenerateRandomNumber() + "-" + IS.GenerateRandomNumber() + "-" + IS.GenerateRandomNumber() + "-" + IS.GenerateRandomNumber() + "-" + IS.GenerateRandomNumber() + IS.GenerateRandomNumber() + IS.GenerateRandomNumber());
    },
    MakePixel: function(v31710) {
        if (typeof (v31710) == "number") return v31710 + "px";
        if (v31710 != null && v31710.toString().indexOf("px") == -1 && !isNaN(parseFloat(v31710))) return v31710.toString() + "px";
    },
    StringBuilder: function() {
        this.Data = new Array();
        this.Append = function(vb8a45) {
            this.Data.push(vb8a45);
        };
        this.Clear = function() {
            this.Data = null;
            this.Data = new Array();
        };
        this.ToString = function() {
            return this.Data.join("");
        }
    },
    RegisterBoxSizing: function(vf9b45) {
        if (IsIE8StandardMode() || !IS.ie) IS.AddRuntimeCssStyle("#" + vf9b45 + "_f *", "box-sizing: border-box; -moz-box-sizing: border-box; -webkit-box-sizing: border-box;");
    }
};
IS.ie = /MSIE/.test(navigator.userAgent);
IS.moz = !IS.ie && navigator.product == "Gecko";
IS.opera = !IS.ie && !IS.moz && /Opera/.test(navigator.userAgent);
IS.safari = /Safari/.test(navigator.userAgent);
IS.khtml = !IS.safari && /KHTML/.test(navigator.userAgent);
IS.mac = /Macintosh/.test(navigator.userAgent);
IS.chrome = /Chrome/.test(navigator.userAgent);
IS.w3c = false;
IS.w3cs = false;
if (IS.moz || IS.opera || IS.safari || IS.chrome || (IS.ie && IS.GetIEVersion() >= 8)) {
    IS.w3c = true;
    if (IS.IsXHTMLDocType()) IS.w3cs = true;
}
if (IS.safari) IS.moz = false;

function ISObject() {
    this.Parent = null;
    this.XmlNode = null;
    this.XmlPath = "";
    this.IsSerialized = false;
    this.Get = function(vd1422) {
        if (typeof (this.__getter) == "function") {
            var vaff2 = this.__getter(vd1422);
            if (typeof (vaff2) == "undefined") return this[vd1422];
            else return vaff2;
        }
        return this[vd1422];
    };
    this.Set = function(vd1422, vd9572, vdc124) {
        this[vd1422] = vd9572;
        if (vdc124) {
            if (this.XmlNode) {
                var ve9b93 = ISXml.GetNode(this.XmlNode, vd1422);
                if (ve9b93) {
                    ISXml.RemoveNode(this.XmlNode, vd1422);
                    ISXml.CreateCDATA(this.XmlNode.ownerDocument, this.XmlNode, vd1422, vd9572);
                } else {
                    if (typeof (vd9572) == "boolean") {
                        if (vd9572) vd9572 = "true";
                        else vd9572 = "false";
                    }
                    ISXml.SetAttribute(this.XmlNode, vd1422, vd9572);
                }
            }
        }
        if (typeof (this.__setter) == "function") {
            this.__setter(vd1422, vd9572, vdc124);
        }
    };
    this.CopyFrom = function(v25c77) {
        var vee138;
        for (vee138 in this) {
            var v85482 = this[vee138];
            if (typeof (v85482) != "function") {
                this[vee138] = v25c77[vee138];
            }
        }
    };
    this.GetType = function() {
        if (this.ClassName) return this.ClassName;
        else return this._Type;
    };
    this.SetChanged = function() {
        if (this._UIState) this._UIState = "Changed";
    };
    this.toString = function() {
        if (this.GetType() != "") return "[object " + this.GetType() + "]";
        return "[object Object]";
    };
}
function ISArray() {
    var v11461 = new Array();
    ISDeleteObjectPermanent(v11461);
    v11461.Parent = null;
    v11461.XmlNode = null;
    v11461._Type == "ISArray";
    v11461.GetNamedItem = function(vc7027) {
        for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
            if (this[vc7621] != null && this[vc7621].Name == vc7027) return this[vc7621];
        }
        return null;
    };
    v11461.GetItemByProperty = function(vd5327, vc7027) {
        for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
            if (this[vc7621] != null && this[vc7621][vd5327] == vc7027) return this[vc7621];
        }
        return null;
    };
    v11461.Add = function(v1e763) {
        if (typeof (v1e763._UIState) == "string") v1e763._UIState = "Added";
        if (typeof (v1e763.Position) == "number") v1e763.Position = this.length;
        if (typeof (v1e763.Index) == "number") v1e763.Index = this.length;
        if (this.Parent != null) v1e763.Parent = this.Parent;
        if (typeof (v1e763.OnPropertiesInitialized) == "function") v1e763.OnPropertiesInitialized("OnAdd");
        this[this.length] = v1e763;
        if (typeof (v1e763.OnAdd) == "function") v1e763.OnAdd();
        return v1e763;
    };
    v11461.Remove = function(v1e763, v30c38) {
        if (typeof (v1e763._UIState) == "string") v1e763._UIState = "Removed";
        if (!v30c38) {
            var vc7621 = this.IndexOf(v1e763);
            if (vc7621 != -1) v11461.splice(vc7621, 1);
            if (typeof (v1e763.OnRemove) == "function") v1e763.OnRemove();
        } else {
            this.ReindexPosition();
        }
        return v1e763;
    };
    v11461.RemoveAt = function(v89918, v30c38) {
        var v64e93 = this[v89918];
        this.Remove(v64e93, v30c38);
        return v64e93;
    };
    v11461.InsertAt = function(v1e763, v89918) {
        if (typeof (v1e763._UIState) == "string") v1e763._UIState = "Added";
        if (typeof (v1e763.Position) == "number") v1e763.Position = v89918;
        if (typeof (v1e763.Index) == "number") v1e763.Index = v89918;
        if (this.Parent != null) v1e763.Parent = this.Parent;
        if (typeof (v1e763.OnPropertiesInitialized) == "function") v1e763.OnPropertiesInitialized("OnInsert");
        if (typeof (v1e763.OnInsert) == "function") v1e763.OnInsert(v89918);
        this.splice(v89918, 0, v1e763);
        this.ReindexPosition();
        return v1e763;
    };
    v11461.Move = function(vace21, v52457) {
        var v64e93 = this[vace21];
        v64e93.OldPosition = vace21;
        this.RemoveAt(vace21);
        this.InsertAt(v64e93, v52457);
        if (typeof (v64e93._UIState) == "string") v64e93._UIState = "PositionChanged";
    };
    v11461.ReindexPosition = function() {
        if (this.length > 0) {
            if (typeof (this[0].Position) == "number" || typeof (this[0].Index) == "number") {
                for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
                    if (typeof (this[vc7621].Position) == "number") this[vc7621].Position = vc7621;
                    else if (typeof (this[vc7621].Index) == "number") this[vc7621].Index = vc7621;
                }
            }
        }
    };
    v11461.IndexOf = function(v64e93) {
        for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
            if (this[vc7621] == v64e93) return vc7621;
        }
        return -1;
    };
    v11461.Clear = function() {
        for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
            this[vc7621] = null;
        }
        this.length = 0;
    };
    v11461.InitializeFrom = function(v1e763) {
        this.XmlNode = v1e763.XmlNode;
        this.Parent = v1e763.Parent;
    };
    v11461.CopyFrom = function(v1e763) {
        for (var vc7621 = 0; vc7621 < v1e763.length; vc7621++) {
            var v64e93 = v1e763[vc7621];
            this.Add(v64e93);
        }
    };
    v11461.UpdateChanges = function(vaef77) {
        if (this.XmlNode != null) {
            this.ReindexPosition();
            if (vaef77) {
                for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
                    var v64e93 = this[vc7621];
                    if (!v64e93.OriginalXmlNode) v64e93.OriginalXmlNode = v64e93.XmlNode;
                }
            }
            for (var vc7621 = 0; vc7621 < this.XmlNode.childNodes.length; vc7621++) {
                var v2cc40 = this.XmlNode.removeChild(this.XmlNode.childNodes[vc7621]);
                vc7621--;
                v2cc40 = null;
            }
            for (var vc7621 = 0; vc7621 < this.length; vc7621++) {
                var v6633 = this[vc7621];
                if (v6633._Type != "") {
                    var va4559 = ISXml.CreateNode(this.XmlNode.ownerDocument, this.XmlNode, v6633._Type, "");
                    v6633.XmlNode = va4559;
                    IS.SetModifiedPropertiesToXml(v6633, va4559, vaef77);
                    this.XmlNode.appendChild(va4559);
                }
            }
            if (vaef77 && this.Parent != null && this.Parent.XmlNode != null) {
                var v86b70 = this.Parent.XmlNode.selectSingleNode(this.XmlNode.nodeName);
                if (v86b70 != null) this.Parent.XmlNode.removeChild(v86b70);
                this.Parent.XmlNode.appendChild(this.XmlNode);
            }
        }
    };
    return v11461;
}
var oIdx = -1;

function ISBaseControl() {
    ISObject.call(this);
    oIdx++;
    this.Index = oIdx;
    this.Register = function(v23b77) {
        ISEvent.Raise(window.OnIntersoftControlRegister, v23b77);
        IS.RuntimeObjects[IS.RuntimeObjects.length] = v23b77;
    };
}
function ISControl(v2a018) {
    if (v2a018 == null) return;
    this.FrameObj = null;
    if (this.RequiredFrameworkVersion) {
        if (!IS.CheckRequiredFrameworkVersion(this.RequiredFrameworkVersion)) {
            alert(this.ClassName + " component requires WebUI.NET Framework Version " + this.RequiredFrameworkVersion + ", current Framework Version is " + IS.FrameworkVersion + "\nPlease update the Framework by using Update Manager.");
        }
    }
    with (document) {
        this.HtmlObj = getElementById(v2a018);
        this.FrameObj = getElementById(v2a018 + IS.FrameSuffix);
    }
    if (!this.FrameObj) this.FrameObj = this.HtmlObj;
    this.XmlDt = ISXml.GetElementById(v2a018 + IS.XmlSuffix);
    var v58349 = IS.CheckXmlCompression(this.XmlDt);
    if (v58349) this.XmlDt = v58349;
    if (this.XmlDt) {
        var v02275 = ISXml.GetAttribute(this.XmlDt.documentElement, "xmlInputHiddenUniqueID");
        if (v02275) {
            this.xmlInputHiddenUniqueID = v02275;
            this.XmlDt.documentElement.removeAttribute("xmlInputHiddenUniqueID");
        }
    }
    if (this.HtmlObj != null) {
        if (this.HtmlObj.form == null) {
            var ve3336 = this.HtmlObj.parentNode;
            while (ve3336 != null) {
                if (ve3336.tagName != "FORM") ve3336 = ve3336.parentNode;
                else {
                    this.HtmlObj.form = ve3336;
                    break;
                }
            }
        }
    }
    this.Id = v2a018;
    this.LastAction = "";
    this.IsInit = false;
    this.ServerUniqueID = "";
    this.XmlCompressionEnabled = false;
    this.Events = null;
    this.EnableWebResources = "Auto";
    this.UseWebResourcesForClient = false;
    this.UseWebResourcesForScript = false;
    this.WebResourceIdentifier = "F";
    this.ContentEncoding = "Unicode";
    this.SharedScriptDirectory = "/CommonLibrary/Shared/";
    if (typeof (IS_ReleaseType) != "undefined" && IS_ReleaseType == "Beta") this.SharedScriptDirectory = "/CommonLibraryBeta/Shared/";
    ISBaseControl.call(this);
    this.IsOnPostInitialized = false;
    this.OnPostInitialized = function() { };
    this.ReBindingPostBackData = function() { };
    this.PrepareAdditionalPostBackData = function() { };
    this.PreparePostBackData = function(v73918) {
        this.ReBindingPostBackData(v73918);
        if (!this.xmlInputHiddenUniqueID) return;
        var v9bb90 = document.getElementById(this.xmlInputHiddenUniqueID);
        if (v9bb90 == null) v9bb90 = document.getElementById(this.xmlInputHiddenUniqueID.replace(/:/g, "_"));
        if (v9bb90 == null) v9bb90 = document.getElementById(this.xmlInputHiddenUniqueID.replace(/\$/g, "_"));
        if (v9bb90) {
            if (typeof (this.CustomStateString) == "string") v9bb90.value = escape(this.CustomStateString);
            else v9bb90.value = escape(this.XmlDt.documentElement.xml);
        }
        this.PrepareAdditionalPostBackData(v73918);
    };
    if (this.XmlDt) {
        var vc2a47 = this.XmlDt.documentElement;
        if (vc2a47) {
            var v0f773 = vc2a47.selectSingleNode("ClientSideEvents");
            if (v0f773) {
                this.Events = ISEvent.Register(this.HtmlObj, v0f773);
                v0f773.parentNode.removeChild(v0f773);
            }
        }
    }
    this.SetFocus = function() {
        if (this.FrameObj) {
            this.FrameObj.focus();
        }
    };
    this.Hide = function() {
        if (this.FrameObj) {
            this.FrameObj.style.display = "none";
        }
    };
    this.Show = function() {
        if (this.FrameObj) {
            this.FrameObj.style.display = "";
        }
    };
    this.GetFrameElement = function() {
        return this.FrameObj;
    };
    this.GetControlElement = function() {
        return this.HtmlObj;
    };
    this.ResolveImagePath = this._ResolveImagePath = function(v43c54, v1e731) {
        var v28f73 = "";
        if (v1e731 != "") {
            if (v1e731.substring(0, 1) == "/" || v1e731.substring(0, 1) == "." || v1e731.indexOf("ISRes") > -1) v28f73 = v1e731;
            else {
                if (this.UseWebResourcesForClient) {
                    v28f73 = v1e731.replace("/", ".");
                    v28f73 = IS.GetAppDomainPath() + "ISRes.axd?" + this.WebResourceIdentifier + "/" + v28f73;
                } else v28f73 = v43c54 + v1e731;
            }
        }
        if (IS.ie && v28f73 != "") {
            if (document.location.protocol.toLowerCase() == "https:") {
                var v96d48 = IS.GetAppDomainPath();
                if ((v28f73.indexOf(v96d48) > -1 && v96d48.length > 1) || v28f73.substring(0, 1) == "/") v96d48 = "";
                v28f73 = "https://" + document.location.host + v96d48 + v28f73;
            }
        }
        return v28f73;
    };
    this.ResolveScriptPath = function(v43c54, v5a641) {
        if (v43c54 == this.ScriptDirectory) {
            if (this.UseWebResourcesForScript) {
                v5a641 = v5a641.replace("/", ".");
                return "ISRes.axd?" + this.WebResourceIdentifier + "/" + v5a641 + "/01";
            } else return v43c54 + v5a641;
        } else return v43c54 + v5a641;
    };
    this.GetServerID = function() {
        var vce937 = this.ServerUniqueID;
        var v29f7 = vce937.lastIndexOf("$");
        return vce937.substring(v29f7 + 1);
    };
    this.IsUnicodeEncoding = function() {
        return this.ContentEncoding.indexOf("Unicode") > -1;
    };
    this.Register(this);
}
var ISPosLib = {
    getIeBox: function(v3fc40) {
        return this.ie && v3fc40.document.compatMode != "CSS1Compat";
    },
    getClientLeft: function(v6a440) {
        if (IS.ie) {
            var v40240 = v6a440.getBoundingClientRect();
            return v40240.left - this.getBorderLeftWidth(this.getCanvasElement(v6a440));
        } else return ISMoz.GetClientLeft(v6a440);
    },
    getClientTop: function(vce660) {
        if (IS.ie) {
            var v01c60 = vce660.getBoundingClientRect();
            return v01c60.top - this.getBorderTopWidth(this.getCanvasElement(vce660));
        } else return ISMoz.GetClientTop(vce660);
    },
    getLeft: function(vb3379) {
        var v45960 = this.getCanvasElement(vb3379);
        var v23489 = v45960.scrollLeft;
        var vdfd25 = 0;
        return this.getClientLeft(vb3379) + v23489 - vdfd25;
    },
    getRight: function(veaa79) {
        return this.getLeft(veaa79) + this.getWidth(veaa79);
    },
    getRightW3C: function(v50579) {
        return this.getLeftW3C(v50579) + this.getWidth(v50579);
    },
    getTop: function(v8bb79) {
        return this.getClientTop(v8bb79) + this.getCanvasElement(v8bb79).scrollTop;
    },
    getTopW3C: function(vd1079) {
        var v7fa79 = 0;
        if (IS.IsXHTMLDocType()) {
            v7fa79 = this.getClientTop(vd1079);
            if (IS.ie || IS.safari || IS.chrome) v7fa79 += this.getScrollTop(this.getDocumentElement(vd1079));
        } else v7fa79 = this.getTop(vd1079);
        return v7fa79;
    },
    getLeftW3C: function(v1cc35, v06378) {
        var vcb079 = 0;
        var vf1a99 = IS.IsXHTMLDocType();
        if (vf1a99) {
            vcb079 = this.getClientLeft(v1cc35);
            if (IS.ie || IS.safari || IS.chrome) vcb079 += this.getScrollLeft(this.getDocumentElement(v1cc35));
        } else vcb079 = this.getLeft(v1cc35);
        if (IS.ie && v06378) vcb079 = this.getCalcRtlLeft(v1cc35, vcb079);
        return vcb079;
    },
    getCalcRtlLeft: function(v4a110, v71c66) {
        var v24554 = this.getCanvasElement(v4a110);
        v71c66 -= v24554.scrollLeft;
        if (IS.IsXHTMLDocType()) v71c66 -= v24554.scrollLeft;
        else {
            v71c66 -= (v24554.scrollWidth - v24554.clientWidth - v24554.scrollLeft);
            if (v24554.scrollWidth > v24554.offsetWidth) v71c66 += 17;
        }
        return v71c66;
    },
    getBottom: function(v80a29) {
        return this.getTop(v80a29) + this.getHeight(v80a29);
    },
    getBottomW3C: function(vd6829) {
        return this.getTopW3C(vd6829) + this.getHeight(vd6829);
    },
    getInnerLeft: function(v5a829) {
        return this.getLeft(v5a829) + this.getBorderLeftWidth(v5a829);
    },
    getInnerRight: function(v69f29) {
        return this.getRight(v69f29) - this.getBorderRightWidth(v69f29);
    },
    getInnerTop: function(v5b829) {
        return this.getTop(v5b829) + this.getBorderTopWidth(v5b829);
    },
    getInnerBottom: function(v28e29) {
        return this.getBottom(v28e29) - this.getBorderBottomWidth(v28e29);
    },
    getWidth: function(vfe21) {
        var v1cd29 = vfe21.offsetWidth;
        if (v1cd29 == 0) {
            v1cd29 = vfe21.style.pixelWidth;
            if (v1cd29 == 0 || isNaN(v1cd29)) v1cd29 = parseFloat(vfe21.style.width);
            if (v1cd29 == 0 || isNaN(v1cd29)) v1cd29 = parseFloat(vfe21.clientWidth);
            if (isNaN(v1cd29)) v1cd29 = 0;
        }
        return v1cd29;
    },
    getInnerWidth: function(vbb01) {
        return this.getWidth(vbb01) - this.getBorderLeftWidth(vbb01) - this.getBorderRightWidth(vbb01);
    },
    getHeight: function(v26b1) {
        var vf011 = v26b1.offsetHeight;
        if (vf011 == 0) {
            vf011 = v26b1.style.pixelHeight;
            if (vf011 == 0 || isNaN(vf011)) vf011 = parseFloat(v26b1.style.height);
            if (vf011 == 0 || isNaN(vf011)) vf011 = parseFloat(v26b1.clientHeight);
            if (isNaN(vf011)) vf011 = 0;
        }
        return vf011;
    },
    getInnerHeight: function(v1801) {
        return this.getHeight(v1801) - this.getBorderTopWidth(v1801) - this.getBorderBottomWidth(v1801);
    },
    getDocumentElement: function(vcdc1) {
        return vcdc1.ownerDocument || vcdc1.document || window.document;
    },
    getCanvasElement: function(v51285) {
        var va4f1 = v51285.ownerDocument || v51285.document;
        if (va4f1.compatMode == "CSS1Compat" || IS.IsXHTMLDocType()) return va4f1.documentElement;
        else return va4f1.body;
    },
    getBorderLeftWidth: function(vfbb85) {
        if (IS.moz) return 0;
        return vfbb85.clientLeft;
    },
    getBorderRightWidth: function(vc3985) {
        if (IS.moz) return 0;
        return this.getWidth(vc3985) - vc3985.clientLeft - vc3985.clientWidth;
    },
    getBorderTopWidth: function(vae985) {
        if (IS.moz) return 0;
        return vae985.clientTop;
    },
    getBorderBottomWidth: function(v4e185) {
        if (IS.moz) return 0;
        return this.getHeight(v4e185) - v4e185.clientTop - v4e185.clientHeight;
    },
    getScreenLeft: function(v76921) {
        var v28a85 = v76921.ownerDocument || v76921.document;
        var vb4755 = v28a85.parentWindow;
        return vb4755.screenLeft + this.getBorderLeftWidth(this.getCanvasElement(v76921)) + this.getClientLeft(v76921);
    },
    getScreenTop: function(v5fb21) {
        var v1ba21 = v5fb21.ownerDocument || v5fb21.document;
        var vd0424 = v1ba21.parentWindow;
        return vd0424.screenTop + this.getBorderTopWidth(this.getCanvasElement(v5fb21)) + this.getClientTop(v5fb21);
    },
    getCurX: function() {
        if (event) return event.clientX + document.body.scrollLeft;
    },
    getCurY: function() {
        if (event) return event.clientY + document.body.scrollTop;
    },
    getLeftNonIE: function(v2c821) {
        return ISMoz.GetLeft(v2c821);
    },
    getTopNonIE: function(ve9821) {
        return ISMoz.GetTop(ve9821);
    },
    getScrollTop: function(v3804) {
        var v45821 = v3804.body.parentElement || v3804.body.parentNode;
        if (IS.IsXHTMLDocType()) return Math.max(v45821.scrollTop, v3804.body.scrollTop);
        else return v3804.body.scrollTop;
    },
    getScrollLeft: function(v8684) {
        var v5fb4 = v8684.body.parentElement || v8684.body.parentNode;
        if (IS.IsXHTMLDocType()) return Math.max(v5fb4.scrollLeft, v8684.body.scrollLeft);
        else return v8684.body.scrollLeft;
    },
    ApplyIntelligentPosition: function(v54f96, v19913, v80d52, v4b011) {
        var vcf74 = v54f96.Y;
        var v6e665 = v54f96.X;
        var v86d48 = ISPosLib.getDocumentElement(v19913);
        var v15766 = ISPosLib.getCanvasElement(v19913);
        var v3cb88 = false;
        if (vcf74 + ISPosLib.getHeight(v19913) > v15766.clientHeight + ISPosLib.getScrollTop(v86d48)) {
            if (!v80d52) {
                vcf74 = ((v15766.clientHeight + ISPosLib.getScrollTop(v86d48)) - ISPosLib.getHeight(v19913));
                vcf74 -= 4;
            } else {
                vcf74 = ISPosLib.getTopW3C(v80d52) - ISPosLib.getHeight(v19913) - 2;
                if (vcf74 < 1) {
                    if (!v4b011) vcf74 = 1;
                    else {
                        vcf74 = ((v15766.clientHeight + ISPosLib.getScrollTop(v86d48)) - ISPosLib.getHeight(v19913));
                        v3cb88 = true;
                    }
                }
            }
        }
        if (v3cb88) v6e665 += ISPosLib.getWidth(v80d52);
        if (v6e665 + (ISPosLib.getWidth(v19913)) > v15766.clientWidth) {
            if (!v4b011) {
                v6e665 = v15766.clientWidth - ISPosLib.getWidth(v19913);
                v6e665 -= 4;
            } else if (v80d52 != null) {
                v6e665 = ISPosLib.getLeft(v80d52) - ISPosLib.getWidth(v19913) - 4;
            }
        }
        if (vcf74 < 0) vcf74 = 2;
        return new OffsetLocation(v6e665, vcf74);
    }
};
ISPosLib.ua = navigator.userAgent;
ISPosLib.opera = /opera[56789]|opera\/[56789]/i.test(ISPosLib.ua);
ISPosLib.ie = (!ISPosLib.opera) && /MSIE/.test(ISPosLib.ua);
ISPosLib.ie6 = ISPosLib.ie && /MSIE[6789]/.test(ISPosLib.ua);
ISPosLib.moz = !ISPosLib.opera && /gecko/i.test(ISPosLib.ua);

function Dimension(v7f79, va6010, va8d10, vf5826, v5ec34, v8ae20) {
    this.Left = v7f79;
    this.Top = va6010;
    this.Right = va8d10;
    this.Bottom = vf5826;
    this.Width = v5ec34;
    this.Height = v8ae20;
}
var ISDimension = {
    Calc: function(v5944) {
        if (v5944 == null) return;
        with (v5944.style) {
            if (position == "relative") position = "absolute";
            with (ISPosLib) {
                left = getLeft(v5944);
                right = getRight(v5944);
                top = getTop(v5944);
                bottom = getBottom(v5944);
                width = getWidth(v5944);
                height = getHeight(v5944);
            }
        }
    },
    Copy: function(vf924, vab472) {
        if (vf924 == null || vab472 == null) return;
        with (ISDimension) {
            Check(vf924);
            Check(vab472);
        }
        with (vf924.style) {
            vab472.style.width = width;
            vab472.style.height = height;
            vab472.style.top = top;
            vab472.style.left = left;
            vab472.style.right = parseFloat(left) + parseFloat(width) + "px";
            vab472.style.bottom = parseFloat(top) + parseFloat(height) + "px";
        }
    },
    Save: function(v06660, vee551) {
        if (vee551 == null) return;
        with (v06660.style) {
            with (vee551) {
                Left = parseFloat(left);
                Right = parseFloat(right);
                Top = parseFloat(top);
                Bottom = parseFloat(bottom);
                Width = parseFloat(width);
                Height = parseFloat(height);
            }
        }
    },
    Retrieve: function(v6a543, vb0691) {
        if (vb0691 == null) return;
        with (v6a543.style) {
            with (vb0691) {
                left = Left;
                right = Left + Width;
                top = Top;
                bottom = Top + Height;
                width = Width;
                height = Height;
            }
        }
    },
    Check: function(v92843) {
        if (v92843 == null) return;
        with (v92843.style) {
            if (position == "relative" || position == "static") ISDimension.Calc(v92843);
        }
    },
    CalcStyleDimension: function(v61843) {
        if (v61843 == null) return;
        with (v61843) {
            style.left = offsetLeft;
            style.top = offsetTop;
            style.width = offsetWidth;
            style.height = offsetHeight;
            style.right = offsetWidth + offsetLeft;
            style.bottom = offsetHeight + offsetTop;
            if (style.position == "relative") style.position = "absolute";
        }
    }
};

function Listener(v82f48, v44a29, v8d444) {
    this.fp = v82f48;
    this.scope = v44a29;
    this.remove = v8d444;
}
Listener.Add = function(oSource, sEvent, fpDest, oScope, bRunOnce) {
    if (!oSource[sEvent] || oSource[sEvent] == null || !oSource[sEvent]._listeners) {
        oSource[sEvent] = function() {
            return Listener.Fire(oSource, sEvent, arguments);
        };
        if (IS.safari && oSource[sEvent] == null) {
            setTimeout(function() {
                Listener.Add(oSource, sEvent, fpDest, oScope, bRunOnce);
            },
            100);
            return;
        }
        oSource[sEvent]._listeners = new Array();
    }
    var idx = this.FindForEvent(oSource[sEvent], fpDest, oScope);
    if (idx == -1) idx = oSource[sEvent]._listeners.length;
    oSource[sEvent]._listeners[idx] = new Listener(fpDest, oScope, bRunOnce);
};
Listener.Append = function(index, oSource, sEvent, fpDest, oScope, bRunOnce) {
    if (!oSource[sEvent] || oSource[sEvent] == null || !oSource[sEvent]._listeners) {
        oSource[sEvent] = function() {
            try {
                return Listener.Fire(oSource, sEvent, arguments);
            } catch (e) {
                alert(e.description);
                return true;
            }
        };
        oSource[sEvent]._listeners = new Array();
    }
    var idx = this.FindForEvent(oSource[sEvent], fpDest, oScope);
    if (idx == -1) {
        var lstr = oSource[sEvent]._listeners;
        idx = lstr.length;
        if (idx > 0) {
            if (index < idx) {
                var nLstr = new Array(idx + 1);
                var oIdx = 0;
                for (var i = 0; i < nLstr.length; i++) {
                    if (index != i) {
                        nLstr[i] = lstr[oIdx];
                        oIdx++;
                    }
                }
                oSource[sEvent]._listeners = nLstr;
                idx = index;
            }
        }
    }
    oSource[sEvent]._listeners[idx] = new Listener(fpDest, oScope, bRunOnce);
};
Listener.Remove = function(oSource, sEvent, fpDest, oScope) {
    var idx = this.FindForEvent(oSource[sEvent], fpDest, oScope);
    if (idx != -1) {
        var iLast = oSource[sEvent]._listeners.length - 1;
        oSource[sEvent]._listeners[idx] = oSource[sEvent]._listeners[iLast];
        oSource[sEvent]._listeners.length--;
    }
};
Listener.FindForEvent = function(fpEvent, fpDest, oScope) {
    if (fpEvent && fpEvent._listeners) {
        for (var i = 0; i < fpEvent._listeners.length; i++) {
            if (fpEvent._listeners[i].scope == oScope && fpEvent._listeners[i].fp == fpDest) {
                return i;
            }
        }
    }
    return -1;
};
Listener.Fire = function(oSourceObj, sEvent, args) {
    var lstnr, fp, returnValue, tempReturn;
    var last = null;
    var e;
    try {
        last = oSourceObj[sEvent]._listeners.length - 1;
    } catch (e) {
        return;
    }
    if (IS.moz) e = window.event = args[0];
    else e = window.event;
    if (e == null) {
        try {
            if (IS.ie) e = oSourceObj.document.parentWindow.event;
            else e = oSourceObj.ownerDocument.parentWindow.event;
        } catch (e) { }
    }
    for (var i = last; i >= 0; i--) {
        lstnr = oSourceObj[sEvent]._listeners[i];
        if ((e && !e.cancelBubble) || !e) {
            fp = lstnr.fp;
            tempReturn = fp.apply(lstnr.scope, args);
            if (typeof tempReturn != "undefined") returnValue = tempReturn;
        }
        if (lstnr.remove) Listener.Remove(oSourceObj, sEvent, lstnr.fp, lstnr.scope);
    }
    if (typeof returnValue != "undefined") return returnValue;
};
Listener.Unload = function(oSourceObj) {
    if (oSourceObj == null) return;
    for (var i = 0; i < NtvEvents.length; i++) {
        var ev = NtvEvents[i].toLowerCase();
        if (oSourceObj[ev] != null) {
            oSourceObj[ev] = null;
        }
    }
};
var NtvEvents = new Array();
NtvEvents[0] = "OnActivate";
NtvEvents[1] = "OnAfterUpdate";
NtvEvents[2] = "OnBeforeActivate";
NtvEvents[3] = "OnBeforeDeActivate";
NtvEvents[4] = "OnBeforeEditFocus";
NtvEvents[5] = "OnBeforePaste";
NtvEvents[6] = "OnBeforeUpdate";
NtvEvents[7] = "OnBlur";
NtvEvents[8] = "OnChange";
NtvEvents[9] = "OnClick";
NtvEvents[10] = "OnContextMenu";
NtvEvents[11] = "OnControlSelect";
NtvEvents[12] = "OnDblClick";
NtvEvents[13] = "OnDeActivate";
NtvEvents[14] = "OnErrorUpdate";
NtvEvents[15] = "OnFilterChange";
NtvEvents[16] = "OnFocus";
NtvEvents[17] = "OnFocusin";
NtvEvents[18] = "OnFocusOut";
NtvEvents[19] = "OnHelp";
NtvEvents[20] = "OnKeyDown";
NtvEvents[21] = "OnKeypress";
NtvEvents[22] = "OnKeyUp";
NtvEvents[23] = "OnLoseCapture";
NtvEvents[24] = "OnMouseDown";
NtvEvents[25] = "OnMouseEnter";
NtvEvents[26] = "OnMouseLeave";
NtvEvents[27] = "OnMouseMove";
NtvEvents[28] = "OnMouseOut";
NtvEvents[29] = "OnMouseOver";
NtvEvents[30] = "OnMouseUp";
NtvEvents[31] = "OnMouseWheel";
NtvEvents[32] = "OnPropertyChange";
NtvEvents[33] = "OnReadyStateChange";
NtvEvents[34] = "OnScroll";
NtvEvents[35] = "OnSelect";
NtvEvents[36] = "OnResize";
NtvEvents[37] = "OnDragStart";
NtvEvents[38] = "OnSelectStart";

function IsEvtHdlExist(v25a68) {
    var v8b768;
    try {
        v8b768 = eval(v25a68 + "!=null");
    } catch (ex) {
        v8b768 = false;
    }
    return v8b768;
}
var ISEvent = {
    objEvent: null,
    clientX: 0,
    clientY: 0,
    LastKeyboardType: null,
    LastKeyCode: null,
    MouseDownId: -1,
    ContextMenuCancelled: false,
    LEFT: 1,
    MIDDLE: 4,
    RIGHT: 2,
    IsLeftButton: function(vc4f35) {
        var v72935 = window.event;
        if (!v72935) v72935 = vc4f35;
        if (IS.ie) return (v72935.button == 1);
        else return (v72935.button == 0 || v72935.button == 65535);
    },
    IsMiddleButton: function(ve9d6) {
        var v9916 = window.event;
        if (!v9916) v9916 = ve9d6;
        if (IS.ie) return (v9916.button == 4);
        else return (v9916.button == 1);
    },
    IsRightButton: function(v33a6) {
        var vdfc6 = window.event;
        if (!vdfc6) vdfc6 = v33a6;
        return (vdfc6.button == 2);
    },
    Capture: function(v2d76) {
        with (ISEvent) {
            objEvent = (v2d76 == null) ? window.event : v2d76;
            clientX = v2d76.clientX + v2d76.srcElement.parentNode.scrollLeft;
            clientY = v2d76.clientY + v2d76.srcElement.parentNode.scrollTop;
        }
    },
    Register: function(va3126, vdfd81) {
        var v97c6;
        if (vdfd81 != null) {
            v97c6 = new Object();
            IS.SetProperties(v97c6, vdfd81);
            var vdff71;
            for (var v60623 = 0; v60623 < vdfd81.childNodes.length; v60623++) {
                vdff71 = vdfd81.childNodes[v60623];
                var vd2c17 = ISEvent.Register(va3126, vdff71);
                eval("v97c6." + vdff71.nodeName + "=vd2c17;");
            }
        }
        return v97c6;
    },
    AttachControlEvents: function(v35a65, v2080) {
        if (!v35a65) return;
        var ve5981 = "";
        for (ve5981 in v35a65) {
            var vb8860 = ve5981.toLowerCase();
            Listener.Add(v2080, vb8860, function() {
                ISEvent.RaiseMultiDelegates();
            });
        }
    },
    ValidateHandler: function(v66c92, vc7718) {
        if (v66c92[vc7718].constructor == Array || typeof (v66c92[vc7718]) == "object") {
            var v4211 = false;
            for (var v11c70 = 0; v11c70 < v66c92[vc7718].length; v11c70++) {
                var v89a42 = v66c92[vc7718][v11c70];
                try {
                    var v18844 = v89a42.toString();
                } catch (e) {
                    v4211 = true;
                    break;
                }
            }
            if (v4211) {
                var vf4298 = new Array();
                for (var v11c70 = 0; v11c70 < v66c92[vc7718].length; v11c70++) {
                    var v89a42 = v66c92[vc7718][v11c70];
                    try {
                        var v18844 = v89a42.toString();
                        vf4298.push(v89a42);
                    } catch (e) { }
                }
                v66c92[vc7718] = vf4298;
            }
        }
    },
    AddFunctionHandler: function(v65e31, v99e37, v2d279) {
        if (!v65e31) return;
        try {
            ISEvent.ValidateHandler(v65e31, v99e37);
        } catch (e) {
            v65e31[v99e37] = new Array();
        }
        try {
            if (v65e31[v99e37] == null || v65e31[v99e37] == "") v65e31[v99e37] = new Array();
        } catch (e) { }
        var vd3c76 = true;
        var va4b58 = false;
        if (v2d279.TargetObject != null) va4b58 = true;
        for (var v52794 = 0; v52794 < v65e31[v99e37].length; v52794++) {
            var v7a18 = v65e31[v99e37][v52794];
            if (v7a18.toString() == v2d279.toString()) {
                if (va4b58) {
                    if (v2d279.TargetObject == v7a18.TargetObject) {
                        vd3c76 = false;
                        break;
                    }
                } else {
                    vd3c76 = false;
                    break;
                }
            }
        }
        if (vd3c76) v65e31[v99e37][v65e31[v99e37].length] = v2d279;
    },
    RemoveFunctionHandler: function(v85a42, vbcf95, v9aa49) {
        if (!v85a42) return;
        var vf5f86 = new Array();
        for (var v80416 = 0; v80416 < v85a42[vbcf95].length; v80416++) {
            var v72864 = v85a42[vbcf95][v80416];
            var v0ba15 = v72864.toString().substring(0, v72864.toString().lastIndexOf("("));
            var vfc363 = v9aa49.toString().substring(0, v9aa49.toString().lastIndexOf("("));
            if (v0ba15 != vfc363) vf5f86.push(v72864);
        }
        v85a42[vbcf95] = vf5f86;
    },
    RaiseMultiDelegates: function() {
        var v0de61 = IS.GetRuntimeObjectById(window.event.srcElement.id);
        var vc1f5 = "";
        var v1a116 = "";
        var v02080 = IS.GetEventType();
        for (vc1f5 in v0de61.Events) {
            if (vc1f5.toLowerCase() == "on" + v02080) v1a116 = v0de61.Events[vc1f5];
        }
        if (v1a116 != "") {
            if (v1a116.indexOf(";") < 0) {
                if (v1a116.indexOf("(") < 0) {
                    return eval(v1a116 + "('" + v0de61.Id + "')");
                } else {
                    return eval(v1a116);
                }
            } else {
                var v11085 = v1a116.split(';');
                for (var v2de27 = 0; v2de27 < v11085.length; v2de27++) {
                    var ve9c48 = v11085[v2de27];
                    if (ve9c48.indexOf("(") < 0) {
                        return eval(ve9c48 + "('" + v0de61.Id + "')");
                    } else {
                        return eval(ve9c48);
                    }
                }
            }
        }
    },
    IsNative: function(vb9836) {
        var va1517 = false;
        for (var vd6c84 = 0; vd6c84 < NtvEvents.length; vd6c84++) {
            if (NtvEvents[vd6c84] == vb9836) {
                va1517 = true;
                break;
            }
        }
        return va1517;
    },
    IsDirtyKeyboardEvent: function() {
        var v98e56 = window.event;
        var va1e3 = IS.ie ? v98e56.type : IS.mozEventType;
        with (ISEvent) {
            if (LastKeyboardType == null || LastKeyboardType != va1e3 || LastKeyCode != v98e56.keyCode) {
                LastKeyboardType = va1e3;
                LastKeyCode = v98e56.keyCode;
                return false;
            } else return true;
        }
    },
    GetName: function(ve3e92) {
        var v5ab92 = window.event;
        var vfc973 = null;
        if (v5ab92) vfc973 = IS.ie ? v5ab92.type : IS.mozEventType;
        var v83054 = null;
        if (ve3e92 == null || ve3e92 == "") ve3e92 = vfc973;
        else {
            if (ve3e92.indexOf("On") > -1) return ve3e92;
        }
        switch (ve3e92) {
            case "c":
            case "click":
                v83054 = "OnClick";
                break;
            case "dc":
            case "dblclick":
                v83054 = "OnDblClick";
                break;
            case "md":
            case "mousedown":
                v83054 = "OnMouseDown";
                break;
            case "mm":
            case "mousemove":
                v83054 = "OnMouseMove";
                break;
            case "mout":
            case "mouseout":
                v83054 = "OnMouseOut";
                break;
            case "mover":
            case "mouseover":
                v83054 = "OnMouseOver";
                break;
            case "mu":
            case "mouseup":
                v83054 = "OnMouseUp";
                break;
        }
        return v83054;
    },
    Raise: function() {
        var v27311 = true;
        var evtHandler, params;
        evtHandler = arguments[0];
        try {
            if (evtHandler == null || evtHandler == "") return v27311;
        } catch (e) { }
        if (typeof (evtHandler) == "function") {
            v27311 = evtHandler(arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
            if (v27311 == null) v27311 = true;
            return v27311;
        } else if (evtHandler.constructor == Array || typeof (evtHandler) == "object") {
            for (var vae682 = 0; vae682 < evtHandler.length; vae682++) {
                var ve2c20 = evtHandler[vae682];
                if (ve2c20 == null) continue;
                v27311 = ve2c20(arguments[1], arguments[2], arguments[3], arguments[4], arguments[5]);
                if (v27311 == null) v27311 = true;
                if (!v27311) break;
            }
            return v27311;
        }
        params = "";
        for (var vae682 = 1; vae682 < arguments.length; vae682++) {
            if (arguments[vae682] != null) {
                if (arguments[vae682].constructor == String) params = params + "'" + escape(arguments[vae682]) + "',";
                else params = params + "arguments[" + vae682 + "],";
            } else params = params + "null,";
        }
        if (params.length > 0) params = "(" + params.substr(0, params.length - 1) + ")";
        if (evtHandler.indexOf(";") > -1) {
            var vc0428 = evtHandler.split(';');
            for (var vc3a60 = 0; vc3a60 < vc0428.length; vc3a60++) {
                var vba938 = vc0428[vc3a60];
                if (vba938.indexOf("(") == -1) vba938 += params;
                v27311 = eval(vba938);
                if (v27311 == null) v27311 = true;
                if (!v27311) break;
            }
        } else {
            if (evtHandler.indexOf("(") == -1) evtHandler += params;
            v27311 = eval(evtHandler);
        }
        if (v27311 == null) v27311 = true;
        return v27311;
    }
};
if (!IS.ie) {
    ISEvent.LEFT = 0;
    ISEvent.MIDDLE = 1;
    ISEvent.RIGHT = 2;
}
var ISShiftSymbol = new Array();
var ISUnShiftSymbol = new Array();
ISShiftSymbol[0] = new Array("~", 192);
ISShiftSymbol[1] = new Array("!", 49);
ISShiftSymbol[2] = new Array("@", 50);
ISShiftSymbol[3] = new Array("#", 51);
ISShiftSymbol[4] = new Array("$", 52);
ISShiftSymbol[5] = new Array("%", 53);
ISShiftSymbol[6] = new Array("^", 54);
ISShiftSymbol[7] = new Array("&", 55);
ISShiftSymbol[8] = new Array("*", 56);
ISShiftSymbol[9] = new Array("(", 67);
ISShiftSymbol[10] = new Array(")", 48);
if (IS.ie) {
    ISShiftSymbol[11] = new Array("_", 189);
    ISShiftSymbol[12] = new Array("+", 187);
} else {
    ISShiftSymbol[11] = new Array("_", 109);
    ISShiftSymbol[12] = new Array("+", 61);
}
ISShiftSymbol[13] = new Array("|", 220);
ISShiftSymbol[14] = new Array("{", 219);
ISShiftSymbol[15] = new Array("}", 221);
if (IS.ie) ISShiftSymbol[16] = new Array(":", 186);
else ISShiftSymbol[16] = new Array(":", 59);
ISShiftSymbol[17] = new Array("\"", 222);
ISShiftSymbol[18] = new Array("<", 188);
ISShiftSymbol[19] = new Array(">", 190);
ISShiftSymbol[20] = new Array("?", 191);
ISUnShiftSymbol[0] = new Array("`", 192);
ISUnShiftSymbol[1] = new Array("-", 189);
if (IS.ie) ISUnShiftSymbol[2] = new Array("=", 187);
else ISUnShiftSymbol[2] = new Array("=", 61);
ISUnShiftSymbol[3] = new Array("\\", 220);
ISUnShiftSymbol[4] = new Array("[", 219);
ISUnShiftSymbol[5] = new Array("]", 221);
if (IS.ie) ISUnShiftSymbol[6] = new Array(";", 186);
else ISUnShiftSymbol[6] = new Array(";", 59);
ISUnShiftSymbol[7] = new Array("'", 222);
ISUnShiftSymbol[8] = new Array(",", 188);
ISUnShiftSymbol[9] = new Array(".", 190);
ISUnShiftSymbol[10] = new Array("/", 191);
ISUnShiftSymbol[11] = new Array("/", 111);
ISUnShiftSymbol[12] = new Array("*", 106);
ISUnShiftSymbol[13] = new Array("-", 109);
ISUnShiftSymbol[14] = new Array("+", 107);
ISUnShiftSymbol[15] = new Array(".", 110);
var ISKeyboardKey = {
    ENTER: 13,
    TAB: 9,
    UP: 38,
    DOWN: 40,
    LEFT: 37,
    RIGHT: 39,
    SPACE: 32,
    SHIFT: 16,
    CTRL: 17,
    ALT: 18,
    ESC: 27,
    F1: 112,
    F2: 113,
    F3: 114,
    F4: 115,
    F5: 116,
    F6: 117,
    F7: 118,
    F8: 119,
    F9: 120,
    F10: 121,
    F11: 122,
    F12: 123,
    DELETE: 46,
    BACKSPACE: 8,
    INSERT: 45,
    HOME: 36,
    END: 35,
    PAGE_UP: 33,
    PAGE_DOWN: 34,
    NUM_LOCK: 144,
    NUMPAD0: 96,
    NUMPAD1: 97,
    NUMPAD2: 98,
    NUMPAD3: 99,
    NUMPAD4: 100,
    NUMPAD5: 101,
    NUMPAD6: 102,
    NUMPAD7: 103,
    NUMPAD8: 104,
    NUMPAD9: 105,
    NUMPAD_DIVIDE: 111,
    NUMPAD_MULTIPLY: 106,
    NUMPAD_MINUS: 109,
    NUMPAD_PLUS: 107,
    IsSpecialKey: function(v12c79) {
        return ((v12c79 >= 112 && v12c79 <= 123) || v12c79 == 13 || v12c79 == 32);
    },
    IsDirection: function(v87879) {
        if (v87879 == null) v87879 = window.event.keyCode;
        return (37 <= v87879 && v87879 <= 40);
    },
    IsLetter: function(v5f479) {
        if (v5f479 == null) v5f479 = window.event.keyCode;
        return (65 <= v5f479 && v5f479 <= 90);
    },
    IsUpperCaseLetter: function(vbad79, vc0888) {
        if (vc0888 == null) vc0888 = window.event;
        if (vbad79 == null) vbad79 = vc0888.keyCode;
        return (65 <= vbad79 && vbad79 <= 90 && !vc0888.shiftKey);
    },
    IsLowerCaseLetter: function(veb179, v8bf88) {
        if (v8bf88 == null) v8bf88 = window.event;
        if (veb179 == null) veb179 = window.event.keyCode;
        return (65 <= veb179 && veb179 <= 90 && v8bf88.shiftKey);
    },
    IsNumber: function(ve1079, v4c688) {
        if (v4c688 == null) v4c688 = window.event;
        if (ve1079 == null) ve1079 = window.event.keyCode;
        return ((48 <= ve1079 && ve1079 <= 57 && !v4c688.shiftKey) || (96 <= ve1079 && ve1079 <= 105));
    },
    IsShiftSymbol: function(v2c079, v9cb88) {
        if (v9cb88 == null) v9cb88 = window.event;
        if (!v9cb88.shiftKey) return false;
        if (v2c079 == null) v2c079 = v9cb88.keyCode;
        var v60879 = false;
        for (var vad988 = 0; vad988 < ISShiftSymbol.length; vad988++) {
            if (ISShiftSymbol[vad988][1] == v2c079) {
                v60879 = true;
                break;
            }
        }
        return v60879;
    },
    IsUnShiftSymbol: function(v5db35, v59167) {
        if (v59167 == null) v59167 = window.event;
        if (v59167.shiftKey) return false;
        if (v5db35 == null) v5db35 = v59167.keyCode;
        var vbaa63 = false;
        for (var v75e28 = 0; v75e28 < ISUnShiftSymbol.length; v75e28++) {
            if (ISUnShiftSymbol[v75e28][1] == v5db35) {
                vbaa63 = true;
                break;
            }
        }
        return vbaa63;
    },
    IsSymbol: function(vc2f18, v13c7) {
        return (ISKeyboardKey.IsShiftSymbol(vc2f18, v13c7) || ISKeyboardKey.IsUnShiftSymbol(vc2f18, v13c7));
    },
    GetChar: function(v4d729, v8d366, v48c3) {
        var v5aa74 = "";
        if (v8d366 == null) v8d366 = window.event;
        if (v4d729 == null) v4d729 = v8d366.keyCode;
        ISUnShiftSymbol[15][0] = v48c3 != null ? v48c3 : ".";
        if (ISKeyboardKey.IsLetter(v4d729)) {
            v5aa74 = String.fromCharCode(v4d729);
            if (!v8d366.shiftKey) v5aa74 = v5aa74.toLowerCase();
        } else {
            if (ISKeyboardKey.IsNumber(v4d729)) {
                if (48 <= v4d729 && v4d729 <= 57) v5aa74 = v4d729 - 48;
                else if (96 <= v4d729 && v4d729 <= 105) v5aa74 = v4d729 - 96;
                v5aa74 = v5aa74.toString();
            } else {
                if (v8d366.shiftKey) {
                    for (var vbbb86 = 0; vbbb86 < ISShiftSymbol.length; vbbb86++) {
                        if (ISShiftSymbol[vbbb86][1] == v4d729) {
                            v5aa74 = ISShiftSymbol[vbbb86][0];
                            break;
                        }
                    }
                } else {
                    for (var vbbb86 = 0; vbbb86 < ISUnShiftSymbol.length; vbbb86++) {
                        if (ISUnShiftSymbol[vbbb86][1] == v4d729) {
                            v5aa74 = ISUnShiftSymbol[vbbb86][0];
                            break;
                        }
                    }
                }
            }
        }
        return v5aa74;
    }
};

function WindowInfo() {
    this.IsEnabled = true;
    this.DisplayPosition = this.DisplayType = this.OffsetControlID = this.ControlID = "";
    this.X = this.Y = this.Width = this.Height = 0;
    this.OffsetLocation = new OffsetLocation();
    this.OffsetControl = null;
    this.IsRelFromOffsetControl = false;
    this.GetWindowType = function() {
        if (IS.ie) {
            if (this.DisplayType == null || this.DisplayType == "") return "Normal";
            else return this.DisplayType;
        } else return "Normal";
    };
};

function OffsetLocation(v78c4, va549) {
    this.X = this.Y = 0;
    this.IsEmpty = function() {
        return (this.X == 0 && this.Y == 0);
    };
    this.Parse = function(vc7d39) {
        if (!vc7d39) return;
        var v5f34 = vc7d39.split(",");
        this.X = parseFloat(v5f34[0]);
        this.Y = parseFloat(v5f34[1]);
    };
    if (v78c4) this.X = v78c4;
    if (va549) this.Y = va549;
};
var WindowEngine = {
    Register: function(v42f20, v9cf14, ve127) {
        var v08b85;
        if (v42f20 != null) {
            v08b85 = new WindowInfo();
            WindowEngine.AssignProperties(v08b85, v42f20);
            var vc0545 = document.getElementById(v08b85.ControlID);
            if (v9cf14 != null && ve127 != null) {
                v9cf14 = parseFloat(v9cf14);
                v08b85.Width = isNaN(v9cf14) ? 0 : v9cf14;
                ve127 = parseFloat(ve127);
                v08b85.Height = isNaN(ve127) ? 0 : ve127;
            } else {
                if (vc0545) {
                    v08b85.Width = ISPosLib.getWidth(vc0545);
                    v08b85.Height = ISPosLib.getHeight(vc0545);
                }
            }
            if (v08b85.GetWindowType() == "Popup" && IS.ie) {
                v08b85.Popup = window.createPopup();
                if (vc0545) {
                    with (v08b85.Popup.document.body) {
                        topMargin = bottomMargin = leftMargin = rightMargin = 0;
                        innerHTML = vc0545.outerHTML;
                    }
                }
            } else v08b85.Popup = new WindowPopup(v08b85);
            if (vc0545) vc0545.style.display = "none";
        }
        return v08b85;
    },
    AssignProperties: function(v3b995, v6183) {
        if (v3b995 != null && v6183 != null) {
            IS.SetProperties(v3b995, v6183);
            if (!IS.ie) v3b995.DisplayType = "Normal";
            var v43e40 = v6183.selectSingleNode("OffsetLocation");
            IS.SetProperties(v3b995.OffsetLocation, v43e40);
        }
    },
    AssignPropertiesToXml: function(vaf395, v67b3) {
        if (vaf395 != null && v67b3 != null) {
            IS.SetPropertiesToXml(vaf395, v67b3);
            var v23695 = v67b3.selectSingleNode("OffsetLocation");
            IS.SetPropertiesToXml(vaf395.OffsetLocation, v23695);
        }
    },
    ShowById: function(v2ee79, ve3343) {
        var v61495 = IS.GetRuntimeObjectById(v2ee79);
        if (v61495 == null) return;
    },
    Show: function(v99215, vad912) {
        if (v99215 == null) return;
        if (v99215.IsEnabled) {
            if (typeof (v99215.Popup.Init) == "function") v99215.Popup.Init();
            if (!vad912) WindowEngine.CalcLocation(v99215);
            v99215.Popup.show(v99215.X, v99215.Y, parseFloat(v99215.Width), parseFloat(v99215.Height));
        }
    },
    Hide: function(v9b615) {
        if (v9b615 == null) return;
    },
    CalcLocation: function(v1ad51) {
        if (v1ad51.IsEnabled) {
            var v40b15 = new OffsetLocation();
            with (v1ad51) {
                var v38512 = document.getElementById(OffsetControlID);
                var v85926 = v1ad51.Popup.document.getElementById(ControlID);
                if (v38512) {
                    v1ad51.OffsetControl = v38512;
                    var d, v;
                    if (v85926) {
                        with (v85926.style) {
                            d = display;
                            v = visibility;
                            display = "";
                            visibility = "visible";
                        }
                        v1ad51.Width = ISPosLib.getWidth(v85926);
                        v1ad51.Height = ISPosLib.getHeight(v85926);
                    }
                    WindowEngine._InitOffsetLocation(v40b15, v38512, v1ad51.Width, v1ad51.Height, DisplayPosition, v1ad51);
                    if (v85926) {
                        with (v85926.style) {
                            display = d;
                            visibility = v;
                        }
                    }
                    var vdf338 = OffsetLocation.X != null ? parseFloat(OffsetLocation.X) : 0;
                    var v0a785 = OffsetLocation.Y != null ? parseFloat(OffsetLocation.Y) : 0;
                    v1ad51.X = vdf338 + v40b15.X;
                    v1ad51.Y = v0a785 + v40b15.Y;
                }
            }
        }
    },
    _InitOffsetLocation: function(v9e19, v7ab11, vedb45, vcd865, va6d6, v3bc72) {
        var v1ef70 = 0;
        var vafe91 = 0;
        var vad511 = ISPosLib.getWidth(v7ab11);
        var v87841 = ISPosLib.getHeight(v7ab11);
        vedb45 = parseFloat(vedb45);
        vcd865 = parseFloat(vcd865);
        if (v3bc72.IsRelFromOffsetControl == false) {
            if (v3bc72.GetWindowType() == "Normal") {
                v1ef70 = ISPosLib.getLeft(v7ab11);
                vafe91 = ISPosLib.getTop(v7ab11);
            } else {
                v1ef70 = ISPosLib.getScreenLeft(v7ab11);
                vafe91 = ISPosLib.getScreenTop(v7ab11);
            }
            switch (va6d6) {
                case "Left":
                    v9e19.X = v1ef70 - vedb45;
                    v9e19.Y = vafe91;
                    break;
                case "LeftTop":
                    v9e19.X = v1ef70 - vedb45;
                    v9e19.Y = vafe91 - vcd865;
                    break;
                case "LeftBottom":
                    v9e19.X = v1ef70 - vedb45;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Right":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91;
                    break;
                case "RightTop":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91 - vcd865;
                    break;
                case "RightBottom":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Top":
                    v9e19.X = v1ef70;
                    v9e19.Y = vafe91 - vcd865;
                    break;
                case "Bottom":
                    v9e19.X = v1ef70;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Center":
                    v9e19.X = v1ef70 + (vad511 / 2);
                    v9e19.Y = vafe91 + (vad511 / 2);
                    break;
            }
        } else {
            var vec27 = v3bc72.Popup.document.getElementById(v3bc72.ControlID);
            if (vec27 == null) vec27 = document.getElementById(v3bc72.ControlID);
            v1ef70 = v7ab11.offsetLeft;
            vafe91 = v7ab11.offsetTop;
            if (v1ef70 == 0 && vafe91 == 0) {
                v1ef70 = ISPosLib.getLeftW3C(v7ab11);
                vafe91 = ISPosLib.getTopW3C(v7ab11);
            }
            var v18153 = vec27.currentStyle.display;
            var vae923 = v3bc72.Width;
            var v5ec24 = v3bc72.Height;
            if (vae923 == 0 || v5ec24 == 0) {
                if (v18153 == "none") vec27.style.display = "";
                if (vae923 == 0) vae923 = ISPosLib.getWidth(vec27);
                if (v5ec24 == 0) v5ec24 = ISPosLib.getHeight(vec27);
                if (v18153 == "none") vec27.style.display = "none";
            }
            switch (va6d6) {
                case "Left":
                    v9e19.Y = vafe91;
                    v9e19.X = v1ef70 - vae923;
                    break;
                case "LeftTop":
                    v9e19.Y = vafe91 - v5ec24;
                    v9e19.X = v1ef70 - vae923;
                    break;
                case "LeftBottom":
                    v9e19.X = v1ef70 - vae923;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Right":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91;
                    break;
                case "RightTop":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91 - v5ec24;
                    break;
                case "RightBottom":
                    v9e19.X = v1ef70 + vad511;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Top":
                    v9e19.Y = vafe91 - v5ec24;
                    v9e19.X = v1ef70;
                    break;
                case "Bottom":
                    v9e19.X = v1ef70;
                    v9e19.Y = vafe91 + v87841;
                    break;
                case "Center":
                    v9e19.X = ((v1ef70 + vad511) / 2) * -1;
                    v9e19.Y = ((vafe91 + v87841) / 2) * -1;
                    break;
            }
        }
    }
};

function ClientEditor() {
    this.AccessKey = 113;
    this.EnterValueKey = 13;
    this.SwitchKey = 17;
    this.IsEnabled = false;
    this.IsCollaborateWithHighLight = true;
    this.WindowInfo = this.Styles = this.CId = null;
    this.IsUICreated = false;
    this.IsActive = false;
    this.Behavior = null;
}
function Settings() {
    this.Directory = null;
}
function CommonElementClientSideEvents() {
    this.OnClick = this.OnDblClick = this.OnMouseDown = this.OnMouseMove = this.OnMouseOut = this.OnMouseOver = this.OnMouseUp = null;
}
function DynamicStyle(ve0639, v2c378, vfc048) {
    this.Normal = this.Active = this.Over = "";
    this.Object = null;
    if (ve0639) this.Normal = ve0639;
    if (v2c378) this.Over = v2c378;
    if (vfc048) this.Active = vfc048;
    this.SetToNormal = function() {
        if (this.Object != null) DynamicStyleEngine.SetToStyle(null, this, this.Object);
    };
    this.SetToActive = function() {
        if (this.Object != null) DynamicStyleEngine.SetToActiveStyle(null, this, this.Object);
    };
    this.SetToOver = function() {
        if (this.Object != null) DynamicStyleEngine.SetToOverStyle(null, this, this.Object);
    };
    this.GetCurrentState = function() {
        if (this.Object != null) {
            if (this.Object.className == this.Normal) return "Normal";
            else if (this.Object.className == this.Over) return "Over";
            else if (this.Object.className == this.Active) return "Active";
        }
    };
}
var DynamicStyleEngine = {
    _o: null,
    Assign: function(vde71, v0f287) {
        var v30d65;
        if (vde71 != null) {
            v30d65 = new DynamicStyle();
            IS.SetProperties(v30d65, vde71);
            if (v0f287) v30d65.Object = v0f287;
        }
        return v30d65;
    },
    AssignFromArray: function(v2d584, vb8027, v2dd89) {
        for (var v71584 = 0; v71584 < v2dd89.length; v71584++) {
            var v03227 = vb8027.selectSingleNode(v2dd89[v71584]);
            if (v03227) {
                v2d584[v2dd89[v71584]] = DynamicStyleEngine.Assign(v03227);
                vb8027.removeChild(v03227);
            }
        }
    },
    _GetElementToSet: function(v92476) {
        var v91b40;
        if (DynamicStyleEngine._o != null) {
            if (DynamicStyleEngine._o.id == v92476) v91b40 = DynamicStyleEngine._o;
            else v91b40 = document.getElementById(v92476);
        } else v91b40 = document.getElementById(v92476);
        return v91b40;
    },
    SetToActiveStyle: function(vdb159, vdce16, v62341) {
        var ve9e59 = v62341 == null ? DynamicStyleEngine._GetElementToSet(vdb159) : v62341;
        if (ve9e59 != null && vdce16 != null) ve9e59.className = vdce16.Active;
    },
    SetToOverStyle: function(v0d387, v22e34, v07563) {
        var vcda51 = v07563 == null ? DynamicStyleEngine._GetElementToSet(v0d387) : v07563;
        if (vcda51 != null && v22e34 != null) vcda51.className = v22e34.Over;
    },
    SetToStyle: function(v3956, v1b843, v01e30) {
        var vf8d6 = v01e30 == null ? DynamicStyleEngine._GetElementToSet(v3956) : v01e30;
        if (vf8d6 != null && v1b843 != null) vf8d6.className = v1b843.Normal;
    },
    AddStyleRule: function(v51a90, vbd684, v33c79) {
        if (v33c79 != null && v51a90 != null) {
            IS.AddStyleRule(v51a90, vbd684, v33c79.Active);
            IS.AddStyleRule(v51a90, vbd684, v33c79.Over);
            IS.AddStyleRule(v51a90, vbd684, v33c79.Normal);
        }
    },
    GetStyleText: function(v4d661, v86d22, v0f815) {
        var vb8a61 = "";
        if (v86d22) {
            vb8a61 = IS.GetStyleText(v4d661, v86d22.Active, v0f815);
            vb8a61 += IS.GetStyleText(v4d661, v86d22.Over, v0f815);
            vb8a61 += IS.GetStyleText(v4d661, v86d22.Normal, v0f815);
        }
        return vb8a61;
    }
};
var ISXml = {
    GetAttribute: function(v8af58, v66510) {
        if (v8af58) {
            var vda358 = v8af58.getAttribute(v66510);
            if (vda358 == null) {
                vda358 = v8af58.getAttribute(v66510.toLowerCase());
                if (vda358 == null) vda358 = v8af58.getAttribute(v66510.toUpperCase());
            }
            return vda358;
        }
        return "";
    },
    SetAttribute: function(v98277, vf8020, vece76) {
        if (v98277) {
            var v45f77 = v98277.attributes.getNamedItem(vf8020);
            if (v45f77) v45f77.value = vece76;
            else {
                v45f77 = v98277.attributes.getNamedItem(vf8020.toLowerCase());
                if (v45f77) v45f77.value = vece76;
                else {
                    v45f77 = v98277.attributes.getNamedItem(vf8020.toUpperCase());
                    if (v45f77) v45f77.value = vece76;
                    else v98277.setAttribute(vf8020, vece76);
                }
            }
        }
    },
    GetNode: function(vbae13, v93789) {
        return vbae13.selectSingleNode(v93789);
    },
    GetNodes: function(v4c813, v84689) {
        return v4c813.selectNodes(v84689);
    },
    GetNodeText: function(v8d697, v22b29) {
        var va8113 = ISXml.GetNode(v8d697, v22b29);
        if (va8113) {
            return va8113.text;
        }
        return "";
    },
    SetNodeText: function(v9d197, v95f29, v99743) {
        var va9f97 = ISXml.GetNode(v9d197, v95f29);
        if (va9f97) {
            if (IS.ie) va9f97.text = v99743;
            else va9f97.textContent = v99743;
        }
    },
    CreateNode: function(vdc633, v91b99, va9461, v2ac22) {
        var v54733 = vdc633.createNode(1, va9461, v2ac22);
        v91b99.appendChild(v54733);
        return v54733;
    },
    CreateNodeOnly: function(v75733, v1a899, v2df61) {
        var v3d733 = v75733.createNode(1, v1a899, v2df61);
        return v3d733;
    },
    CreateCDATA: function(v7f333, vb0299, v35b61, vd9e22) {
        var veca33 = v7f333.createNode(1, v35b61, "");
        var v08099 = v7f333.createCDATASection(vd9e22);
        veca33.appendChild(v08099);
        vb0299.appendChild(veca33);
        return veca33;
    },
    RemoveNode: function(v8f619, vb8a45) {
        var vc0b47 = v8f619.selectSingleNode(vb8a45);
        if (vc0b47) {
            v8f619.removeChild(vc0b47);
        }
        return vc0b47;
    },
    GetElementById: function(vdc413) {
        var v4622 = document.getElementById(vdc413);
        if (!v4622) return null;
        var ve6486 = v4622.innerHTML;
        if (ve6486.substring(4, 11) == "[CDATA[") {
            ve6486 = ve6486.substr(ve6486.indexOf("[CDATA[") + 7);
            ve6486 = ve6486.substr(0, ve6486.length - 5);
            if (IS.ie) {
                var v65133 = new ActiveXObject("Microsoft.XMLDOM");
                v65133.loadXML(ve6486);
                return v65133;
            } else {
                ve6486 = ve6486.replace(new RegExp(">\\s*<", "g"), "><");
                ve6486 = ve6486.replace(new RegExp("\"\\s{2,}", "g"), "\" ");
                ve6486 = ve6486.replace(new RegExp("^\\s*"), "");
                ve6486 = ve6486.replace(new RegExp("\\s*$"), "");
                return (new DOMParser()).parseFromString(ve6486, "text/xml");
            }
        }
        return v4622;
    },
    CreateXmlDocument: function() {
        if (IS.ie) return new ActiveXObject("Microsoft.XMLDOM");
        else return (new DOMParser()).parseFromString("<root/>", "text/xml");
    },
    LoadXml: function(v54d13, v55344) {
        v54d13.loadXML(v55344);
    },
    EncodeAmpersand: function(vc5549) {
        return vc5549.replace(/[&]/g, "$isamp;");
    },
    EncodeString: function(vf6332) {
        if (vf6332 == null || typeof (vf6332) == "undefined") return null;
        if (typeof (vf6332) != "string") vf6332 = vf6332.toString();
        var vcb632 = vf6332.replace(/[&]/g, "$isamp;");
        vcb632 = vcb632.replace(/[<]/g, "$isltd;");
        vcb632 = vcb632.replace(/[>]/g, "$isgtd;");
        vcb632 = vcb632.replace(/[+]/g, "$isplus;");
        vcb632 = vcb632.replace(/["]/g, "$isquot;");
        return vcb632;
    },
    DecodeString: function(v5b14) {
        if (typeof (v5b14) != "string") return;
        var vba768 = v5b14.replace(/\$isamp;/g, "&");
        vba768 = vba768.replace(/\$isltd;/g, "<");
        vba768 = vba768.replace(/\$isgtd;/g, ">");
        vba768 = vba768.replace(/\$isplus;/g, "+");
        vba768 = vba768.replace(/\$isquot;/g, "\"");
        return vba768;
    }
};

function IFlyPostBack(v4e898) {
    this.PostViewState = true;
    this.PostHiddenFields = true;
    this.PostInputControls = false;
    this.PostControlState = true;
    this.FormIndex = -1;
    this.FormKey = v4e898;
    this.AdditionalInputs = new Array();
    this.IsFlyPostBackControl = true;
    this.AddInput = function(vb2734, v9fa76) {
        var v5f479 = false;
        for (var vd6f97 = 0; vd6f97 < this.AdditionalInputs.length; vd6f97++) {
            if (this.AdditionalInputs[vd6f97][0] == vb2734) {
                v5f479 = true;
                break;
            }
        }
        if (v5f479) this.AdditionalInputs[vd6f97] = [vb2734, ISXmlHttpEngine.EncodeURL(v9fa76)];
        else this.AdditionalInputs[this.AdditionalInputs.length] = [vb2734, ISXmlHttpEngine.EncodeURL(v9fa76)];
    };
    this.CollectInput = function() {
        var v29e81 = ISXmlHttpEngine.CollectInput();
        for (var vd6f97 = 0; vd6f97 < v29e81.length; vd6f97++) {
            var v27d77 = v29e81[vd6f97];
            this.AddInput(v27d77[0], v27d77[1]);
        }
        for (var vd6f97 = 0; vd6f97 < this.AdditionalInputs.length; vd6f97++) {
            if (this.AdditionalInputs[vd6f97][1] == "!_remove") {
                this.AdditionalInputs.splice(vd6f97, 1);
                vd6f97--;
            }
        }
    };
}
function ISXmlHttp() {
    this.XmlHttp = null;
    this.OnResponse = null;
    this.Control = null;
    this.Asynchronous = true;
    this.LastAction = "";
    this.ResponseFormat = "Xml";
    this.HttpVerb = "POST";
    this.HttpSubVerb = "";
    this.UsePostTunneling = false;
    this.Reset = function() {
        this.HttpVerb = "POST";
        this.HttpSubVerb = "";
        this.UsePostTunneling = false;
    };
    this.SendFast = function() {
        this.Send(null, null, true);
    };
    this.SendJson = function(vea759, v0c742, v34c23) {
        var v29e70 = this.XmlHttp;
        var v55446 = this;
        if (!this.Asynchronous || v29e70 == null || v29e70.readyState != 0) {
            this.XmlHttp = null;
            if (v29e70 != null) v29e70.abort();
            v29e70 = null;
            try {
                v29e70 = new XMLHttpRequest();
            } catch (e) {
                if (IS.ie) v29e70 = new ActiveXObject("Microsoft.XMLHTTP");
            }
            if (this.Asynchronous) this.XmlHttp = v29e70;
        }
        if (this.UsePostTunneling) {
            this.HttpSubVerb = this.HttpVerb;
            this.HttpVerb = "POST";
        }
        v29e70.open(this.HttpVerb, vea759, true);
        v29e70.setRequestHeader("Content-Type", "application/json");
        v29e70.setRequestHeader("Accept", "application/json");
        if (this.HttpSubVerb != "") v29e70.setRequestHeader("X-HTTP-Method", this.HttpSubVerb);
        v29e70.onreadystatechange = function() {
            ISXmlHttpEngine.OnResponse(v55446);
        };
        if (typeof (v34c23) != "undefined") v29e70.send(ISJsonEngine.Serialize(v34c23));
        else v29e70.send("");
        if (typeof (v0c742) != "undefined" && v0c742 != null) this.LastAction = v0c742;
        if (!this.Asynchronous) ISXmlHttpEngine.OnResponse(v55446, v29e70);
    };
    this.Send = function(v14a14, v0c742, ve0c8) {
        var v29e70 = this.XmlHttp;
        var vd4162 = "";
        var v4c821 = -1;
        var v55446 = this;
        if (v14a14 == null) {
            if (typeof (this.Control.FormIndex) == "number") v4c821 = this.Control.FormIndex;
            if (v4c821 == -1) {
                if (document.forms.length > 1) {
                    var vfc876 = this.Control.FrameObj;
                    if (vfc876) {
                        var v1e433 = vfc876.parentElement;
                        while (v1e433) {
                            if (v1e433.tagName == "FORM") {
                                vd4162 = v1e433.action;
                                break;
                            }
                            v1e433 = v1e433.parentElement;
                        }
                    } else v4c821 = 0;
                } else v4c821 = 0;
            }
            if (vd4162 == "") vd4162 = document.forms[v4c821].action;
        } else vd4162 = v14a14;
        if (IS.ie && IS.GetIEVersion() < 6) vd4162 = vd4162.substring(0, 2).toUpperCase() + vd4162.substring(2).toLowerCase();
        var vb4c23 = "&__EVENTTARGET=ISControl&__EVENTARGUMENT=PostBack";
        if (this.Control.GetType() == "WebFlyPostBackManager" && this.Control.EnableUIMode) {
            var v72245 = document.getElementById("__EVENTTARGET");
            var vf8a77 = document.getElementById("__EVENTARGUMENT");
            vb4c23 = "";
            if (v72245) vb4c23 = "&__EVENTTARGET=" + v72245.value;
            if (vf8a77) vb4c23 += "&__EVENTARGUMENT=" + vf8a77.value;
        }
        if (!this.Asynchronous || v29e70 == null) {
            this.XmlHttp = null;
            if (v29e70 != null) v29e70.abort();
            v29e70 = null;
            try {
                v29e70 = new XMLHttpRequest();
            } catch (e) {
                if (IS.ie) v29e70 = new ActiveXObject("Microsoft.XMLHTTP");
            }
            if (this.Asynchronous) this.XmlHttp = v29e70;
        }
        v29e70.open("POST", vd4162, this.Asynchronous);
        v29e70.setRequestHeader("Content-Type", "application/x-www-form-urlencoded");
        v29e70.onreadystatechange = function() {
            ISXmlHttpEngine.OnResponse(v55446);
        };
        v29e70.send(this.Control.FormKey + "=" + ISXmlHttpEngine.GetData(this.Control, ve0c8) + vb4c23 + "&__FLYPOSTBACK=true&__FLYPOSTBACKID=" + this.Control.ServerUniqueID);
        if (typeof (v0c742) != "undefined" && v0c742 != null) this.LastAction = v0c742;
        if (!this.Asynchronous) ISXmlHttpEngine.OnResponse(v55446, v29e70);
    };
    this.Abort = function() {
        var v29e70 = this.XmlHttp;
        if (v29e70 != null) {
            v29e70.abort();
            if (IS.safari) {
                if (this.Control != null) this.Control.OnResponseError("");
            }
        }
    };
}
var ISXmlHttpEngine = {
    Create: function(v64f12, v4d335) {
        var v34f12 = new ISXmlHttp();
        v34f12.OnResponse = v4d335;
        v34f12.Control = v64f12;
        try {
            v34f12.XmlHttp = new XMLHttpRequest();
        } catch (e) {
            if (IS.ie) v34f12.XmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
        }
        return v34f12;
    },
    CreateRequestXml: function(vcd567) {
        var vb4912 = ISXml.CreateXmlDocument();
        var v96335 = "<" + vcd567 + ">";
        v96335 += "<request />";
        v96335 += "</" + vcd567 + ">";
        vb4912.loadXML(v96335);
        return vb4912;
    },
    CreateResponseXml: function() {
        return ISXml.CreateXmlDocument();
    },
    GetObjectData: function(vf5851, v76854) {
        var vca167 = "";
        var v2cc14 = "";
        if (typeof (vf5851.ClassName) == "string" && vf5851.XmlDt != null) {
            vf5851.PreparePostBackData(4);
            if (typeof (vf5851.CustomStateString) == "string") vca167 = vf5851.CustomStateString;
            else {
                if (vf5851.XmlDt.documentElement != null) vca167 = vf5851.XmlDt.documentElement.xml;
            }
            if (vf5851.XmlCompressionEnabled) vca167 = IS.CompressXmlState(vca167);
            vca167 = ISXmlHttpEngine.EncodePlus(ISXmlHttpEngine.EncodeXml(vca167));
            v2cc14 += "&" + vf5851.xmlInputHiddenUniqueID + "=" + (!vf5851.IsUnicodeEncoding() ? escape(vca167) : vca167);
        }
        return v2cc14;
    },
    GetData: function(v7f292, v70e80) {
        var v89e23 = ISXmlHttpEngine.EncodeXml(v7f292.XmlReq.xml);
        var v35e93 = "";
        var v78123 = null;
        if (!v7f292.IsUnicodeEncoding()) v89e23 = escape(v89e23);
        if (v70e80) {
            var v38064 = document.getElementById(v7f292.Id);
            if (v38064 != null) v89e23 += "&" + v38064.name + "=" + "Dummy";
            for (var v2d993 = 0; v2d993 < v7f292.AdditionalInputs.length; v2d993++) v89e23 += "&" + v7f292.AdditionalInputs[v2d993][0] + "=" + v7f292.AdditionalInputs[v2d993][1];
            return v89e23;
        }
        if (v7f292.PostViewState) {
            var v36f23 = document.getElementById("__VIEWSTATE");
            if (IS.moz) v36f23 = document.forms[0]["__VIEWSTATE"];
            if (v36f23) {
                v35e93 = v36f23.value;
                v35e93 = v35e93.replace(/[+]/g, "%2b");
            }
            if (v35e93 != "") v35e93 = "&__VIEWSTATE=" + v35e93;
            v89e23 += v35e93;
        }
        if (v7f292.PostInputControls) v7f292.CollectInput();
        if (v7f292.PostControlState) {
            var v38064 = document.getElementById(v7f292.Id);
            if (v38064 != null) v89e23 += "&" + v38064.name + "=" + ISXmlHttpEngine.EncodeURL(v38064.value);
            v89e23 += ISXmlHttpEngine.GetObjectData(v7f292);
        }
        if (v7f292.PostHiddenFields) {
            var vcd372 = document.getElementsByTagName("input");
            var v72a36 = false;
            if (v7f292.GetType() == "WebFlyPostBackManager" && v7f292.FlyPostBackSettings.SelectiveControlsForHiddenFields.length > 0) {
                v72a36 = true;
                v78123 = v7f292.FlyPostBackSettings.SelectiveControlsForHiddenFields;
            }
            for (var v2d993 = 0; v2d993 < vcd372.length; v2d993++) {
                if (vcd372[v2d993].name.indexOf("EVENT") == -1 && vcd372[v2d993].name != "__VIEWSTATE" && vcd372[v2d993].type == "hidden" && vcd372[v2d993].id != v7f292.Id) if (vcd372[v2d993].name.indexOf("_h") == -1) v89e23 += "&" + vcd372[v2d993].name + "=" + ISXmlHttpEngine.EncodeURL(vcd372[v2d993].value);
                else if (vcd372[v2d993].type == "checkbox" && vcd372[v2d993].checked) v89e23 += "&" + vcd372[v2d993].name + "=" + vcd372[v2d993].value;
            }
            var v2d993;
            for (v2d993 in IS.RuntimeObjects) {
                var vf0c87 = IS.RuntimeObjects[v2d993];
                if (typeof (vf0c87.ClassName) == "string" && vf0c87.Id != v7f292.Id) {
                    var v2f668 = false;
                    if (v72a36) {
                        for (var v51b77 = 0; v51b77 < v78123.length; v51b77++) {
                            var vaf152 = v78123[v51b77].ControlID;
                            if (vf0c87.Id.indexOf(vaf152) > -1) {
                                v2f668 = true;
                                break;
                            }
                        }
                    } else v2f668 = true;
                    if (v2f668) v89e23 += ISXmlHttpEngine.GetObjectData(vf0c87, true);
                }
            }
        }
        for (var v2d993 = 0; v2d993 < v7f292.AdditionalInputs.length; v2d993++) {
            v89e23 += "&" + v7f292.AdditionalInputs[v2d993][0] + "=" + v7f292.AdditionalInputs[v2d993][1];
        }
        return v89e23;
    },
    EncodeXml: function(v2233) {
        var v6b111 = v2233;
        var va8690 = new RegExp("<", "g");
        var vcc961 = new RegExp("&lt;", "g");
        var vde417 = new RegExp("&", "g");
        var v9df35 = new RegExp("On", "g");
        v6b111 = v6b111.replace(va8690, "\03");
        v6b111 = v6b111.replace(vcc961, "\04");
        v6b111 = v6b111.replace(vde417, "\05");
        v6b111 = v6b111.replace(v9df35, "\02");
        return v6b111;
    },
    EncodePlus: function(v8c239) {
        return v8c239.replace(/[+]/g, "$isplus;");
    },
    EncodeURL: function(va5539) {
        var v7bf39 = va5539.replace(/[&]/g, "%26");
        v7bf39 = v7bf39.replace(/[+]/g, "%2b");
        return v7bf39;
    },
    CollectInput: function() {
        var vdcf39 = document.getElementsByTagName("input");
        var v4e18 = [];
        var v8ae83 = new Array();
        for (var vb0d3 = 0; vb0d3 < vdcf39.length; vb0d3++) {
            if (vdcf39[vb0d3].type != "hidden" && vdcf39[vb0d3].type != "button" && vdcf39[vb0d3].type != "submit" && vdcf39[vb0d3].type != "reset" && vdcf39[vb0d3].type != "checkbox" && vdcf39[vb0d3].type != "radio") {
                var vf262 = ISXmlHttpEngine.EncodeURL(vdcf39[vb0d3].value);
                v8ae83[v8ae83.length] = [IS.GetInputCtlName(vdcf39[vb0d3]), vf262];
            } else if (vdcf39[vb0d3].type == "checkbox") {
                if (vdcf39[vb0d3].checked) v8ae83[v8ae83.length] = [IS.GetInputCtlName(vdcf39[vb0d3]), "true"];
                else v8ae83[v8ae83.length] = [IS.GetInputCtlName(vdcf39[vb0d3]), "!_remove"];
            } else if (vdcf39[vb0d3].type == "radio") {
                if (!v4e18[vdcf39[vb0d3].name]) {
                    var v53478 = document.getElementsByName(vdcf39[vb0d3].name);
                    if (v53478.length == 1) {
                        if (vdcf39[vb0d3].checked) v8ae83[v8ae83.length] = [vdcf39[vb0d3].name, vdcf39[vb0d3].value];
                    } else {
                        for (var vd7f29 = 0; vd7f29 < v53478.length; vd7f29++) {
                            if (vd7f29 == 0) v4e18[vdcf39[vb0d3].name] = true;
                            if (v53478[vd7f29].checked) {
                                v8ae83[v8ae83.length] = [vdcf39[vb0d3].name, v53478[vd7f29].value];
                                break;
                            }
                        }
                    }
                }
            }
        }
        var va2272 = document.getElementsByTagName("select");
        for (var vb0d3 = 0; vb0d3 < va2272.length; vb0d3++) {
            var vf262 = ISXmlHttpEngine.EncodeURL(va2272[vb0d3].value);
            v8ae83[v8ae83.length] = [IS.GetInputCtlName(va2272[vb0d3]), vf262];
        }
        var v3eb65 = document.getElementsByTagName("textarea");
        for (var vb0d3 = 0; vb0d3 < v3eb65.length; vb0d3++) {
            var vf262 = ISXmlHttpEngine.EncodeURL(v3eb65[vb0d3].value);
            v8ae83[v8ae83.length] = [IS.GetInputCtlName(v3eb65[vb0d3]), vf262];
        }
        return v8ae83;
    },
    OnResponse: function(v0b574, vbfc32) {
        var v64288 = v0b574.Control;
        var v3e185 = v0b574.XmlHttp;
        if (vbfc32 != null) v3e185 = vbfc32;
        if (!ISXmlHttpEngine) return;
        if (v3e185 == null || typeof (v3e185) == "undefined") return;
        if (v3e185.readyState == 4) {
            var v9ef87 = v3e185.getResponseHeader("Content-Type");
            var vc7633 = v3e185.status;
            if (vc7633 == 204 || vc7633 == 1223) {
                if (v0b574.LastAction != "" && v0b574.LastAction.indexOf("Execute") > -1 && v64288.ClientProvider) v64288.ClientProvider.CallbackHandler(new Object());
                if (v64288.OnResponse) v64288.OnResponse(new Object(), true);
                return;
            }
            var v96345 = v3e185.getResponseHeader("IS-Redirect");
            if (v96345 == "true") {
                window.location = v3e185.getResponseHeader("IS-Location");
                return;
            }
            if (v9ef87 != null && v9ef87 != "" && v9ef87.indexOf("json") > -1) {
                var v8e511 = v3e185.getResponseHeader("jsonerror");
                v0b574.ResponseFormat = "Json";
                if (v8e511 == "true" || (vc7633 < 200 || vc7633 >= 300)) {
                    v64288.OnResponseError(v3e185.responseText);
                    return;
                } else {
                    var v22618 = ISXmlHttpEngine.GetJsonObject(v3e185.responseText);
                    if (v0b574.LastAction != "" && v0b574.LastAction.indexOf("Execute") > -1 && v64288.ClientProvider) v64288.ClientProvider.CallbackHandler(v22618);
                    if (v64288.OnResponse) v64288.OnResponse(v22618, true);
                    ISXmlHttpEngine.ProcessClientActions(v22618, true);
                    if (!ISXmlHttpEngine) return;
                    ISXmlHttpEngine.InvokeGeneralResponse(v22618, true);
                }
            } else {
                if (v64288.XmlResp == null) v64288.XmlResp = ISXmlHttpEngine.CreateResponseXml();
                var veaf98 = v64288.XmlResp;
                ISXml.LoadXml(veaf98, v3e185.responseText);
                if (veaf98.xml == "" || veaf98.xml.indexOf("parsererror") > 0) {
                    var v6ae40 = v3e185.responseText;
                    var ve7968 = true;
                    var v6a658 = "<" + v64288.XmlNamespace + ">";
                    var vaa054 = "</" + v64288.XmlNamespace + ">";
                    if (v6ae40.indexOf(v6a658) >= 0 && v6ae40.indexOf(vaa054) >= 0) {
                        v6ae40 = v6ae40.substring(0, v6ae40.indexOf(vaa054) + vaa054.length);
                        ISXml.LoadXml(veaf98, v6ae40);
                        if (veaf98.xml == "") ve7968 = true;
                        else ve7968 = false;
                    }
                    if (ve7968) {
                        v64288.OnResponseError(v6ae40);
                        return;
                    }
                }
                v64288.OnResponse(veaf98.xml);
                ISXmlHttpEngine.ProcessClientActions(veaf98);
                if (!ISXmlHttpEngine) return;
                ISXmlHttpEngine.InvokeGeneralResponse(veaf98);
            }
            v0b574.Asynchronous = true;
        }
    },
    InvokeGeneralResponse: function(v39549, vc3c20) {
        for (var vc7d94 = 0; vc7d94 < IS.RuntimeObjects.length; vc7d94++) {
            var v4b541 = IS.RuntimeObjects[vc7d94];
            if (v4b541 != null && v4b541.ClassName != null && typeof (v4b541.ClassName) != "undefined" && typeof (v4b541.OnFlyPostBackResponse) == "function") {
                v4b541.OnFlyPostBackResponse(v39549, vc3c20);
            }
        }
    },
    ReplaceCDataEndTag: function(v4b949) {
        while (v4b949.indexOf("||C!||") > -1) {
            v4b949 = v4b949.replace("||C!||", "]]");
        }
        return v4b949;
    },
    ProcessClientActions: function(v5fe24, v2c39) {
        if (v5fe24 == null) return;
        var vfd049 = null;
        if (!v2c39) {
            vfd049 = v5fe24.selectSingleNode("//clientActions");
        } else {
            if (typeof (v5fe24.clientActions) != "undefined") {
                vfd049 = new Object();
                vfd049.text = v5fe24.clientActions;
            }
        }
        if (vfd049) {
            var v29720 = vfd049.text;
            IS.OnAJAXInitialization = true;
            if (v29720 != "") {
                var v15761 = v29720.split("||IS||");
                for (var v26769 = 0; v26769 < v15761.length; v26769++) {
                    if (v15761[v26769] != "") {
                        var v73332 = v15761[v26769];
                        if (v73332.indexOf("ISControlRenderer") > -1) {
                            v73332 = v73332.replace(new RegExp("ISControlRenderer", ""), "IS.RenderControl");
                            v73332 = v73332.replace(/\n/g, "");
                            v73332 = v73332.replace(new RegExp("\'", "ig"), "\\'");
                            v73332 = ISXmlHttpEngine.ReplaceCDataEndTag(v73332);
                        } else if (v73332.indexOf("SetValue") > -1) {
                            v73332 = v73332.replace(/\n/g, "\\n");
                        }
                        eval(v73332);
                    }
                }
            }
            IS.OnAJAXInitialization = false;
        }
    },
    GetJsonObject: function(v53943) {
        var vdae60 = ISJsonEngine.ParseAjax(v53943);
        var vdac79 = "";
        if (vdae60.d) vdae60 = vdae60.d;
        if (vdae60 != null && typeof (vdae60) != "undefined") {
            if (typeof (vdae60["__type"]) == "string") vdac79 = vdae60["__type"];
            if (typeof (ISADONETMappingEngine) == "object" && vdac79.indexOf("ISDataSet") > -1 || vdac79.indexOf("ISDataTable") > -1) vdae60 = ISADONETMappingEngine.MappingJsonToObject(vdae60);
        }
        return vdae60;
    }
};
var ISJsonEngine = {
    DateRegEx: new RegExp('(^|[^\\\\])\\"\\\\/Date\\((-?[0-9]+)(?:[a-zA-Z]|(?:\\+|-)[0-9]{4})?\\)\\\\/\\"', 'g'),
    Cx: /[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
    Escapable: /[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,
    Gap: null,
    Indent: null,
    Meta: { // table of character substitutions
        '\b': '\\b',
        '\t': '\\t',
        '\n': '\\n',
        '\f': '\\f',
        '\r': '\\r',
        '"': '\\"',
        '\\': '\\\\'
    },
    Rep: null,
    Parse: function(v5056, v89b70) {
        var veb522;
        var v1c130 = ISJsonEngine.Cx;
        v1c130.lastIndex = 0;
        if (v1c130.test(v5056)) {
            v5056 = v5056.replace(v1c130, function(a) {
                return "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
            });
        }
        veb522 = eval("(" + v5056 + ")");
        return typeof v89b70 === "function" ? ISJsonEngine._Walker({
            "": veb522
        },
        "", v89b70) : veb522;
    },
    ParseAjax: function(ve596) {
        ve596 = ve596.replace(ISJsonEngine.DateRegEx, "$1new Date($2)");
        return ISJsonEngine.Parse(ve596);
    },
    _Walker: function(vb0b41, v88340, vea464) {
        var k, v, value = vb0b41[v88340];
        if (value && typeof value === "object") {
            for (k in value) {
                if (Object.hasOwnProperty.call(value, k)) {
                    v = walk(value, k);
                    if (v !== undefined) value[k] = v;
                    else delete value[k];
                }
            }
        }
        return vea464.call(vb0b41, v88340, value);
    },
    Quote: function(vcf241) {
        ISJsonEngine.Escapable.lastIndex = 0;
        return ISJsonEngine.Escapable.test(vcf241) ? '"' + vcf241.replace(ISJsonEngine.Escapable, function(a) {
            var v1cd41 = ISJsonEngine.Meta[a];
            return typeof v1cd41 === "string" ? v1cd41 : "\\u" + ("0000" + a.charCodeAt(0).toString(16)).slice(-4);
        }) + '"' : '"' + vcf241 + '"';
    },
    Serialize: function(vcd861, vc8a49, v3f531) {
        var v9e461;
        ISJsonEngine.Gap = "";
        ISJsonEngine.Indent = "";
        if (typeof v3f531 === "number") {
            for (v9e461 = 0; v9e461 < v3f531; v9e461 += 1) ISJsonEngine.Indent += " ";
        } else if (typeof v3f531 === "string") ISJsonEngine.Indent = v3f531;
        ISJsonEngine.Rep = vc8a49;
        if (vc8a49 && typeof vc8a49 !== "function" && (typeof vc8a49 !== "object" || typeof vc8a49.length !== "number")) {
            throw new Error("ISJsonEngine.Serialize");
        }
        return ISJsonEngine._SerializeString("", {
            "": vcd861
        });
    },
    _SerializeString: function(v93869, vbc265) {
        var vbb433, // The loop counter.

        k, // The member v93869.

        v, // The member value.
        length, mind = ISJsonEngine.Gap,
            partial, value = vbc265[v93869];
        if (value && typeof value === "object" && typeof value.toJSON === "function") value = value.toJSON(v93869);
        if (typeof ISJsonEngine.Rep === "function") value = ISJsonEngine.Rep.call(vbc265, v93869, value);
        switch (typeof value) {
            case "string":
                return ISJsonEngine.Quote(value);
            case "number":
                return isFinite(value) ? String(value) : "null";
            case "boolean":
            case "null":
                return String(value);
            case "object":
                if (!value) return 'null';
                ISJsonEngine.Gap += ISJsonEngine.Indent;
                partial = [];
                if (Object.prototype.toString.apply(value) === '[object Array]') {
                    length = value.length;
                    for (vbb433 = 0; vbb433 < length; vbb433 += 1) partial[vbb433] = ISJsonEngine._SerializeString(vbb433, value) || "null";
                    v = partial.length === 0 ? '[]' : ISJsonEngine.Gap ? '[\n' + ISJsonEngine.Gap + partial.join(',\n' + ISJsonEngine.Gap) + '\n' + mind + ']' : '[' + partial.join(',') + ']';
                    ISJsonEngine.Gap = mind;
                    return v;
                } else if (value instanceof Date) {
                    return '"\\/Date(' + value.getTime() + ')\\/"';
                }
                if (ISJsonEngine.Rep && typeof ISJsonEngine.Rep === 'object') {
                    length = ISJsonEngine.Rep.length;
                    for (vbb433 = 0; vbb433 < length; vbb433 += 1) {
                        k = ISJsonEngine.Rep[vbb433];
                        if (typeof k === 'string') {
                            v = ISJsonEngine._SerializeString(k, value);
                            if (v) partial.push(ISJsonEngine.Quote(k) + (ISJsonEngine.Gap ? ': ' : ':') + v);
                        }
                    }
                } else {
                    for (k in value) {
                        if (Object.hasOwnProperty.call(value, k)) {
                            v = ISJsonEngine._SerializeString(k, value);
                            if (v) partial.push(ISJsonEngine.Quote(k) + (ISJsonEngine.Gap ? ': ' : ':') + v);
                        }
                    }
                }
                v = partial.length === 0 ? '{}' : ISJsonEngine.Gap ? '{\n' + ISJsonEngine.Gap + partial.join(',\n' + ISJsonEngine.Gap) + '\n' + mind + '}' : '{' + partial.join(',') + '}';
                ISJsonEngine.Gap = mind;
                return v;
        }
    }
};

function ISCoreDestructor() {
    if (IS.RuntimeObjects != null) {
        for (var v1e734 = 0; v1e734 < IS.RuntimeObjects.length; v1e734++) {
            var v25831 = IS.RuntimeObjects[v1e734];
            if (v25831 != null && v25831.ClassName != null) {
                if (typeof (v25831.OnBeforeUnload) == "function") v25831.OnBeforeUnload();
            }
        }
    }
    Listener.Unload(document);
    var v99f75;
    var v1e734;
    for (var v1e734 = 0; v1e734 < IS.RuntimeObjects.length; v1e734++) {
        var v25831 = IS.RuntimeObjects[v1e734];
        if (v25831 != null) {
            if (typeof (v25831.OnUnload) == "function") v25831.OnUnload();
            if (v25831.HtmlObj != null) {
                try {
                    v25831.HtmlObj.form = null;
                } catch (e) { }
            }
            ISDeleteObject(v25831);
        }
    }
    ISDeleteObject(IS.RuntimeObjects);
    ISDeleteObject(IS.RuntimeWindowPopups);
    document.body.detachEvent("onmousedown", doHideWindowPopups);
    window.detachEvent("onresize", doHideWindowPopups);
    if (!IS.ie) {
        document.body.detachEvent("onkeydown", doHideWindowPopupsOnKeyDown);
        window.detachEvent("onkeydown", doHideWindowPopupsOnKeyDown);
    }
    UnregisterKeyboardHandler();
    if (typeof (IS) == "object" && IS.UnloadVariables != null) {
        for (var v1e734 = 0; v1e734 < IS.UnloadVariables.length; v1e734++) {
            try {
                if (typeof (IS.UnloadVariables[v1e734]) == "string") eval(IS.UnloadVariables[v1e734] + " =null;");
                else IS.UnloadVariables[v1e734] = null;
            } catch (e) { }
        }
    }
    IS.UnloadVariables = null;
    ISXmlHttpEngine = null;
    ISXml = null;
    DynamicStyleEngine = null;
    WindowEngine = null;
    ISKeyboardKey = null;
    ISUnShiftSymbol = null;
    ISShiftSymbol = null;
    ISEvent = null;
    /* NtvEvents = null;*/
    /* Listener = null;*/
    ISDimension = null;
    ISPosLib = null;
    /* IS = null; */
    ISUI = null;
}
function ISDeleteObject(vf4844) {
    if (vf4844.length > 0) {
        for (var v61061 = 0; v61061 < vf4844.length; v61061++) {
            delete vf4844[v61061];
            vf4844[v61061] = null;
        }
        delete vf4844;
        vf4844 = null;
    } else {
        var vc9049 = null;
        for (vc9049 in vf4844) {
            delete vf4844[vc9049];
            vf4844[vc9049] = null;
        }
        delete vf4844;
        vf4844 = null;
    }
}
function ISDeleteObjectPermanent(vbe836) {
    if (vbe836.length > 0) {
        for (var v5de64 = 0; v5de64 < vbe836.length; v5de64++) {
            delete vbe836[v5de64];
            vbe836[v5de64] = null;
        }
        delete vbe836;
        vbe836 = null;
    } else {
        var v7cd99 = null;
        for (v7cd99 in vbe836) {
            delete vbe836[v7cd99];
            eval("delete vbe836." + v7cd99);
        }
    }
}
/* <WindowPopup> */

function WindowPopupBody(e) {
    this._e = e;
    this.appendChild = function(vbe063) {
        return this._e.appendChild(vbe063);
    };
}
function WindowPopupDocument(v61b80) {
    this._e = v61b80;
    this._ts = null;
    this.body = new WindowPopupBody(v61b80);
    this.open = function() {
        this._ts = "";
        this._e.innerHTML = "";
    };
    this.write = function(ved679) {
        if (typeof (ved679) == "string") this._ts += ved679;
    };
    this.close = function() {
        this._e.innerHTML = this._ts;
    };
    this.getOwnerDocument = function() {
        return this._e;
    };
    this.getElementById = function(ve8e55, v59b0) {
        // return document.getElementById(ve8e55); // this doesn'v5e168 guarantee correct object when there are multiple objects with same ve8e55
        var v2a555 = null;
        if (v59b0) v2a555 = v59b0;
        else v2a555 = this._e;
        for (var v38f47 = 0; v38f47 < v2a555.childNodes.length; v38f47++) {
            if (v2a555.childNodes[v38f47].id && v2a555.childNodes[v38f47].id == ve8e55) return v2a555.childNodes[v38f47];
            if (v2a555.childNodes[v38f47].childNodes.length > 0) {
                var v1bf16 = this.getElementById(ve8e55, v2a555.childNodes[v38f47]);
                if (v1bf16) return v1bf16;
            }
        }
        return null;
    };
    this.attachEvent = function(v46d29, v00473) {
        this._e.attachEvent(v46d29, v00473);
    };
    this.detachEvent = function(v46d29, v00473) {
        this._e.detachEvent(v46d29, v00473);
    };
    this.createElement = function(v4b660) {
        return this._e.ownerDocument.createElement(v4b660);
    };
    this.createStyleSheet = function() {
        return this._e.ownerDocument.createStyleSheet();
    };
    this.getElementsByName = function(vad215, v59b0, v2ad66) {
        var v2a555 = null;
        if (!v2ad66) v2ad66 = new Array();
        if (v59b0) v2a555 = v59b0;
        else v2a555 = this._e;
        for (var v38f47 = 0; v38f47 < v2a555.childNodes.length; v38f47++) {
            if (v2a555.childNodes[v38f47].name && v2a555.childNodes[v38f47].name == vad215) v2ad66[v2ad66.length] = v2a555.childNodes[v38f47];
            if (v2a555.childNodes[v38f47].childNodes.length > 0) {
                this.getElementsByName(vad215, v2a555.childNodes[v38f47], v2ad66);
            }
        }
        return v2ad66;
    };
    if (!IS.ie) {
        this.__defineGetter__("all", function() {
            var vd2764 = new Array();
            for (var v38f47 = 0; v38f47 < this._e.childNodes.length; v38f47++) {
                vd2764[vd2764.length] = this._e.childNodes[v38f47];
            }
            return vd2764;
        });
        this.parentWindow = window;
    }
}
function WindowPopup(wi) {
    ISObject.call(this);
    this._wi = wi;
    this._e = null;
    this.Index = IS.RuntimeWindowPopups.length;
    this.Id = IS.PopupPrefix + this.Index;
    this.document = new WindowPopupDocument();
    this.isOpen = false;
    this.Initialized = false;
    this.OnClosed = null;
    this.Init = function() {
        if (this.Initialized) return;
        if (this._wi) {
            this._e = document.getElementById(this._wi.ControlID);
            if (this._e) {
                this.Id = this._wi.ControlID;
                with (this._e.style) {
                    visibility = "visible";
                    display = "";
                }
                this._wi.Width = ISPosLib.getWidth(this._e);
                this._wi.Height = ISPosLib.getWidth(this._e);
            } else {
                this._e = document.createElement("DIV");
                if (this._wi.ControlID != "") this.Id = this._e.id = this._wi.ControlID;
                else this._e.id = this.Id;
            }
        } else {
            this._e = document.createElement("DIV");
            this._e.id = this.Id;
        }
        with (this._e.style) {
            visibility = "hidden";
            position = "absolute";
            left = "-100px";
            top = "-100px";
            zIndex = 9900 + this.Index;
        }
        // make sure our popup has Intersoft flag
        this._e.setAttribute("popupProvider", "Intersoft");
        if (this._wi == null || this._wi.IsRelFromOffsetControl == false || (this._wi.OffsetControlID == null || this._wi.OffsetControlID == "")) document.body.insertAdjacentElement("afterBegin", this._e);
        else {
            var vecf14 = document.getElementById(this._wi.OffsetControlID);
            if (vecf14.offsetParent != null) vecf14.offsetParent.insertAdjacentElement("beforeEnd", this._e);
            else document.body.insertAdjacentElement("beforeEnd", this._e);
            this._e.style.display = "none";
            //this._e.style.position="relative";
        }
        this.document.body._e = this.document._e = this._e;
        if (this._wi) WindowEngine.CalcLocation(this._wi);
        this.Initialized = true;
    };
    this.ShowSmart = function(vcfe10, vaf418, v28685, v40772, v50713, v0ea86, va0b52, v0d732) {
        var v59f11 = ISPosLib.ApplyIntelligentPosition(new OffsetLocation(vcfe10, vaf418), this._e, v28685, true);
        this.Show(v59f11.X, v59f11.Y, v40772, v50713, v0ea86, va0b52, v0d732);
    };
    this.show = this.Show = function(vcfe10, vaf418, v40772, v50713, v0ea86, va0b52, v0d732) {
        if (this._e) {
            vcfe10 = parseFloat(vcfe10);
            if (vcfe10 == NaN) vcfe10 = 0;
            vaf418 = parseFloat(vaf418);
            if (vaf418 == NaN) vaf418 = 0;
            v40772 = parseFloat(v40772);
            if (isNaN(v40772)) v40772 = 0;
            v50713 = parseFloat(v50713);
            if (isNaN(v50713)) v50713 = 0;
            if (v0ea86) {
                vcfe10 = vcfe10 + ISPosLib.getLeft(v0ea86);
                vaf418 = vaf418 + ISPosLib.getTop(v0ea86);
            }
            if (!this._wi) {
                if (window.screenLeft) vcfe10 -= window.screenLeft;
                if (window.screenTop) vaf418 -= window.screenTop;
            }
            if (va0b52 && !IS.ie) {
                vaf418 = ISMoz.GetPreferredTop(vaf418, this._e, v0d732);
                vcfe10 = ISMoz.GetPreferredLeft(vcfe10, this._e, v0d732);
            }
            if (!IS.ie) {
                // check for negative pos
                if (vaf418 < 0) vaf418 = 1;
                if (vcfe10 < 0) vcfe10 = 1;
            }
            if (this._e.id == "") this._e.id = this.Id;
            with (this._e.style) {
                left = vcfe10 + "px";
                top = vaf418 + "px";
                if (v40772 <= 0) {
                    if (this._e.offsetWidth != 0) width = this._e.offsetWidth;
                } else width = v40772 + "px";
                if (v50713 == 0) height = "auto";
                else height = v50713 + "px";
                visibility = "visible";
                display = "";
            }
        }
        if (isPopup_CloseAcrossFrameClick) {
            var v30593 = IS.GetTopOpenPopups();
            try {
                v30593.push([window.name, this.Id, window.location.pathname, this]);
            } catch (v61b80) {
                v30593 = new Array();
                v30593.push([window.name, this.Id, window.location.pathname, this]);
            }
        }
        this.isOpen = true;
    };
    this.hide = this.Hide = function() {
        if (this._e) {
            this._e.style.visibility = "hidden";
            if ((IS.mac && IS.moz) || (this._wi != null && this._wi.IsRelFromOffsetControl == true)) this._e.style.display = "none";
        }
        if (isPopup_CloseAcrossFrameClick) {
            var v30593 = IS.GetTopOpenPopups();
            for (var v38f47 = 0; v38f47 < v30593.length; v38f47++) {
                var vab299 = v30593[v38f47];
                if (vab299[0] == window.name && vab299[1] == this.Id && vab299[2] == window.location.pathname) {
                    try {
                        v30593.splice(v38f47, 1);
                    } catch (v61b80) {
                        window.top.IS_OpenPopups = new Array();
                    }
                    break;
                }
            }
        }
        this.isOpen = false;
    };
    if (!wi) {
        this.Init();
    }
    IS.RuntimeWindowPopups[IS.RuntimeWindowPopups.length] = this;
}
/* </WindowPopup> */

function UnitSize(width, height) {
    this.Height = this.Width = null;
    if (width) this.Width = width;
    if (height) this.Height = height;
    this.IsEmpty = function() {
        return (this.Height == null && this.Width == null);
    };
    this.Parse = function(ved679) {
        if (!ved679) return;
        var vd2764 = ved679.split(",");
        this.Width = parseFloat(vd2764[0]);
        this.Height = parseFloat(vd2764[1]);
    };
}
function Rectangle(x, y, width, height) {
    this.X = this.Y = this.Width = this.Height = null;
    this.IsEmpty = function() {
        return (this.Height == null && this.Width == null && this.X == null && this.Y == null);
    };
    if (x) this.X = x;
    if (y) this.Y = y;
    if (width) this.Width = width;
    if (height) this.Height = height;
}
function FlyPostBackSettings() {
    this._Type = "FlyPostBackSettings";
    ISObject.call(this);
    this.PostViewState = true;
    this.PostInputControls = false;
    this.PostHiddenFields = true;
    this.PostControlState = true;
    this.OnPropertiesInitialized = function() {
        var vf6e46 = this.Parent;
        if (vf6e46 != null) {
            if (typeof (vf6e46.PostViewState) == "boolean") {
                vf6e46.PostViewState = this.PostViewState;
                vf6e46.PostInputControls = this.PostInputControls;
                vf6e46.PostHiddenFields = this.PostHiddenFields;
                vf6e46.PostControlState = this.PostControlState;
            }
        }
    };
}
function ShortcutKey(vf6e46, alt, shift, type, v93869) {
    this._Type = "ShortcutKey";
    ISObject.call(this);
    this.Ctrl = this.Alt = this.Shift = false;
    this.AccessKeyType = "Alphabet";
    this.SpecialKey = "None";
    this.AlphabetKey = "";
    this.Object = null;
    this.OwnerControl = null;
    if (typeof (vf6e46) != "undefined") this.Ctrl = vf6e46;
    if (typeof (alt) != "undefined") this.Alt = alt;
    if (typeof (shift) != "undefined") this.Shift = shift;
    if (typeof (type) != "undefined") this.AccessKeyType = type;
    if (typeof (v93869) != "undefined") {
        if (this.AccessKeyType == "Alphabet") this.AlphabetKey = v93869;
        else this.SpecialKey = v93869;
    }
    this.GetString = function() {
        var ved679 = "";
        if (this.Ctrl) ved679 = "Ctrl+";
        if (this.Shift) ved679 += "Shift+";
        if (this.Alt) ved679 += "Alt+";
        if (this.AccessKeyType == "Alphabet") ved679 += this.AlphabetKey;
        else ved679 += this.SpecialKey;
        return ved679;
    };
    this.IsEmpty = function() {
        if (!this.Ctrl && !this.Alt && !this.Shift && this.AccessKeyType == "Alphabet" && this.SpecialKey == "None" && this.AlphabetKey == "") return true;
        return false;
    };
    this.OnPropertiesInitialized = function() {
        if (!this.IsEmpty()) RegisterShortcutKey(this);
    };
}
function RegisterKeyboardHandler() {
    if (!IS.KeyboardHandlerInitialized) {
        if (document != null && document.body != null) document.body.attachEvent("onkeydown", ISCoreKeyboardHandler);
        IS.KeyboardHandlerInitialized = true;
    }
}
function RegisterShortcutKey(shortcut) {
    IS.ShortcutKeys.push(shortcut);
}
function UnregisterShortcutKey(shortcut) {
    var v38f47 = -1;
    for (var v9e165 = 0; v9e165 < IS.ShortcutKeys.length; v9e165++) {
        var vfc125 = IS.ShortcutKeys[v9e165];
        if (vfc125 == shortcut) {
            v38f47 = v9e165;
            break;
        }
    }
    if (v38f47 > -1) IS.ShortcutKeys.splice(v38f47, 1);
}
function UnregisterKeyboardHandler() {
    window.detachEvent("onkeydown", ISCoreKeyboardHandler);
}
function ISCoreKeyboardHandler(sourceEvent) {
    var v52c45 = event;
    var v1bf16 = null;
    if (sourceEvent) v52c45 = sourceEvent;
    try {
        var v23031 = v52c45.altKey; // check for permission denied issue when Window has closed
    } catch (v61b80) {
        return;
    }
    if (v52c45) {
        if (v52c45.altKey || v52c45.ctrlKey) {
            var ve2e65 = String.fromCharCode(v52c45.keyCode).toLowerCase();
            if (ve2e65 == ISKeyboardKey.TAB) return;
            for (var v38f47 = 0; v38f47 < IS.ShortcutKeys.length; v38f47++) {
                var vfc125 = IS.ShortcutKeys[v38f47];
                if ((vfc125.Ctrl == v52c45.ctrlKey) && (vfc125.Alt == v52c45.altKey) && (vfc125.Shift == v52c45.shiftKey)) // check enabled and other state of the object
                {
                    var v10784 = vfc125.Parent;
                    if (v10784 && v10784.Enabled && v10784.Visible) {
                        if (vfc125.AccessKeyType == "Alphabet" && vfc125.AlphabetKey.toLowerCase() == ve2e65) {
                            v1bf16 = vfc125;
                            break;
                        } else if (vfc125.AccessKeyType == "Special" && ISKeyboardKey.IsSpecialKey(v52c45.keyCode)) {
                            if (ISKeyboardKey[vfc125.SpecialKey] == v52c45.keyCode) {
                                v1bf16 = vfc125;
                                break;
                            }
                        }
                    }
                }
            }
            if (!v1bf16) {
                // try again to search on WebDesktopWindow level
                var v3fc14 = ISGetDesktopManager();
                if (v3fc14) {
                    var vf1430 = ISGetCurrentWindow(true);
                    if (vf1430) {
                        var v6d291 = vf1430.DesktopManager.GetIFrameWindow(vf1430.Name);
                        if (v6d291 != window && v6d291 != null) v6d291.ISCoreKeyboardHandler(v52c45);
                    }
                }
            }
            if (v1bf16) {
                var v10784 = vfc125.Parent;
                // check for object validity
                if (v10784.Click) v10784.Click();
                v52c45.keyCode = 0;
                v52c45.cancelBubble = true;
                v52c45.returnValue = false;
            }
        }
    }
}
function ISCoreContextMenuHandler() {
    var v52c45 = window.event;
    if (v52c45.type == "mousedown" && !ISEvent.ContextMenuCancelled) {
        if (ISEvent.IsLeftButton(event)) {
            if (ISEvent.MouseDownId != -1) clearTimeout(ISEvent.MouseDownId);
            var v2a555 = v52c45.srcElement;
            ISEvent.MouseDownId = setTimeout(function() {
                ISCoreEmulateContextMenu(v2a555);
            },
            1000);
        }
    } else if (v52c45.type == "mouseup") {
        if (ISEvent.MouseDownId != -1) {
            clearTimeout(ISEvent.MouseDownId);
            ISEvent.MouseDownId = -1;
        }
        ISEvent.ContextMenuCancelled = false;
    } else {
        /* mouse moved, context menu emulation cancelled */
        if (ISEvent.MouseDownId != -1) {
            clearTimeout(ISEvent.MouseDownId);
            ISEvent.MouseDownId = -1;
            ISEvent.ContextMenuCancelled = true;
        }
    }
}
function ISCoreEmulateContextMenu(v2a555) {
    if (v2a555 != null) {
        v2a555.fireEvent("oncontextmenu");
        var v59b0 = v2a555.parentElement;
        if (v59b0 != null && v59b0.tagName != "HTML") ISCoreEmulateContextMenu(v59b0);
    }
}
function ISGetPlaceHolderManager() {
    var vf4326 = null;
    if (typeof (GetPagePlaceHolderManager) == "function") vf4326 = GetPagePlaceHolderManager();
    if (!vf4326) {
        // try to find v59b0
        while (window.parent != null && window != window.parent) {
            var v88025 = window.parent;
            if (typeof (v88025.GetPagePlaceHolderManager) == "function") {
                return v88025.GetPagePlaceHolderManager();
            }
        }
    }
    return null;
}
function ISGetDesktopManager() {
    if (typeof (IS) == "object") {
        for (var v38f47 = 0; v38f47 < IS.RuntimeObjects.length; v38f47++) {
            var vf4326 = IS.RuntimeObjects[v38f47];
            if (vf4326 && vf4326.ClassName != null && vf4326.GetType() == "WebDesktopManager") return vf4326;
        }
    }
    var v88025 = window;
    // try to find v59b0
    while (v88025.parent != null && v88025 != v88025.parent) {
        v88025 = v88025.parent;
        if (typeof (v88025.ISGetDesktopManager) == "function") {
            return v88025.ISGetDesktopManager();
        }
    }
    return null;
}
function ISGetWindow(vad215) {
    var v3fc14 = ISGetDesktopManager();
    if (v3fc14) return v3fc14.GetWindow(vad215);
}
function ISGetActiveWindow() {
    var v3fc14 = ISGetDesktopManager();
    if (v3fc14) return v3fc14.GetActiveWindow();
}
function ISGetCurrentWindow(searchParent, _dm) {
    var v3fc14 = ISGetDesktopManager();
    if (_dm) v3fc14 = _dm;
    if (v3fc14) {
        if (window.frameElement) {
            var vbd448 = v3fc14.GetWindow(window.frameElement.name);
            if (!searchParent) return vbd448;
            else {
                if (vbd448) return vbd448;
                else {
                    var v0b943 = window.parent;
                    while (v0b943 && v0b943.frameElement) {
                        vbd448 = v3fc14.GetWindow(v0b943.frameElement.name);
                        if (vbd448) return vbd448;
                        else v0b943 = v0b943.parent;
                    }
                }
            }
        }
    }
    return null;
}
function ISCloseCurrentWindow() {
    var vbd448 = ISGetCurrentWindow();
    if (vbd448) vbd448.Close();
}
function IsGecko18() {
    return (IS.moz && navigator.userAgent.indexOf("rv:1.8") > -1);
}
function IsGecko20() {
    return (IS.moz && navigator.userAgent.indexOf("Firefox/2.0") > -1);
}
function IsGecko30() {
    return (IS.moz && (navigator.userAgent.indexOf("Firefox/3.0") > -1 || navigator.userAgent.indexOf("Firefox/3.5")));
}
function IsGecko18Up() {
    if (IsGecko18() || IsGecko20() || IsGecko30()) return true;
    return false;
}
function IsIE8StandardMode() {
    return (IS.ie && IS.GetIEVersion() > 7 && IS.IsXHTMLDocType());
}
function IsIE7StandardMode() {
    return (IS.ie && IS.GetIEVersion() < 8 && IS.IsXHTMLDocType());
}
window.attachEvent("onload", ISCoreOnLoad);
window.attachEvent("onunload", ISCoreDestructor);
if (!IS.ie) ec56c82.md619();
if (typeof (Sys) != "undefined") Sys.Application.notifyScriptLoaded();
