﻿window.addEvent('domready', function () {
    if (typeof Sys != "undefined") {
        Sys.WebForms.PageRequestManager._instance._matchesParentIDInList = function (clientID, parentIDList) {
            for (var i = 0, l = parentIDList.length; i < l; i++) {
                if ($type(clientID) != "string") continue;

                if (clientID.startsWith(parentIDList[i] + "_")) {
                    return true;
                }
            }
            return false;
        }
    }
});
