if (typeof (window.RadControlsNamespace) == "undefined")
    {
    window.RadControlsNamespace = new Object();
    } ;
RadControlsNamespace.AppendStyleSheet = function(O, o, I)
    {
    if (!I)
        {
        return;
        }

    if (!O)
        {
        document.write(
            "\x3c" + "link"
                + "\x20\x72el=\047styles\x68\x65et\x27\040\x74\x79pe=\x27\164e\x78t/c\x73\x73\047\x20hr\x65\146=\x27"
                + I + "\047\x20/>");
        }

    else
        {
        var A = document.createElement("LINK");
        A.rel = "st\x79\x6cesheet";
        A.type = "\x74\x65xt/css";
        A.href = I;
        document.getElementById(o + "StyleSheetHo\x6c\144e\x72").appendChild(A);
        }
    };
function RadComboItem()
    {
    this.ComboBox = null;
    this.ClientID = null;
    this.Highlighted = false;
    this.Index = 0;
    this.Enabled = 1;
    this.Selected = 0;
    this.Text = "";
    this.Value = null;
    this.U = new Array();
    }
;
RadComboItem.prototype.Initialize = function(Z)
    {
    for (var z in Z)
        {
        this[z] = Z[z];
        }
    };
RadComboItem.prototype.W = function()
    {
    if (this.ComboBox.Items.length > 0)
        {
        var totalHeight = 0;

        for (var i = 0; i <= this.Index; i++)
            {
            var w = document.getElementById(this.ComboBox.Items[i].ClientID);

            if (w)
                {
                totalHeight += w.offsetHeight;
                }
            }

        document.getElementById(
            this.ComboBox.ClientID + "\x5fDropDo\x77\x6e").scrollTop = totalHeight - document.getElementById(
                                                                                         this.ComboBox.ClientID
                                                                                             + "_DropD\x6f\x77n").offsetHeight;
        }
    };
RadComboItem.prototype.V = function()
    {
    if (this.ComboBox.Items.length > 0)
        {
        var totalHeight = 0;

        for (var i = 0; i < this.Index; i++)
            {
            var w = document.getElementById(this.ComboBox.Items[i].ClientID);

            if (w)
                {
                totalHeight += w.offsetHeight;
                }
            }

        var scrollTop = document.getElementById(this.ComboBox.ClientID + "\x5fDropDown").scrollTop;

        if (scrollTop > totalHeight)
            {
            document.getElementById(this.ComboBox.ClientID + "\x5fDropDow\x6e").scrollTop = totalHeight;
            }
        }
    };
RadComboItem.prototype.Highlight = function()
    {
    if (!this.Highlighted && this.Enabled)
        {
        this.ComboBox.UnHighlightAll();

        if (!this.ComboBox.IsTemplated || this.ComboBox.HighlightTemplatedItems)
            {
            if (document.getElementById(this.ClientID))
                {
                document.getElementById(this.ClientID).className = this.ComboBox.ItemCssClassHover;
                }
            }

        this.Highlighted = true;
        this.ComboBox.HighlightedItem = this;
        }
    };
RadComboItem.prototype.UnHighlight = function()
    {
    if (this.Highlighted && this.Enabled && document.getElementById(this.ClientID))
        {
        document.getElementById(this.ClientID).className = this.ComboBox.ItemCssClass;
        this.Highlighted = false;
        this.ComboBox.HighlightedItem = null;
        }
    };
RadComboItem.prototype.Select = function()
    {
    this.ComboBox.SelectedItem = this;
    this.ComboBox.v(this);
    this.ComboBox.HideDropDown();
    this.ComboBox.T = true;
    this.ComboBox.t();
    };
