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.CustomAttributes=new Array(); } ; RadComboItem.prototype.O= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<=this.Index; i++){totalHeight+=document.getElementById(this.ComboBox.Items[i].ClientID).offsetHeight; }document.getElementById(this.ComboBox.ClientID+"\x5f\x44\x72\x6f\x70\x44\x6f\x77\x6e").scrollTop=totalHeight-document.getElementById(this.ComboBox.ClientID+"\x5f\x44\x72\x6f\x70\x44\x6f\x77\x6e").offsetHeight; }} ; RadComboItem.prototype.o= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<this.Index; i++){totalHeight+=document.getElementById(this.ComboBox.Items[i].ClientID).offsetHeight; }var scrollTop=document.getElementById(this.ComboBox.ClientID+"\x5f\x44\x72\x6f\x70\x44\x6f\x77\x6e").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"\x5f\x44\x72\x6f\x70\x44\x6f\x77\x6e").scrollTop=totalHeight; }}} ; RadComboItem.prototype.Highlight= function (){if (!this.Highlighted&&this.Enabled){ this.ComboBox.UnHighlightAll(); if (!this.ComboBox.IsTemplated||this.ComboBox.HighlightTemplatedItems){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.I(this.Text); this.ComboBox.SetValue(this.Value); this.ComboBox.HideDropDown(); if (this.ComboBox.AutoPostBack){if (this.ComboBox.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions) != "\x66\x75\x6e\x63\x74\x69\x6f\x6e"&&!(typeof(Page_ClientValidate) != "\x66\x75\x6e\x63\x74\x69\x6f\x6e"||Page_ClientValidate())){return; }}eval(this.ComboBox.PostBackReference); }} ; function RadComboBox(A,U,Z){if (window.tlrkComboBoxes == null){window.tlrkComboBoxes=new Array(); }tlrkComboBoxes[U]=this ; this.Items=new Array(); this.z= false; this.ID=A; this.ClientID=U; this.UniqueID=Z; this.DropDownID=U+"\x5f\x44\x72\x6f\x70\x44\x6f\x77\x6e"; this.InputID=U+"\x5f\x49\x6e\x70\x75\x74"; this.ImageID=U+"\x5f\x49\x6d\x61\x67\x65"; this.DropDownPlaceholderID=U+"\x5f\x44\x72\x6f\x70\x44\x6f\x77\x6e\x50\x6c\x61\x63\x65\x68\x6f\x6c\x64\x65\x72"; this.MoreResultsBoxID=U+"\x5f\x4d\x6f\x72\x65\x52\x65\x73\x75\x6c\x74\x73\x42\x6f\x78"; this.MoreResultsBoxImageID=U+"\x5f\x4d\x6f\x72\x65\x52\x65\x73\x75\x6c\x74\x73\x42\x6f\x78\x49\x6d\x61\x67\x65"; this.MoreResultsBoxMessageID=U+"\x5f\x4d\x6f\x72\x65\x52\x65\x73\x75\x6c\x74\x73\x42\x6f\x78\x4d\x65\x73\x73\x61\x67\x65"; this.W=U+"\x5f\x48\x65\x61\x64\x65\x72"; this.Enabled= true; this.DropDownVisible= false; this.LoadOnDemandUrl=null; this.PollTimeOut=0; this.HighlightedItem=null; this.SelectedItem=null; this.ItemRequestTimeout=0454; this.EnableLoadOnDemand= false; this.Overlay= false; this.AutoPostBack= false; this.ShowMoreResultsBox= false; this.OpenDropDownOnLoad= false; this.w= false; this.MarkFirstMatch= false; this.IsCaseSensitive= false; this.PostBackReference=null; this.LoadingMessage="\x4c\x6f\x61\x64\x69\x6e\x67\x2e\x2e\x2e"; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.V=null; this.RadComboBoxImagePosition="\x52\x69\x67\x68\x74"; this.ItemCssClass=null; this.ItemCssClassHover=null; this.ItemCssClassDisabled=null; this.ImageCssClass=null; this.ImageCssClassHover=null; this.InputCssClass=null; this.InputCssClassHover=null; this.LoadingMessageCssClass="\x43\x6f\x6d\x62\x6f\x42\x6f\x78\x4c\x6f\x61\x64\x69\x6e\x67\x4d\x65\x73\x73\x61\x67\x65"; this.AutoCompleteSeparator=null; this.OnClientSelectedIndexChanging=null; this.OnClientDropDownOpening=null; this.OnClientDropDownClosing=null; this.OnClientItemsRequesting=null; this.OnClientItemsRequested=null; this.OnClientKeyPressing=null; this.IsTemplated= false; this.Skin=null; this.HideTimeoutID=0; this.v=0; this.T= false; this.t=null; this.AllowCustomText= true; this.ExpandEffectString=null; this.HighlightTemplatedItems= false; this.CausesValidation= false; this.ClientDataString=null; var comboInstance=this ; if (document.attachEvent){document.attachEvent("\x6f\x6e\x63\x6c\x69\x63\x6b", function (){comboInstance.HideOnClick(); } ); }else {document.addEventListener("\x63\x6c\x69\x63\x6b", function (){comboInstance.HideOnClick(); } , false); }if (window.addEventListener){window.addEventListener("\x6c\x6f\x61\x64", function (){comboInstance.S(document.getElementById(comboInstance.InputID)); } , false); }else { this.S(document.getElementById(this.InputID)); }document.getElementById(this.InputID).autocomplete="\x6f\x66\x66"; document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; } ; RadComboBox.prototype.R= function (){var r=document.getElementById(this.ClientID); while (r.tagName != "\x46\x4f\x52\x4d"){r=r.parentNode; }return r; } ; RadComboBox.prototype.Q= function (){if (!document.readyState||document.readyState == "\x63\x6f\x6d\x70\x6c\x65\x74\x65"){var P=this.R(); this.N(P); var n=document.getElementById(this.DropDownPlaceholderID); n.parentNode.removeChild(n); n.style.marginLeft="\x30"; P.appendChild(n); this.T= true; }} ; RadComboBox.prototype.N= function (P){for (var i=0; i<P.childNodes.length; i++){if (P.childNodes[i].id == this.DropDownPlaceholderID){P.removeChild(P.childNodes[i]); break; }}} ; 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.SetText= function (M){document.getElementById(this.InputID).value=M; } ; RadComboBox.prototype.GetText= function (){return document.getElementById(this.InputID).value; } ; RadComboBox.prototype.m= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var L=this.AutoCompleteSeparator.charAt(i); var l=text.lastIndexOf(L); if (l>lastIndex){lastIndex=l; }}return lastIndex; } ; RadComboBox.prototype.I= function (M){var K=-1; var k=document.getElementById(this.InputID).value; if (this.AutoCompleteSeparator != null){K=this.m(k); }var J=k.substring(0,K+1)+M; document.getElementById(this.InputID).value=J; } ; RadComboBox.prototype.ClearSelection= function (){ this.SetText(""); this.SelectedItem=null; this.H=null; } ; RadComboBox.prototype.DoLoadItems= function (h){for (var i=0; i<h.length; i++){var item=new RadComboItem(); item.CustomAttributes=h[i]; item.Index=this.Items.length; item.ClientID=h[i].ClientID; if (h[i].Text)item.Text=h[i].Text; if (h[i].Value)item.Value=h[i].Value; if (h[i].Selected){ this.SelectedItem=item; item.Highlighted=1; item.Selected=1; }if (h[i].Enabled == 0){item.Enabled=0; }item.ComboBox=this ; this.Items[this.Items.length]=item; }if (this.SelectedItem != null){ this.SelectedItem.Highlight(); } this.z= true; } ; RadComboBox.prototype.LoadItems= function (){var h=eval(this.ClientID+"\x5f\x64\x61\x74\x61"); this.DoLoadItems(h); var comboInstance=this ; if (this.OpenDropDownOnLoad){if (document.all){window.attachEvent("\x6f\x6e\x6c\x6f\x61\x64", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("\x6c\x6f\x61\x64", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.LoadItemsOnDemand= function (G){if (!G){ this.Items.length=0; } this.HighlightedItem=null; this.SelectedItem=null; this.z= false; this.DoLoadItems(RadComboItemsArrayOnDemand); 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.t=this.GetText(); }} ; RadComboBox.prototype.SetValue= function (value){document.getElementById(this.UniqueID+"\x5f\x76\x61\x6c\x75\x65").value=value; } ; RadComboBox.prototype.GetValue= function (){return document.getElementById(this.UniqueID+"\x5f\x76\x61\x6c\x75\x65").value; } ; RadComboBox.prototype.g= function (F){var f=0; if (F.offsetParent){while (F.offsetParent){f+=F.offsetLeft; F=F.offsetParent; }}else if (F.x)f+=F.x; return f; } ; RadComboBox.prototype.D= function (F){var d=0; if (F.offsetParent){while (F.offsetParent){d+=F.offsetTop; F=F.offsetParent; }}else if (F.y)d+=F.y; return d; } ; RadComboBox.prototype.C= function (){if (window.opera){return; }var B=document.getElementById(this.DropDownPlaceholderID); var o0=document.getElementById(this.MoreResultsBoxID); var O0=document.getElementById(this.W); if (this.V == null){ this.V=document.createElement("\x49\x46\x52\x41\x4d\x45"); this.V.src="\x6a\x61\x76\x61\x73\x63\x72\x69\x70\x74\x3a\x66\x61\x6c\x73\x65\x3b"; this.V.id=this.ClientID+"\x5f\x4f\x76\x65\x72\x6c\x61\x79"; this.V.frameBorder=0; this.V.style.position="\x61\x62\x73\x6f\x6c\x75\x74\x65"; this.V.style.visibility="\x68\x69\x64\x64\x65\x6e"; this.V.style.zIndex=B.style.zIndex-1; this.V.style.left=B.style.left; this.V.style.top=B.style.top; var l0=B.offsetWidth; var i0=B.offsetHeight; if (o0){i0=i0+o0.offsetHeight; }if (O0){i0=i0+O0.offsetHeight; } this.V.style.width=l0+"\x70\x78"; this.V.style.height=i0+"\x70\x78"; this.V.style.filter="\x70\x72\x6f\x67\x69\x64\x3a\x44\x58\x49\x6d\x61\x67\x65\x54\x72\x61\x6e\x73\x66\x6f\x72\x6d\x2e\x4d\x69\x63\x72\x6f\x73\x6f\x66\x74\x2e\x41\x6c\x70\x68\x61\x28\x73\x74\x79\x6c\x65\x3d\x30\x2c\x6f\x70\x61\x63\x69\x74\x79\x3d\x30\x29"; this.V.I0= false; B.parentNode.insertBefore(this.V,B); } this.V.style.visibility="\x76\x69\x73\x69\x62\x6c\x65"; } ; RadComboBox.prototype.o1= function (){if (this.V != null){ this.V.style.visibility="\x68\x69\x64\x64\x65\x6e"; }} ; RadComboBox.prototype.ShowDropDown= function (){if (this.O1(this.OnClientDropDownOpening,this ) == false){return; }for (var l1 in tlrkComboBoxes){if ((typeof(tlrkComboBoxes[l1]) != "\x66\x75\x6e\x63\x74\x69\x6f\x6e")&&(tlrkComboBoxes[l1].ClientID != this.ClientID)){tlrkComboBoxes[l1].HideDropDown(); }}if (!this.T){ this.Q(); }var x; var y; var i1; (this.RadComboBoxImagePosition == "\x52\x69\x67\x68\x74")?i1=document.getElementById(this.InputID):i1=document.getElementById(this.ImageID); var x=this.g(i1); var y=this.D(i1)+i1.offsetHeight; var I1=document.getElementById(this.InputID); var o2=document.getElementById(this.ImageID); var O2=I1.offsetWidth; if (o2){O2+=o2.offsetWidth; }var offsetX=0; var offsetY=0; if (window.opera){offsetX=this.l2(I1); offsetY=this.i2(I1); }else {offsetX=this.I2(I1); offsetY=this.o3(I1); }var n=document.getElementById(this.DropDownPlaceholderID); if (this.ExpandEffectString != null&&document.all){n.style.filter=this.ExpandEffectString; n.filters[0].Apply(); n.filters[0].Play(); }if (document.compatMode&&document.compatMode == "\x43\x53\x53\x31\x43\x6f\x6d\x70\x61\x74"&&document.body.currentStyle){x+=parseInt(document.body.currentStyle.marginLeft); y+=parseInt(document.body.currentStyle.marginTop); }n.style.position="\x61\x62\x73\x6f\x6c\x75\x74\x65"; n.style.left=x-offsetX+"\x70\x78"; n.style.top=y-offsetY+"\x70\x78"; n.style.width=O2-2+"\x70\x78"; n.style.display="\x62\x6c\x6f\x63\x6b"; if (this.Overlay){ this.C(); }if (this.HighlightedItem != null){ this.HighlightedItem.O(); }if (this.SelectedItem != null){ this.SelectedItem.O(); } this.ClearHideTimeout(); this.DropDownVisible= true; try {document.getElementById(this.InputID).focus(); }catch (e){} ; if ((this.EnableLoadOnDemand)&&(this.Items.length == 0)){ this.O3( true ,null); }if (this.SelectedItem != null){ this.SelectedItem.Highlighted= false; this.SelectedItem.Highlight(); this.SelectedItem.o(); }} ; RadComboBox.prototype.FindItemByText= function (M){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Text == M){return this.Items[i]; }}return null; } ; RadComboBox.prototype.FindItemByValue= function (l3){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value == l3){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.O1(this.OnClientDropDownClosing,this ) == false)return; document.getElementById(this.DropDownPlaceholderID).style.display="\x6e\x6f\x6e\x65"; if (this.Overlay){ this.o1(); } this.DropDownVisible= false; }} ; RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.i3= function (F){if (F){while (F != null){if (F.id&&this.I3(F.id)){return F; }F=F.parentNode; }}return null; } ; RadComboBox.prototype.I3= function (o4){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID == o4){return true; }}return false; } ; RadComboBox.prototype.O4= 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.l4= function (i4){i4.Highlight(); } ; RadComboBox.prototype.I4= function (i4){i4.UnHighlight(); } ; RadComboBox.prototype.o5= function (eventArgs){var O5=this.HighlightedItem; if (O5 != null){if (this.O1(this.OnClientSelectedIndexChanging,O5,eventArgs) == false){return; }O5.Select(); }else { this.HideDropDown(); }} ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.o5(eventArgs); } ; RadComboBox.prototype.l5= function (index){var i=index; var i5= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){i5= true; break; }}if (i5)return i; return index; } ; RadComboBox.prototype.I5= function (index){var i=index; var i5= false; while (i>0){i=i-1; if (this.Items[i].Enabled){i5= true; break; }}if (i5)return i; return index; } ; RadComboBox.prototype.o6= function (comboInstance,eventArgs){ this.O1(this.OnClientKeyPressing,this,eventArgs); if (eventArgs.keyCode == 050){if (eventArgs.altKey&&(!this.DropDownVisible)){ this.ShowDropDown(); return; }var index=-1; if (this.HighlightedItem == null&&this.Items.length>0){index=0; }if (this.HighlightedItem != null){index=this.l5(this.HighlightedItem.Index); }else {index=this.l5(0); }if (index>=0&&this.Items.length>0){if (this.O1(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs) == false){return; } this.Items[index].Highlight(); this.Items[index].O(); this.I(this.Items[index].Text); this.O6(eventArgs); }return; }if (eventArgs.keyCode == 033&&this.DropDownVisible){ this.HideDropDown(); return; }if (eventArgs.keyCode == 046){if (eventArgs.altKey&&this.DropDownVisible){ this.HideDropDown(); return; }var index=-1; if (this.HighlightedItem != null){index=this.I5(this.HighlightedItem.Index); }if (index>=0){if (this.O1(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs) == false){return; } this.Items[index].o(); this.Items[index].Highlight(); this.I(this.Items[index].Text); this.O6(eventArgs); }return; }if ((eventArgs.keyCode == 015||eventArgs.keyCode == 011)&&this.DropDownVisible){if (eventArgs.keyCode == 015){ this.O6(eventArgs); } this.o5(); return; }if (eventArgs.keyCode == 011&&!this.DropDownVisible){return; }if (eventArgs.keyCode == 043||eventArgs.keyCode == 044||eventArgs.keyCode == 045||eventArgs.keyCode == 047){return; }if (this.EnableLoadOnDemand&&(!eventArgs.altKey)&&(!eventArgs.ctrlKey)&&(!(eventArgs.keyCode == 020))){if (!this.DropDownVisible){ this.ShowDropDown(); } this.l6( false ,eventArgs.keyCode); return; }var i6=eventArgs.keyCode; if ((i6<040)||(i6>=041&&i6<=056)||(i6>=0160&&i6<=0173)){return; }var I6=this ; window.setTimeout( function (){I6.o7(); } ,024); } ; RadComboBox.prototype.O7= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode == 015||(eventArgs.keyCode == 040&&(!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.l7= function (s){if (encodeURIComponent){return encodeURIComponent(this.i7(s)); }if (escape){return escape(this.i7(s)); }} ; RadComboBox.prototype.i7= function (text){if (typeof(text) != "\x6e\x75\x6d\x62\x65\x72"){return text.replace(/\x27/g,"\x26\x73\x71\x75\x6f\x74\x65"); }} ; RadComboBox.prototype.I7= function (G,text,i6){if (!this.w){ this.w= true; var o8=(text)?text:document.getElementById(this.InputID).value; var O8=this.GetValue(); o8=o8.replace(/\x27/g,"\x26\x73\x71\x75\x6f\x74\x65"); var url=this.LoadOnDemandUrl+"\x26\x74\x65\x78\x74\x3d"+this.l7(o8); url=url+"\x26\x63\x6f\x6d\x62\x6f\x56\x61\x6c\x75\x65\x3d"+this.l7(O8); url=(G)?url+"\x26\x69\x74\x65\x6d\x43\x6f\x75\x6e\x74\x3d"+this.Items.length:url; url=url+"\x26\x73\x6b\x69\x6e\x3d"+this.l7(this.Skin); if (this.ClientDataString != null){url+="\x26\x63\x6c\x69\x65\x6e\x74\x44\x61\x74\x61\x53\x74\x72\x69\x6e\x67\x3d"+this.l7(this.ClientDataString); }var xmlRequest=null; if (typeof(XMLHttpRequest) != "\x75\x6e\x64\x65\x66\x69\x6e\x65\x64"){xmlRequest=new XMLHttpRequest(); }if (typeof(ActiveXObject) != "\x75\x6e\x64\x65\x66\x69\x6e\x65\x64"){xmlRequest=new ActiveXObject("\x4d\x69\x63\x72\x6f\x73\x6f\x66\x74\x2e\x58\x4d\x4c\x48\x54\x54\x50"); }xmlRequest.open("\x47\x45\x54",url, true); var l8=this ; xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState != 4)return; var html=xmlRequest.responseText; if (html.indexOf("\x21") == 0){alert("\x72\x2e\x61\x2e\x64\x2e\x63\x6f\x6d\x62\x6f\x62\x6f\x78\x3a\x20\x53\x65\x72\x76\x65\x72\x20\x65\x72\x72\x6f\x72\x20\x69\x6e\x20\x74\x68\x65\x20\x49\x74\x65\x6d\x73\x52\x65\x71\x75\x65\x73\x74\x65\x64\x20\x65\x76\x65\x6e\x74\x20\x68\x61\x6e\x64\x6c\x65\x72\x2c\x20\x70\x72\x65\x73\x73\x20\x6f\x6b\x20\x74\x6f\x20\x76\x69\x65\x77\x20\x74\x68\x65\x20\x72\x65\x73\x75\x6c\x74\x2e"); document.body.innerHTML=html; return; }var index=html.indexOf("\x3a"); var i8=html.indexOf("\x2c"); var I8=parseInt(html.substring(0,index)); var o9=parseInt(html.substring(index+1,i8)); var O9=html.substring(i8+1,o9+i8+1); var l9=html.substring(o9+i8+1,o9+i8+1+I8); var i9=html.substring(o9+i8+1+I8); if (l8.ShowMoreResultsBox){document.getElementById(l8.MoreResultsBoxMessageID).innerHTML=O9; }eval(l9); var I9=l8.Items.length; l8.LoadItemsOnDemand(G); if (G){document.getElementById(l8.DropDownID).removeChild(document.getElementById(l8.ClientID+"\x5f\x4c\x6f\x61\x64\x69\x6e\x67\x44\x69\x76")); document.getElementById(l8.DropDownID).innerHTML+=i9; if (l8.Items[I9+1] != null){l8.Items[I9+1].O(); }}else {document.getElementById(l8.DropDownID).innerHTML=i9; }l8.O1(l8.OnClientItemsRequested,l8,o8,G); l8.w= false; var oa=l8.FindItemByText(l8.GetText()); if (oa != null){oa.Highlight(); oa.O(); }if (!i6)return; if (i6<040||(i6>=041&&i6<=056)||(i6>=0160&&i6<=0173)){return; }l8.o7(); } ; xmlRequest.send(""); }} ; RadComboBox.prototype.Oa= function (k){var K=-1; if (this.AutoCompleteSeparator != null){K=this.m(k); }var la=k.substring(K+1,k.length); return la; } ; RadComboBox.prototype.ia= function (Ia,ob){if (!this.IsCaseSensitive){return (Ia.toLowerCase() == ob.toLowerCase()); }else {return (Ia == ob); }} ; RadComboBox.prototype.o7= function (){if (!this.MarkFirstMatch)return; var k=this.GetText(); var la=this.Oa(k); if (la.length == 0){return; }for (var i=0; i<this.Items.length; i++){var Ob=this.Items[i].Text; if (Ob.length>=la.length){var lb=Ob.substring(0,la.length); if (this.ia(lb,la)){var K=-1; if (this.AutoCompleteSeparator != null){K=this.m(k); }var J=k.substring(0,K+1)+Ob; this.SetText(J); this.Items[i].Highlight(); this.Items[i].O(); var ib=K+la.length+1; var Ib=J.length-ib; if (document.all){var oc=document.getElementById(this.InputID).createTextRange(); oc.moveStart("\x63\x68\x61\x72\x61\x63\x74\x65\x72",ib); oc.moveEnd("\x63\x68\x61\x72\x61\x63\x74\x65\x72",Ib); oc.select(); }else {document.getElementById(this.InputID).setSelectionRange(ib,ib+Ib); }return; }}}if (!this.AllowCustomText){var Oc=k.substring(0,k.length-1); if (this.t != null){ this.SetText(this.t); return; } this.SetText(Oc); this.o7(); }} ; RadComboBox.prototype.l6= function (G,keyCode){if (!this.w&&(!document.getElementById(this.ClientID+"\x5f\x4c\x6f\x61\x64\x69\x6e\x67\x44\x69\x76"))){var comboInstance=this ; if (this.v){window.clearTimeout(this.v); this.v=0; } this.v=window.setTimeout( function (){comboInstance.O3(G,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.O3= function (G,keyCode){var o8=document.getElementById(this.InputID).value; if (o8 == "")o8= false; if (this.O1(this.OnClientItemsRequesting,this,o8,G) == false){return; }document.getElementById(this.DropDownID).innerHTML="\x3c\x64\x69\x76\x20\x69\x64\x3d"+this.ClientID+"\x5f\x4c\x6f\x61\x64\x69\x6e\x67\x44\x69\x76"+"\x20\x63\x6c\x61\x73\x73\x3d\x27"+this.LoadingMessageCssClass+"\x20\x27\x3e"+this.LoadingMessage+"\x3c\x2f\x64\x69\x76\x3e"+document.getElementById(this.DropDownID).innerHTML; var comboInstance=this ; window.setTimeout( function (){comboInstance.I7(G,o8,keyCode);} ,024); } ; RadComboBox.prototype.RequestItems= function (text,G){ this.I7(G,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.lc= function (){document.getElementById(this.InputID).className=this.InputCssClass; var ic=document.getElementById(this.ImageID); if (ic){ic.className=this.ImageCssClass; }} ; RadComboBox.prototype.Ic= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var ic=document.getElementById(this.ImageID); if (ic){ic.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.od= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x64\x65\x66\x61\x75\x6c\x74"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; } ; RadComboBox.prototype.Od= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x68\x61\x6e\x64"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.ld= function (){ this.UnHighlightAll(); this.l6( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.oe= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.O6= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.O1= function (Oe,a,b,le){if (!Oe)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=le; var s=Oe; s=s+"\x28\x52\x61\x64\x43\x6f\x6d\x62\x6f\x42\x6f\x78\x47\x6c\x6f\x62\x61\x6c\x46\x69\x72\x73\x74\x50\x61\x72\x61\x6d"; s=s+"\x2c\x52\x61\x64\x43\x6f\x6d\x62\x6f\x42\x6f\x78\x47\x6c\x6f\x62\x61\x6c\x53\x65\x63\x6f\x6e\x64\x50\x61\x72\x61\x6d"; s=s+"\x2c\x52\x61\x64\x43\x6f\x6d\x62\x6f\x42\x6f\x78\x47\x6c\x6f\x62\x61\x6c\x54\x68\x69\x72\x64\x50\x61\x72\x61\x6d"; s=s+"\x29\x3b"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var i4; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.i3(srcElement); if (item != null){i4=this.O4(item); }if (!this.Enabled){return; }switch (eventName){case "\x73\x68\x6f\x77\x64\x72\x6f\x70\x64\x6f\x77\x6e": this.oe(eventArgs); this.ShowDropDown(); break; case "\x68\x69\x64\x65\x64\x72\x6f\x70\x64\x6f\x77\x6e": this.oe(eventArgs); this.HideDropDown(); break; case "\x74\x6f\x67\x67\x6c\x65\x64\x72\x6f\x70\x64\x6f\x77\x6e": this.oe(eventArgs); this.ToggleDropDown(); break; case "\x6d\x6f\x75\x73\x65\x6f\x76\x65\x72":if (i4 != null)this.l4(i4); break; case "\x6d\x6f\x75\x73\x65\x6f\x75\x74":if (i4 != null)this.I4(i4); break; case "\x6b\x65\x79\x70\x72\x65\x73\x73": this.o6(this,eventArgs); break; case "\x6b\x65\x79\x64\x6f\x77\x6e": this.O7(eventArgs); break; case "\x63\x6c\x69\x63\x6b": this.HandleClick(eventArgs); break; case "\x69\x6e\x70\x75\x74\x63\x6c\x69\x63\x6b": this.oe(eventArgs); this.ShowDropDown(); break; case "\x69\x6e\x70\x75\x74\x69\x6d\x61\x67\x65\x6f\x75\x74": this.lc(); break; case "\x69\x6e\x70\x75\x74\x69\x6d\x61\x67\x65\x68\x6f\x76\x65\x72": this.Ic(); break; case "\x6d\x6f\x72\x65\x72\x65\x73\x75\x6c\x74\x73\x69\x6d\x61\x67\x65\x63\x6c\x69\x63\x6b": this.oe(eventArgs); this.ld(); break; case "\x6d\x6f\x72\x65\x72\x65\x73\x75\x6c\x74\x73\x69\x6d\x61\x67\x65\x68\x6f\x76\x65\x72": this.Od(); break; case "\x6d\x6f\x72\x65\x72\x65\x73\x75\x6c\x74\x73\x69\x6d\x61\x67\x65\x6f\x75\x74": this.od(); break; }} ; RadComboBox.prototype.I2= function (node){var x=0; var r=node; while (r.parentNode&&r.parentNode.tagName != "\x42\x4f\x44\x59"){if (typeof(r.parentNode.scrollLeft) == "\x6e\x75\x6d\x62\x65\x72"){x+=r.parentNode.scrollLeft; }r=r.parentNode; }return x; } ; RadComboBox.prototype.o3= function (node){var y=0; var r=node; while (r.parentNode&&r.parentNode.tagName != "\x42\x4f\x44\x59"){if (typeof(r.parentNode.scrollTop) == "\x6e\x75\x6d\x62\x65\x72"){y+=r.parentNode.scrollTop; }r=r.parentNode; }return y; } ; RadComboBox.prototype.l2= function (node){var x=0; var r=node; while (r.offsetParent&&r.offsetParent.tagName != "\x42\x4f\x44\x59"){if (typeof(r.offsetParent.scrollLeft) == "\x6e\x75\x6d\x62\x65\x72"){x+=r.offsetParent.scrollLeft; }r=r.offsetParent; }return x; } ; RadComboBox.prototype.i2= function (node){var y=0; var r=node; while (r.offsetParent&&r.offsetParent.tagName != "\x42\x4f\x44\x59"){if (typeof(r.offsetParent.scrollTop) == "\x6e\x75\x6d\x62\x65\x72"){y+=r.offsetParent.scrollTop; }r=r.offsetParent; }return y; } ; RadComboBox.prototype.Enable= function (){document.getElementById(this.ClientID).disabled= false; this.Enabled= true; } ; RadComboBox.prototype.Disable= function (){document.getElementById(this.ClientID).disabled= true; this.Enabled= false; document.getElementById(this.UniqueID+"\x5f\x74\x65\x78\x74").value=this.GetText(); } ; RadComboBox.prototype.S= function (ie){if (window.opera)return; if (document.compatMode&&document.compatMode == "\x43\x53\x53\x31\x43\x6f\x6d\x70\x61\x74"){var computedStyle=null; if (ie.currentStyle){computedStyle=ie.currentStyle; }else if (document.defaultView&&document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(ie,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)){ie.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"\x70\x78"; }if (!isNaN(width)){ie.style.width=width-paddingLeft-paddingRight-borderLeft-borderRight+"\x70\x78"; }}} ; function rcbDispatcher(U,eventName,eventArgs){var comboInstance=null; comboInstance=eval(U); if (comboInstance == null)return; comboInstance.HandleEvent(eventName,eventArgs); } ; function rcbAppendStyleSheet(Ie,of){var Of=(navigator.appName == "\x4d\x69\x63\x72\x6f\x73\x6f\x66\x74\x20\x49\x6e\x74\x65\x72\x6e\x65\x74\x20\x45\x78\x70\x6c\x6f\x72\x65\x72")&&((navigator.userAgent.toLowerCase().indexOf("\x6d\x61\x63") != -1)||(navigator.appVersion.toLowerCase().indexOf("\x6d\x61\x63") != -1)); var If=(navigator.userAgent.toLowerCase().indexOf("\x73\x61\x66\x61\x72\x69") != -1); if (Of||If){document.write("\x3c"+"\x6c\x69\x6e\x6b"+"\x20\x72\x65\x6c\x3d\x27\x73\x74\x79\x6c\x65\x73\x68\x65\x65\x74\x27\x20\x74\x79\x70\x65\x3d\x27\x74\x65\x78\x74\x2f\x63\x73\x73\x27\x20\x68\x72\x65\x66\x3d\x27"+of+"\x27\x3e"); }else {var og=document.createElement("\x4c\x49\x4e\x4b"); og.rel="\x73\x74\x79\x6c\x65\x73\x68\x65\x65\x74"; og.type="\x74\x65\x78\x74\x2f\x63\x73\x73"; og.href=of; document.getElementById(Ie+"\x53\x74\x79\x6c\x65\x53\x68\x65\x65\x74\x48\x6f\x6c\x64\x65\x72").appendChild(og); }} ;
 