function RadComboBox(S, R)
    {
    var r = window[R];

    if (r != null && !r.tagName)
        {
        r.Q();
        }

    if (window.tlrkComboBoxes == null)
        {
        window.tlrkComboBoxes = new Array();
        }

    tlrkComboBoxes[tlrkComboBoxes.length] = this;
    this.Items = new Array();
    this.P = false;
    this.ID = S;
    this.ClientID = R;
    this.N = R;
    this.DropDownID = R + "\x5f\x44\x72opDo\x77\156";
    this.InputID = R + "\x5f\x49nput";
    this.ImageID = R + "_Image";
    this.DropDownPlaceholderID = R + "_DropDow\x6e\x50lac\x65\x68old\x65\162";
    this.MoreResultsBoxID = R + "\x5fMoreResult\x73\x42ox";
    this.MoreResultsBoxImageID = R + "_\x4d\x6freResul\x74\x73Box\x49\x6dag\x65";
    this.MoreResultsBoxMessageID = R + "_M\x6f\x72eResult\x73\102ox\x4d\x65ss\x61\x67e";
    this.n = R + "\x5fHead\x65\x72";
    this.M = document.getElementById(this.InputID);
    this.m = document.getElementById(this.ImageID);
    this.L = document.getElementById(this.DropDownPlaceholderID);
    this.l = document.getElementById(this.ClientID + "\x5ftext");
    this.K = document.getElementById(this.ClientID + "\x5fvalue");
    this.k = document.getElementById(this.ClientID + "\x5f\151nde\x78");
    this.Enabled = true;
    this.DropDownVisible = false;
    this.LoadOnDemandUrl = null;
    this.PollTimeOut = 0;
    this.HighlightedItem = null;
    this.SelectedItem = null;
    this.ItemRequestTimeout = 300;
    this.EnableLoadOnDemand = false;
    this.AutoPostBack = false;
    this.ShowMoreResultsBox = false;
    this.OpenDropDownOnLoad = false;
    this.J = false;
    this.MarkFirstMatch = false;
    this.IsCaseSensitive = false;
    this.PostBackReference = null;
    this.LoadingMessage = "\x4c\x6fading\x2e\x2e.";
    this.ScrollDownImage = null;
    this.ScrollDownImageDisabled = null;
    this.H = null;
    this.RadComboBoxImagePosition = "\x52ight";
    this.ItemCssClass = null;
    this.ItemCssClassHover = null;
    this.ItemCssClassDisabled = null;
    this.ImageCssClass = null;
    this.ImageCssClassHover = null;
    this.InputCssClass = null;
    this.InputCssClassHover = null;
    this.LoadingMessageCssClass = "\x43omboBoxLoa\x64\x69ngM\x65\x73sa\x67\x65";
    this.AutoCompleteSeparator = null;
    this.ExternalCallBackPage = null;
    this.OnClientSelectedIndexChanging = null;
    this.OnClientDropDownOpening = null;
    this.OnClientDropDownClosing = null;
    this.OnClientItemsRequesting = null;
    this.OnClientSelectedIndexChanged = null;
    this.OnClientItemsRequested = null;
    this.OnClientKeyPressing = null;
    this.Skin = "\x43lassi\x63";
    this.HideTimeoutID = 0;
    this.h = 0;
    this.G = false;
    this.g = null;
    this.AllowCustomText = false;
    this.ExpandEffectString = null;
    this.HighlightTemplatedItems = false;
    this.CausesValidation = false;
    this.ClientDataString = null;
    this.T = false;
    this.F = -1;
    this.IsTemplated = false;
    this.f = null;
    var comboInstance = this;
    this.D = function()
        {
        comboInstance.HideOnClick();
        } ;

    if (document.attachEvent)
        {
        document.attachEvent("on\x63\x6cick", this.D);
        }

    else
        {
        document.addEventListener("\x63\x6cick", this.D, false);
        }

    this.d = function(e)
        {
        comboInstance.C(e || event);
        } ;

    if (document.attachEvent)
        {
        document.getElementById(this.InputID).attachEvent("onblur", this.d);
        }

    else
        {
        document.getElementById(this.InputID).addEventListener("\x62lur", this.d, false);
        }

    this.B = function()
        {
        comboInstance.o0();
        } ;

    if (document.attachEvent)
        {
        document.getElementById(this.InputID).attachEvent("onfocus", this.B);
        }

    else
        {
        document.getElementById(this.InputID).addEventListener("\x66\x6f\x63us", this.B, false);
        }

    document.getElementById(this.InputID).setAttribute("\x61utocomplete", "off");
    document.getElementById(this.DropDownPlaceholderID).onselectstart = function()
        {
        return false;
        } ;

    if (typeof (RadCallbackNamespace) != "\x75ndefined")
        {
        window.setTimeout(function()
            {
            comboInstance.O0(document.getElementById(comboInstance.InputID));
            } ,           100);
        }

    else
        {
        var l0 = false;

        if (window.addEventListener)
            {
            window.addEventListener("l\x6f\x61d", function()
                {
                comboInstance.O0(document.getElementById(comboInstance.InputID));
                } ,                 false);

            l0 = true;
            }

        else
            {
            if (!l0)
                {
                this.O0(document.getElementById(this.InputID));
                }
            }
        }

    if (window.attachEvent)
        {
        window.attachEvent("\x6fnunl\x6f\x61d", function()
            {
            comboInstance.Q();
            } );
        }

    else
        {
        window.addEventListener("\165\x6e\x6coad", function()
            {
            comboInstance.Q();
            } ,                 false);
        }
    }
;
RadComboBox.prototype.Q = function()
    {
    try
        {
        tlrkComboBoxes[this.ID] = null;
        this.Items = null;
        this.M = null;
        this.m = null;
        this.L = null;
        this.l = null;
        this.K = null;
        this.k = null;
        this.H = null;
        this.OnClientSelectedIndexChanging = null;
        this.OnClientDropDownOpening = null;
        this.OnClientDropDownClosing = null;
        this.OnClientItemsRequesting = null;
        this.OnClientSelectedIndexChanged = null;
        this.OnClientItemsRequested = null;
        this.OnClientKeyPressing = null;
        var comboInstance = this;

        if (document.detachEvent)
            {
            document.detachEvent("o\x6e\x63lick", this.D);
            }

        else
            {
            document.removeEventListener("click", this.D, false);
            }

        if (document.detachEvent)
            {
            document.getElementById(this.InputID).detachEvent("onbl\x75\x72", this.d);
            }

        else
            {
            document.getElementById(this.InputID).removeEventListener("blur", this.d, false);
            }

        if (document.detachEvent)
            {
            document.getElementById(this.InputID).detachEvent("\157\x6e\x66ocus", this.B);
            }

        else
            {
            document.getElementById(this.InputID).removeEventListener("\x66ocus", this.B, false);
            }

        if (window.removeEventListener)
            {
            window.removeEventListener("loa\x64", function()
                {
                comboInstance.O0(document.getElementById(comboInstance.InputID));
                } ,                    false);
            }

        var input = document.getElementById(this.InputID);

        if (input != null)
            input.onblur = null;

        input = null;
        var i0 = document.getElementById(this.DropDownPlaceholderID);

        if (i0 != null)
            {
            i0.onselectstart = null;
            }

        i0 = null;
        }
    catch (e)
        {
        }
    };
RadComboBox.prototype.Initialize = function(I0, Z)
    {
    this.o1(I0);
    this.O1(Z);
    this.l1();
    this.i1();
    };
RadComboBox.prototype.o1 = function(I0)
    {
    for (var z in I0)
        {
        this[z] = I0[z];
        }
    };
RadComboBox.prototype.l1 = function()
    {
    this.ItemCssClass = "ComboBoxI\x74em_" + this.Skin;
    this.ItemCssClassHover = "Com\x62\x6fBoxIte\x6d\x48ove\x72_" + this.Skin;
    this.ItemCssClassDisabled = "Com\x62\x6fBoxIte\x6d\x44isa\x62\154\x65\x64_" + this.Skin;
    this.ImageCssClass = "\x43\x6fmboBo\x78\x49mag\x65\x5f" + this.Skin;
    this.ImageCssClassHover = "Com\x62\x6fBoxIma\x67\x65Hov\x65\x72_" + this.Skin;
    this.InputCssClass = "ComboBoxIn\x70\x75t_" + this.Skin;
    this.InputCssClassHover = "\x43omboBoxInp\x75\x74Hove\x72\x5f" + this.Skin;
    this.LoadingMessageCssClass = "\x43omboBoxLoa\x64\x69ngMe\x73\x73ag\x65\x5f" + this.Skin;
    };
RadComboBox.prototype.v = function(item)
    {
    if (item != null)
        {
        this.I1(item.Text);
        this.SetValue(item.Value);
        this.o2(item.Index);
        }

    else
        {
        this.SetText("");
        this.SetValue("");
        this.o2("\x2d1");
        }
    };
RadComboBox.prototype.t = function()
    {
    if (this.AutoPostBack)
        {
        if (this.CausesValidation)
            {
            if (typeof (WebForm_DoPostBackWithOptions) != "\146u\x6e\x63tion"
                    && !( typeof (Page_ClientValidate) != "function" || Page_ClientValidate()))
                {
                return;
                }
            }

        eval(this.PostBackReference);
        }
    };
RadComboBox.prototype.C = function(e)
    {
    var O2 = this.SelectedItem;
    var l2 = this.HighlightedItem;

    if (O2 != null && l2 != null && O2 != l2)
        {
        this.v(l2);
        this.i2();
        }

    var I2 = this.f;
    var o3 = this.GetText();

    if (I2 != o3 && this.AllowCustomText)
        {
        this.SetText(this.GetText());

        if (!this.T)
            {
            this.t();
            }

        else
            {
            this.T = false;
            }
        }
    };
RadComboBox.prototype.o0 = function(e)
    {
    this.f = this.GetText();
    this.O3();
    };
RadComboBox.prototype.l3 = function()
    {
    var i3 = document.getElementById(this.N);

    while (i3.tagName != "FORM")
        {
        i3 = i3.parentNode;
        }

    return i3;
    };
RadComboBox.prototype.I3 = function()
    {
    var i0 = document.getElementById(this.DropDownPlaceholderID);
    var o4 = i0.getElementsByTagName("input");
    return o4.length > 0;
    };
RadComboBox.prototype.O4 = function()
    {
    if ((!document.readyState || document.readyState == "\x63\x6f\x6dplete") && (!this.G))
        {
        var parentElement = document.body;

        if (this.I3())
            {
            parentElement = this.l3();
            }

        var i0 = document.getElementById(this.N).getElementsByTagName("D\x49\x56")[0];
        i0.parentNode.removeChild(i0);
        i0.style.marginLeft = "0";
        var l4 = document.getElementById(this.DropDownPlaceholderID);

        if (l4)
            {
            l4.parentNode.removeChild(l4);
            }

        if (parentElement.firstChild)
            {
            parentElement.insertBefore(i0, parentElement.firstChild);
            }

        else
            {
            parentElement.appendChild(i0);
            }

        this.G = true;
        this.L = document.getElementById(this.DropDownPlaceholderID);
        }
    };
RadComboBox.prototype.HideOnClick = function()
    {
    var comboInstance = this;
    this.HideTimeoutID = window.setTimeout(function()
        {
        comboInstance.DoHideOnClick();
        } ,                                5);
    };
RadComboBox.prototype.DoHideOnClick = function()
    {
    if (this.HideTimeoutID)
        {
        this.HideDropDown();
        }
    };
RadComboBox.prototype.ClearHideTimeout = function()
    {
    this.HideTimeoutID = 0;
    } ;
RadComboBox.prototype.i4 = function(text)
    {
    var lastIndex = -1;

    for (var i = 0; i < this.AutoCompleteSeparator.length; i++)
        {
        var I4 = this.AutoCompleteSeparator.charAt(i);
        var o5 = text.lastIndexOf(I4);

        if (o5 > lastIndex)
            {
            lastIndex = o5;
            }
        }

    return lastIndex;
    };
RadComboBox.prototype.I1 = function(O5)
    {
    var l5 = -1;
    var i5 = this.GetText();

    if (this.AutoCompleteSeparator != null)
        {
        l5 = this.i4(i5);
        }

    var o3 = i5.substring(0, l5 + 1) + O5;
    this.SetText(o3);
    };
RadComboBox.prototype.ClearSelection = function()
    {
    this.v(null);
    this.SelectedItem = null;
    this.I5 = null;
    };
RadComboBox.prototype.O1 = function(Z)
    {
    for (var i = 0; i < Z.length; i++)
        {
        var item = new RadComboItem();
        item.ComboBox = this;
        item.Index = this.Items.length;
        item.Initialize(Z[i]);
        this.Items[this.Items.length] = item;
        }
    };
RadComboBox.prototype.i1 = function()
    {
    if (this.SelectedItem != null)
        {
        this.SelectedItem.Highlight();
        }

    else
        {
        var i5 = this.GetText();
        var o6 = this.FindItemByText(i5);

        if (o6 != null)
            {
            this.SelectedItem = o6;
            this.SelectedItem.Highlight();
            }
        }

    this.P = true;

    if (this.SelectedItem == null && this.F == -1 && this.Items.length > 0)
        {
        this.SelectedItem = this.Items[0];
        this.Items[0].Selected = true;
        this.SelectedItem.Highlight();
        }

    var comboInstance = this;

    if (this.OpenDropDownOnLoad)
        {
        if (window.attachEvent)
            {
            window.attachEvent("o\x6e\x6c\x6fad", function()
                {
                comboInstance.ShowDropDown();
                } );
            }

        else
            {
            window.addEventListener("load", function()
                {
                comboInstance.ShowDropDown();
                } ,                 false);
            }
        }
    };
RadComboBox.prototype.O6 = function(Z, l6)
    {
    if (!l6)
        {
        this.Items.length = 0;
        }

    this.HighlightedItem = null;
    this.SelectedItem = null;
    this.P = false;

    if (this.Items.length > 0)
        {
        if (this.Items[0].Text == document.getElementById(this.InputID).value)
            {
            this.SetValue(this.Items[0].Value);
            }

        else
            {
            this.SetValue("");
            }

        this.g = this.GetText();
        }

    this.O1(Z);
    };
RadComboBox.prototype.SetText = function(O5)
    {
    document.getElementById(this.InputID).value = O5;
    this.l.value = O5;
    };
RadComboBox.prototype.GetText = function()
    {
    return document.getElementById(this.InputID).value;
    } ;
RadComboBox.prototype.SetValue = function(value)
    {
    if (value || value == "")
        {
        this.K.value = value;
        }
    };
RadComboBox.prototype.GetValue = function()
    {
    return this.K.value;
    } ;
RadComboBox.prototype.o2 = function(index)
    {
    this.k.value = index;
    } ;
RadComboBox.prototype.i6 = function(el)
    {
    var parent = null;
    var I6 = [];
    var box;

    if (el.getBoundingClientRect)
        {
        box = el.getBoundingClientRect();
        var scrollTop = document.documentElement.scrollTop || document.body.scrollTop;
        var scrollLeft = document.documentElement.scrollLeft || document.body.scrollLeft;
        var x = box.left + scrollLeft - 2;
        var y = box.top + scrollTop - 2;
        return [x, y];
        }

    else if (document.getBoxObjectFor)
        {
        box = document.getBoxObjectFor(el);
        I6 = [box.x - 2, box.y - 2];
        }

    else
        {
        I6 = [el.offsetLeft, el.offsetTop];
        parent = el.offsetParent;

        if (parent != el)
            {
            while (parent)
                {
                I6[0] += parent.offsetLeft;
                I6[1] += parent.offsetTop;
                parent = parent.offsetParent;
                }
            }
        }

    if (window.opera)
        {
        parent = el.offsetParent;

        while (parent && parent.tagName != "\x42\x4fDY" && parent.tagName != "HTM\x4c")
            {
            I6[0] -= parent.scrollLeft;
            I6[1] -= parent.scrollTop;
            parent = parent.offsetParent;
            }
        }

    else
        {
        parent = el.parentNode;

        while (parent && parent.tagName != "BODY" && parent.tagName != "HTML")
            {
            I6[0] -= parent.scrollLeft;
            I6[1] -= parent.scrollTop;
            parent = parent.parentNode;
            }
        }

    return I6;
    };
RadComboBox.prototype.o7 = function(x, y)
    {
    if (document.readyState && document.readyState != "complete")
        {
        return;
        }

    var O7 = (navigator.userAgent.toLowerCase().indexOf("\x73afari") != -1);
    var l7 = window.opera;

    if (O7 || l7 || (!document.all))
        {
        return;
        }

    if (this.H == null)
        {
        this.H = document.createElement("IFRAME");
        this.H.src = "javascript\x3a\x27\047";
        this.H.id = this.ClientID + "_Overlay";
        this.H.frameBorder = 0;
        this.H.style.position = "abso\x6c\x75te";
        this.H.style.visibility = "hi\x64\x64en";
        this.L.parentNode.insertBefore(this.H, this.L);
        this.H.style.zIndex = this.L.style.zIndex - 1;
        }

    this.H.style.left = x;
    this.H.style.top = y;
    var i7 = this.L.offsetWidth;
    var I7 = this.L.offsetHeight;
    this.H.style.width = i7 + "\x70x";
    this.H.style.height = I7 + "px";
    this.H.style.visibility = "\x76\x69sible";
    };
RadComboBox.prototype.o8 = function()
    {
    var O7 = (navigator.userAgent.toLowerCase().indexOf("\x73afari") != -1);
    var l7 = window.opera;

    if (O7 || l7 || (!document.all))
        {
        return;
        }

    if (this.H != null)
        {
        this.H.style.visibility = "hidden";
        }
    };
RadComboBox.prototype.O8 = function()
    {
    for (var i = 0; i < tlrkComboBoxes.length; i++)
        {
        if (tlrkComboBoxes[i].ClientID != this.ClientID)
            {
            tlrkComboBoxes[i].HideDropDown();
            }
        }
    };
RadComboBox.prototype.ShowDropDown = function()
    {
    if (this.l8(this.OnClientDropDownOpening, this) == false)
        {
        return;
        }

    this.O8();
    this.O4();
    var i8;
    (this.RadComboBoxImagePosition == "Right") ? i8 = this.M : i8 = document.getElementById(this.ImageID);
    var position = this.i6(i8);
    var x = position[0];
    var y = position[1] + i8.offsetHeight;
    var I8 = document.getElementById(this.N);
    o9 = I8.offsetWidth;

    if (this.ExpandEffectString != null && document.all)
        {
        this.L.style.filter = this.ExpandEffectString;
        this.L.filters[0].Apply();
        this.L.filters[0].Play();
        }

    this.L.style.position = "\x61bso\x6c\x75te";
    this.L.style.left = x + "px";
    this.L.style.top = y + "px";
    this.L.style.width = o9 - 2 + "\x70x";
    this.L.style.display = "blo\x63\x6b";
    this.o7(x + "px", y + "\x70x");

    if (this.HighlightedItem != null)
        {
        this.HighlightedItem.W();
        }

    if (this.SelectedItem != null)
        {
        this.SelectedItem.W();
        }

    this.ClearHideTimeout();
    this.DropDownVisible = true;

    try
        {
        document.getElementById(this.InputID).focus();
        }
    catch (e)
        {
        }

    ;

    if ((this.EnableLoadOnDemand) && (this.Items.length == 0))
        {
        this.O9(true, null);
        }

    if (this.SelectedItem != null)
        {
        this.SelectedItem.Highlighted = false;
        this.SelectedItem.Highlight();
        this.SelectedItem.V();
        }
    };
RadComboBox.prototype.FindItemByText = function(O5)
    {
    for (var i = 0; i < this.Items.length; i++)
        {
        if (this.Items[i].Text == O5)
            {
            return this.Items[i];
            }
        }

    return null;
    };
RadComboBox.prototype.FindItemByValue = function(l9)
    {
    for (var i = 0; i < this.Items.length; i++)
        {
        if (this.Items[i].Value == l9)
            {
            return this.Items[i];
            }
        }

    return null;
    };
RadComboBox.prototype.HideDropDown = function()
    {
    if (this.DropDownVisible)
        {
        if (this.l8(this.OnClientDropDownClosing, this) == false)
            {
            return;
            }

        document.getElementById(this.DropDownPlaceholderID).style.display = "\x6e\x6f\x6ee";
        this.o8();
        this.DropDownVisible = false;
        this.i9();
        }
    };
RadComboBox.prototype.i9 = function()
    {
    this.l8(this.OnClientBlur, this);
    } ;
RadComboBox.prototype.O3 = function()
    {
    this.l8(this.OnClientFocus, this);
    } ;
function I9(oa)
    {
    document.body.appendChild(document.createTextNode(oa));
    document.body.appendChild(document.createElement("HR"));
    }
RadComboBox.prototype.ToggleDropDown = function()
    {
    (this.DropDownVisible) ? this.HideDropDown() : this.ShowDropDown();
    } ;
RadComboBox.prototype.Oa = function(la)
    {
    if (la)
        {
        while (la != null)
            {
            if (la.id && this.ia(la.id))
                {
                return la;
                }

            la = la.parentNode;
            }
        }

    return null;
    };
RadComboBox.prototype.ia = function(Ia)
    {
    for (var i = 0; i < this.Items.length; i++)
        {
        if (this.Items[i].ClientID == Ia)
            {
            return true;
            }
        }

    return false;
    };
RadComboBox.prototype.ob = function(item)
    {
    for (var i = 0; i < this.Items.length; i++)
        {
        if (this.Items[i].ClientID == item.id)
            {
            return this.Items[i];
            }
        }

    return null;
    };
RadComboBox.prototype.Ob = function(lb)
    {
    lb.Highlight();
    } ;
RadComboBox.prototype.ib = function(lb)
    {
    lb.UnHighlight();
    } ;
RadComboBox.prototype.i2 = function(eventArgs)
    {
    var Ib = this.HighlightedItem;

    if (Ib != null)
        {
        if (this.l8(this.OnClientSelectedIndexChanging, Ib, eventArgs) == false)
            {
            return;
            }

        Ib.Select();
        this.l8(this.OnClientSelectedIndexChanged, Ib, eventArgs);
        }

    this.HideDropDown();
    };
RadComboBox.prototype.HandleClick = function(eventArgs)
    {
    this.i2(eventArgs);
    } ;
RadComboBox.prototype.oc = function(index)
    {
    var i = index;
    var Oc = false;

    while (i < this.Items.length - 1)
        {
        i = i + 1;

        if (this.Items[i].Enabled)
            {
            Oc = true;
            break;
            }
        }

    if (Oc)
        return i;

    return index;
    };
RadComboBox.prototype.lc = function(index)
    {
    var i = index;
    var Oc = false;

    while (i > 0)
        {
        i = i - 1;

        if (this.Items[i].Enabled)
            {
            Oc = true;
            break;
            }
        }

    if (Oc)
        return i;

    return index;
    };
RadComboBox.prototype.ic = function(comboInstance, eventArgs)
    {
    this.l8(this.OnClientKeyPressing, this, eventArgs);

    if (eventArgs.keyCode == 46)
        {
        if (!this.EnableLoadOnDemand && !this.AllowCustomText)
            {
            this.Ic(eventArgs);
            }
        }

    if (eventArgs.keyCode == 40)
        {
        if (eventArgs.altKey && (!this.DropDownVisible))
            {
            this.ShowDropDown();
            return;
            }

        var index = 0;

        if (this.HighlightedItem != null)
            {
            index = this.oc(this.HighlightedItem.Index);
            }

        if (index >= 0 && this.Items.length > 0)
            {
            if (this.l8(this.OnClientSelectedIndexChanging, this.Items[index], eventArgs) == false)
                {
                return;
                }

            this.Items[index].Highlight();
            this.Items[index].W();
            this.v(this.Items[index]);
            this.Ic(eventArgs);
            }

        return;
        }

    if (eventArgs.keyCode == 27 && this.DropDownVisible)
        {
        this.HideDropDown();
        return;
        }

    if (eventArgs.keyCode == 38)
        {
        if (eventArgs.altKey && this.DropDownVisible)
            {
            this.HideDropDown();
            return;
            }

        var index = -1;

        if (this.HighlightedItem != null)
            {
            index = this.lc(this.HighlightedItem.Index);
            }

        if (index >= 0)
            {
            if (this.l8(this.OnClientSelectedIndexChanging, this.Items[index], eventArgs) == false)
                {
                return;
                }

            this.Items[index].V();
            this.Items[index].Highlight();
            this.v(this.Items[index]);
            this.Ic(eventArgs);
            }

        return;
        }

    if ((eventArgs.keyCode == 13 || eventArgs.keyCode == 9) && this.DropDownVisible)
        {
        if (eventArgs.keyCode == 13)
            {
            this.Ic(eventArgs);
            }

        this.i2();
        return;
        }

    if (eventArgs.keyCode == 9 && !this.DropDownVisible)
        {
        this.i9();
        return;
        }

    if (eventArgs.keyCode == 35 || eventArgs.keyCode == 36 || eventArgs.keyCode == 37 || eventArgs.keyCode == 39)
        {
        return;
        }

    if (this.EnableLoadOnDemand && (!eventArgs.altKey) && (!eventArgs.ctrlKey) && (!(eventArgs.keyCode == 16)))
        {
        if (!this.DropDownVisible)
            {
            this.ShowDropDown();
            }

        this.od(false, eventArgs.keyCode);
        return;
        }

    var Od = eventArgs.keyCode;

    if ((Od < 32) || (Od >= 33 && Od <= 46) || (Od >= 112 && Od <= 123) || (eventArgs.altKey == true))
        {
        return;
        }

    var ld = this;
    window.setTimeout(function()
        {
        ld.oe();
        } ,           20);
    };
RadComboBox.prototype.Oe = function(eventArgs)
    {
    if (eventArgs.preventDefault)
        {
        if (eventArgs.keyCode == 13 || (eventArgs.keyCode == 32 && (!this.EnableLoadOnDemand)))
            {
            eventArgs.preventDefault();
            }
        }
    };
RadComboBox.prototype.le = function(s)
    {
    if (typeof (encodeURIComponent) != "\165ndefine\x64")
        {
        return encodeURIComponent(this.ie(s));
        }

    if (escape)
        {
        return escape(this.ie(s));
        }
    };
RadComboBox.prototype.ie = function(text)
    {
    if (typeof (text) != "number")
        {
        return text.replace(/\x27/g, "&squot\x65");
        }
    };
RadComboBox.prototype.Ie = function(of, text, keyCode)
    {
    if (!this.J)
        {
        this.J = true;
        var Of = (text) ? text : document.getElementById(this.InputID).value;
        var If = this.GetValue();
        Of = Of.replace(/\x27/g, "\x26squo\x74\x65");
        var url = this.LoadOnDemandUrl + "\x26\x74ext=" + this.le(Of);
        url = url + "&comboValue\x3d" + this.le(If);
        url = (of) ? url + "\x26\x69temCoun\x74\x3d" + this.Items.length : url;
        url = url + "\x26skin=" + this.le(this.Skin);

        if (this.ExternalCallBackPage != null)
            {
            url = url + "\x26external=tru\x65";
            }

        if (this.ClientDataString != null)
            {
            url += "&client\x44\x61taStr\x69\x6eg=" + this.le(this.ClientDataString);
            }

        url = url + "\x26timeSt\x61\x6dp=" + encodeURIComponent(( new Date()).getTime());
        var xmlRequest = null;

        if (typeof (XMLHttpRequest) != "\x75ndefine\x64")
            {
            xmlRequest = new XMLHttpRequest();
            }

        if (typeof (ActiveXObject) != "undefi\x6e\x65d")
            {
            xmlRequest = new ActiveXObject("\x4dicrosoft.XM\x4c\x48TTP");
            }

        xmlRequest.open("GET", url, true);
        var og = this;
        xmlRequest.onreadystatechange = function()
            {
            if (xmlRequest.readyState != 4)
                return;

            og.Og(xmlRequest.responseText, of, Of, keyCode, xmlRequest.status, url);
            };

        xmlRequest.send("");
        }
    };
RadComboBox.prototype.Og = function(lg, of, Of, keyCode, status, url)
    {
    if (status == 500)
        {
        alert("\x72.a.d.\x63\x6fmbobo\x78\x3a S\x65rver er\x72\x6fr \x69\x6e t\x68e I\x74emsRe\x71\165\x65sted \x65vent \x68andle\x72, pre\x73s o\x6b to\x20view\x20the \x72esul\x74.");
        document.body.innerHTML = lg;
        return;
        }

    if (status == 404)
        {
        alert("\x72\056\x61\x2ed.c\x6f\x6dbob\x6f\170:\x20\x4coad\x20\x4fn \x44emand \x50age no\x74\040\x66\157\x75\156d\x3a "
                 + url);
        var ig = "\x72.a.d.\x63\x6fmbob\x6f\x78: L\x6f\x61d O\x6e\040\x44\x65ma\x6e\144 \x50age no\x74\040\x66\157\x75\156d\x3a " + url
                + "\x3c\x62r/>";
        ig
            += "\x50lease, try \x75\x73ing\x20\x45xte\x72\x6eal\x43\x61llB\x61\143\x6b\120a\x67e to m\x61p to \x74\150e\x20exact\x20locat\x69on \x6ff th\x65 cal\x6cback\x70age \x79ou a\x72e u\x73ing.";
        document.body.innerHTML = ig;
        return;
        }

    eval("\x76ar callBa\x63\x6bDat\x61\x20= " + lg + ";");

    if (this.ShowMoreResultsBox)
        {
        document.getElementById(this.MoreResultsBoxMessageID).innerHTML = callBackData.Message;
        }

    var Ig = this.Items.length;
    this.O6(callBackData.Items, of);

    if (of)
        {
        document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID + "_LoadingDi\x76"));
        document.getElementById(this.DropDownID).innerHTML += callBackData.DropDownHtml;

        if (this.Items[Ig + 1] != null)
            {
            this.Items[Ig + 1].W();
            }
        }

    else
        {
        document.getElementById(this.DropDownID).innerHTML = callBackData.DropDownHtml;
        }

    this.o7(this.L.style.left, this.L.style.top);
    this.l8(this.OnClientItemsRequested, this, Of, of);
    this.J = false;
    var oh = this.FindItemByText(this.GetText());

    if (oh != null)
        {
        oh.Highlight();
        oh.W();
        }

    if (!keyCode)
        return;

    if (keyCode < 32 || (keyCode >= 33 && keyCode <= 46) || (keyCode >= 112 && keyCode <= 123))
        {
        return;
        }

    this.oe();
    };
RadComboBox.prototype.Oh = function(i5)
    {
    var l5 = -1;

    if (this.AutoCompleteSeparator != null)
        {
        l5 = this.i4(i5);
        }

    var lh = i5.substring(l5 + 1, i5.length);
    return lh;
    };
RadComboBox.prototype.ih = function(Ih, oi)
    {
    if (!this.IsCaseSensitive)
        {
        return (Ih.toLowerCase() == oi.toLowerCase());
        }

    else
        {
        return (Ih == oi);
        }
    };
RadComboBox.prototype.oe = function()
    {
    if (!this.MarkFirstMatch)
        return;

    var i5 = this.GetText();
    var lh = this.Oh(i5);

    if (lh.length == 0)
        {
        return;
        }

    for (var i = 0; i < this.Items.length; i++)
        {
        var Oi = this.Items[i].Text;

        if (Oi.length >= lh.length)
            {
            var ii = Oi.substring(0, lh.length);

            if (this.ih(ii, lh))
                {
                var l5 = -1;

                if (this.AutoCompleteSeparator != null)
                    {
                    l5 = this.i4(i5);
                    }

                var o3 = i5.substring(0, l5 + 1) + Oi;
                this.SetText(o3);
                this.SetValue(this.Items[i].Value);
                this.o2(this.Items[i].Index);

                if (this.l8(this.OnClientSelectedIndexChanging, this.Items[i], null) == false)
                    {
                    return;
                    }

                this.Items[i].Highlight();
                this.Items[i].W();
                var Ii = l5 + lh.length + 1;
                var oj = o3.length - Ii;

                if (document.all)
                    {
                    var Oj = document.getElementById(this.InputID).createTextRange();
                    Oj.moveStart("\143haracter", Ii);
                    Oj.moveEnd("\x63haract\x65\x72", oj);
                    Oj.select();
                    }

                else
                    {
                    document.getElementById(this.InputID).setSelectionRange(Ii, Ii + oj);
                    }

                return;
                }

            else
                {
                this.SetValue("");
                this.o2(-1);

                if (this.HighlightedItem != null)
                    {
                    this.HighlightedItem.UnHighlight();
                    }
                }
            }
        }

    this.SetValue("");
    this.o2("\x2d\061");

    if (!this.AllowCustomText)
        {
        var lj = i5.substring(0, i5.length - 1);

        if (this.g != null)
            {
            this.SetText(this.g);
            return;
            }

        this.SetText(lj);
        this.oe();
        }
    };
RadComboBox.prototype.od = function(l6, keyCode)
    {
    if (!this.J && (!document.getElementById(this.ClientID + "_\x4coadingDiv")))
        {
        var comboInstance = this;

        if (this.h)
            {
            window.clearTimeout(this.h);
            this.h = 0;
            }

        this.h = window.setTimeout(function()
            {
            comboInstance.O9(l6, keyCode);
            } ,                    this.ItemRequestTimeout);
        }
    };
RadComboBox.prototype.O9 = function(l6, keyCode)
    {
    var Of = document.getElementById(this.InputID).value;

    if (Of == "")
        Of = false;

    if (this.l8(this.OnClientItemsRequesting, this, Of, l6) == false)
        {
        return;
        }

    if (!this.J)
        {
        document.getElementById(this.DropDownID).innerHTML
            = "<\x64iv id=" + this.ClientID + "_Loading\x44\x69v" + " cla\x73\x73=\047" + this.LoadingMessageCssClass
                  + "\x20\047>" + this.LoadingMessage + "</di\x76\x3e"
                  + document.getElementById(this.DropDownID).innerHTML;
        }

    var comboInstance = this;
    window.setTimeout(function()
        {
        comboInstance.Ie(l6, Of, keyCode);
        } ,           20);
    };
RadComboBox.prototype.RequestItems = function(text, l6)
    {
    this.Ie(l6, text, null);
    } ;
RadComboBox.prototype.UnHighlightAll = function()
    {
    for (var i = 0; i < this.Items.length; i++)
        {
        if (this.Items[i].Highlighted)
            {
            this.Items[i].UnHighlight();
            }
        }
    };
RadComboBox.prototype.ij = function()
    {
    document.getElementById(this.InputID).className = this.InputCssClass;
    var Ij = document.getElementById(this.ImageID);

    if (Ij)
        {
        Ij.className = this.ImageCssClass;
        }
    };
RadComboBox.prototype.ok = function()
    {
    document.getElementById(this.InputID).className = this.InputCssClassHover;
    var Ij = document.getElementById(this.ImageID);

    if (Ij)
        {
        Ij.className = this.ImageCssClassHover;
        }
    };
RadComboBox.prototype.Ok = function()
    {
    document.getElementById(this.MoreResultsBoxImageID).style.cursor = "defau\x6ct";
    document.getElementById(this.MoreResultsBoxImageID).src = this.ScrollDownImageDisabled;
    };
RadComboBox.prototype.lk = function()
    {
    document.getElementById(this.MoreResultsBoxImageID).style.cursor = "han\x64";
    document.getElementById(this.MoreResultsBoxImageID).src = this.ScrollDownImage;
    };
RadComboBox.prototype.ik = function()
    {
    this.UnHighlightAll();
    this.od(true, null);
    document.getElementById(this.InputID).focus();
    };
RadComboBox.prototype.Ik = function(eventArgs)
    {
    if (eventArgs.stopPropagation)
        {
        eventArgs.stopPropagation();
        }

    else
        {
        eventArgs.cancelBubble = true;
        }
    };
RadComboBox.prototype.Ic = function(eventArgs)
    {
    if (eventArgs.preventDefault)
        {
        eventArgs.preventDefault();
        }

    else
        {
        eventArgs.returnValue = false;
        }
    };
RadComboBox.prototype.l8 = function(ll, a, b, il)
    {
    if (!ll)
        return true;

    RadComboBoxGlobalFirstParam = a;
    RadComboBoxGlobalSecondParam = b;
    RadComboBoxGlobalThirdParam = il;
    var s = ll;
    s = s + "\x28RadCo\x6d\x62oBox\x47\x6coba\x6cFirstP\x61\x72am";
    s = s + "\x2c\x52adCombo\x42\x6fxGl\x6f\x62alS\x65\x63on\x64\x50ara\x6d";
    s = s + "\x2cRadComb\x6f\x42oxGl\x6f\x62alT\x68\x69rdP\x61\x72am";
    s = s + "\051\x3b";
    return eval(s);
    };
RadComboBox.prototype.HandleEvent = function(eventName, eventArgs)
    {
    var lb;
    var srcElement = (document.all) ? eventArgs.srcElement : eventArgs.target;
    var item = this.Oa(srcElement);

    if (item != null)
        {
        lb = this.ob(item);
        }

    if (!this.Enabled)
        {
        return;
        }

    switch (eventName)
        {
        case "show\x64\x72opdow\x6e":
            this.Ik(eventArgs);

            this.ShowDropDown();
            break;

        case "\x68idedro\x70\x64own":
            this.Ik(eventArgs);

            this.HideDropDown();
            break;

        case "t\x6f\x67gledrop\x64\x6fwn":
            this.Ik(eventArgs);

            this.ToggleDropDown();
            break;

        case "\x6douseove\x72":
            if (lb != null)
                this.Ob(lb);

            break;

        case "mouseou\x74":
            if (lb != null)
                this.ib(lb);

            break;

        case "\x6beypre\x73\x73":
            this.ic(this, eventArgs);

            break;

        case "\153e\x79\x64own":
            this.Oe(eventArgs);

            break;

        case "\x63lick":
            this.HandleClick(eventArgs);

            break;

        case "inputcl\x69\x63k":
            this.Ik(eventArgs);

            document.getElementById(this.InputID).select();
            this.ShowDropDown();
            break;

        case "i\x6e\x70utimage\x6f\x75t":
            this.ij();

            break;

        case "inputima\x67\x65hove\x72":
            this.ok();

            break;

        case "moreresu\x6c\x74sima\x67\x65clic\x6b":
            this.Ik(eventArgs);

            this.ik();
            break;

        case "mor\x65\x72esults\x69\x6dageh\x6f\166er":
            this.lk();

            break;

        case "\x6d\x6freresul\x74\x73imag\x65\x6fut":
            this.Ok();

            break;
        }
    };
RadComboBox.prototype.Enable = function()
    {
    document.getElementById(this.InputID).disabled = false;
    this.Enabled = true;
    };
RadComboBox.prototype.Disable = function()
    {
    document.getElementById(this.InputID).disabled = "disabl\x65\x64";
    this.Enabled = false;
    this.l.value = this.GetText();
    };
RadComboBox.prototype.O0 = function(Il)
    {
    if (window.opera)
        return;

    if (document.compatMode && document.compatMode == "\x43SS1Compat")
        {
        var computedStyle = null;

        if (Il.currentStyle)
            {
            computedStyle = Il.currentStyle;
            }

        else if (document.defaultView && document.defaultView.getComputedStyle)
            {
            computedStyle = document.defaultView.getComputedStyle(Il, null);
            }

        else
            {
            return;
            }

        var height = parseInt(computedStyle.height);
        var width = parseInt(computedStyle.width);
        var paddingTop = parseInt(computedStyle.paddingTop);
        var paddingBottom = parseInt(computedStyle.paddingBottom);
        var paddingLeft = parseInt(computedStyle.paddingLeft);
        var paddingRight = parseInt(computedStyle.paddingRight);
        var borderTop = parseInt(computedStyle.borderTopWidth);

        if (isNaN(borderTop))
            {
            borderTop = 0;
            }

        var borderBottom = parseInt(computedStyle.borderBottomWidth);

        if (isNaN(borderBottom))
            {
            borderBottom = 0;
            }

        var borderLeft = parseInt(computedStyle.borderLeftWidth);

        if (isNaN(borderLeft))
            {
            borderLeft = 0;
            }

        var borderRight = parseInt(computedStyle.borderRightWidth);

        if (isNaN(borderRight))
            {
            borderRight = 0;
            }

        if (!isNaN(height))
            {
            Il.style.height = height - paddingTop - paddingBottom - borderTop - borderBottom + "\160\x78";
            }

        if (!isNaN(width))
            {
            Il.style.width = width - paddingLeft - paddingRight - borderLeft - borderRight + "\x70\x78";
            }
        }
    };
function rcbDispatcher(R, eventName, eventArgs)
    {
    var comboInstance = null;

    try
        {
        comboInstance = window[R];
        }
    catch (e)
        {
        }

    if (typeof (comboInstance) == "und\x65\x66ined" || comboInstance == null)
        {
        return;
        }

    if (typeof (comboInstance.HandleEvent) != "undefined")
        {
        comboInstance.HandleEvent(eventName, eventArgs);
        }
    }
;
function rcbAppendStyleSheet(o, I)
    {
    var om = (navigator.appName == "\x4dicrosoft \x49\x6ete\x72\x6eet\x20\105x\x70\x6core\x72")
            && ((navigator.userAgent.toLowerCase().indexOf(
                     "\x6dac") != -1) || (navigator.appVersion.toLowerCase().indexOf("\x6dac") != -1));
    var O7 = (navigator.userAgent.toLowerCase().indexOf("\x73afari") != -1);

    if (om || O7)
        {
        document.write(
            "<" + "\x6c\x69nk"
                + "\x20rel=\x27\x73tyl\x65\x73hee\x74\047\x20\164y\x70\x65=\047\x74\x65xt/cs\x73\047 \x68ref=\047" + I
                + "\047\x3e");
        }

    else
        {
        var A = document.createElement("LI\x4e\x4b");
        A.rel = "\x73tylesheet";
        A.type = "\x74ext/css";
        A.href = I;
        document.getElementById(o + "StyleSheet\x48\x6flder").appendChild(A);
        }
    }

;

