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(A) != "\x66\x75\x6e\x63\x74\x69\x6f\x6e"||A())){return; }}eval(this.ComboBox.PostBackReference); }} ; function RadComboBox(U,Z,z){if (window.tlrkComboBoxes == null){window.tlrkComboBoxes=new Array(); }tlrkComboBoxes[Z]=this ; this.Items=new Array(); this.W= false; this.ID=U; this.ClientID=Z; this.UniqueID=z; this.DropDownID=Z+"\x5f\x44\x72\x6f\x70\x44\x6f\x77\x6e"; this.InputID=Z+"\x5f\x49\x6e\x70\x75\x74"; this.ImageID=Z+"\x5f\x49\x6d\x61\x67\x65"; this.DropDownPlaceholderID=Z+"\x5f\x44\x72\x6f\x70\x44\x6f\x77\x6e\x50\x6c\x61\x63\x65\x68\x6f\x6c\x64\x65\x72"; this.MoreResultsBoxID=Z+"\x5f\x4d\x6f\x72\x65\x52\x65\x73\x75\x6c\x74\x73\x42\x6f\x78"; this.MoreResultsBoxImageID=Z+"\x5f\x4d\x6f\x72\x65\x52\x65\x73\x75\x6c\x74\x73\x42\x6f\x78\x49\x6d\x61\x67\x65"; this.MoreResultsBoxMessageID=Z+"\x5f\x4d\x6f\x72\x65\x52\x65\x73\x75\x6c\x74\x73\x42\x6f\x78\x4d\x65\x73\x73\x61\x67\x65"; this.w=Z+"\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.V= 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.T=0; this.t= false; this.S=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.R(document.getElementById(comboInstance.InputID)); } , false); }else { this.R(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 Q=document.getElementById(this.ClientID); while (Q.tagName != "\x46\x4f\x52\x4d"){Q=Q.parentNode; }return Q; } ; RadComboBox.prototype.P= function (){if (!document.readyState||document.readyState == "\x63\x6f\x6d\x70\x6c\x65\x74\x65"){var N=this.r(); this.n(N); var M=document.getElementById(this.DropDownPlaceholderID); M.parentNode.removeChild(M); M.style.marginLeft="\x30"; N.appendChild(M); this.t= true; }} ; RadComboBox.prototype.n= function (N){for (var i=0; i<N.childNodes.length; i++){if (N.childNodes[i].id == this.DropDownPlaceholderID){N.removeChild(N.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.L= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var l=this.AutoCompleteSeparator.charAt(i); var K=text.lastIndexOf(l); if (K>lastIndex){lastIndex=K; }}return lastIndex; } ; RadComboBox.prototype.I= function (m){var k=-1; var J=document.getElementById(this.InputID).value; if (this.AutoCompleteSeparator != null){k=this.L(J); }var H=J.substring(0,k+1)+m; document.getElementById(this.InputID).value=H; } ; RadComboBox.prototype.ClearSelection= function (){ this.SetText(""); this.SelectedItem=null; this.h=null; } ; RadComboBox.prototype.DoLoadItems= function (G){for (var i=0; i<G.length; i++){var item=new RadComboItem(); item.CustomAttributes=G[i]; item.Index=this.Items.length; item.ClientID=G[i].ClientID; if (G[i].Text)item.Text=G[i].Text; if (G[i].Value)item.Value=G[i].Value; if (G[i].Selected){ this.SelectedItem=item; item.Highlighted=1; item.Selected=1; }if (G[i].Enabled == 0){item.Enabled=0; }item.ComboBox=this ; this.Items[this.Items.length]=item; }if (this.SelectedItem != null){ this.SelectedItem.Highlight(); } this.W= true; } ; RadComboBox.prototype.LoadItems= function (){var G=eval(this.ClientID+"\x5f\x64\x61\x74\x61"); this.DoLoadItems(G); 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.W= 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.S=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.F= function (f){var D=0; if (f.offsetParent){while (f.offsetParent){D+=f.offsetLeft; f=f.offsetParent; }}else if (f.x)D+=f.x; return D; } ; RadComboBox.prototype.d= function (f){var C=0; if (f.offsetParent){while (f.offsetParent){C+=f.offsetTop; f=f.offsetParent; }}else if (f.y)C+=f.y; return C; } ; RadComboBox.prototype.B= function (){if (window.opera){return; }var o0=document.getElementById(this.DropDownPlaceholderID); var O0=document.getElementById(this.MoreResultsBoxID); var l0=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=o0.style.zIndex-1; this.v.style.left=o0.style.left; this.v.style.top=o0.style.top; var i0=o0.offsetWidth; var I0=o0.offsetHeight; if (O0){I0=I0+O0.offsetHeight; }if (l0){I0=I0+l0.offsetHeight; } this.v.style.width=i0+"\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.o1= false; o0.parentNode.insertBefore(this.v,o0); } 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.l1(this.OnClientDropDownOpening,this ) == false){return; }for (var i1 in tlrkComboBoxes){if ((typeof(tlrkComboBoxes[i1]) != "\x66\x75\x6e\x63\x74\x69\x6f\x6e")&&(tlrkComboBoxes[i1].ClientID != this.ClientID)){tlrkComboBoxes[i1].HideDropDown(); }}if (!this.t){ this.P(); }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.F(I1); var y=this.d(I1)+I1.offsetHeight; var o2=document.getElementById(this.InputID); var O2=document.getElementById(this.ImageID); var l2=o2.offsetWidth; if (O2){l2+=O2.offsetWidth; }var offsetX=0; var offsetY=0; if (window.opera){offsetX=this.i2(o2); offsetY=this.I2(o2); }else {offsetX=this.o3(o2); offsetY=this.O3(o2); }var M=document.getElementById(this.DropDownPlaceholderID); if (this.ExpandEffectString != null&&document.all){M.style.filter=this.ExpandEffectString; M.filters[0].Apply(); M.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); }M.style.position="\x61\x62\x73\x6f\x6c\x75\x74\x65"; M.style.left=x-offsetX+"\x70\x78"; M.style.top=y-offsetY+"\x70\x78"; M.style.width=l2-2+"\x70\x78"; M.style.display="\x62\x6c\x6f\x63\x6b"; if (this.Overlay){ this.B(); }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.l3( 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 (i3){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value == i3){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.l1(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.o4(f.id)){return f; }f=f.parentNode; }}return null; } ; RadComboBox.prototype.o4= function (O4){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID == O4){return true; }}return false; } ; RadComboBox.prototype.l4= 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.i4= function (I4){I4.Highlight(); } ; RadComboBox.prototype.o5= function (I4){I4.UnHighlight(); } ; RadComboBox.prototype.O5= function (eventArgs){var l5=this.HighlightedItem; if (l5 != null){if (this.l1(this.OnClientSelectedIndexChanging,l5,eventArgs) == false){return; }l5.Select(); }else { this.HideDropDown(); }} ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.O5(eventArgs); } ; RadComboBox.prototype.i5= 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.o6= 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.l1(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.i5(this.HighlightedItem.Index); }else {index=this.i5(0); }if (index>=0&&this.Items.length>0){if (this.l1(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs) == false){return; } this.Items[index].Highlight(); this.Items[index].O(); this.I(this.Items[index].Text); this.l6(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.o6(this.HighlightedItem.Index); }if (index>=0){if (this.l1(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs) == false){return; } this.Items[index].o(); this.Items[index].Highlight(); this.I(this.Items[index].Text); this.l6(eventArgs); }return; }if ((eventArgs.keyCode == 015||eventArgs.keyCode == 011)&&this.DropDownVisible){if (eventArgs.keyCode == 015){ this.l6(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.i6( false ,eventArgs.keyCode); return; }var I6=eventArgs.keyCode; if ((I6<040)||(I6>=041&&I6<=056)||(I6>=0160&&I6<=0173)){return; }var o7=this ; window.setTimeout( function (){o7.O7(); } ,024); } ; RadComboBox.prototype.l7= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode == 015||(eventArgs.keyCode == 040&&(!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.i7= 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.o8= function (g,text,I6){if (!this.V){ this.V= true; var O8=(text)?text:document.getElementById(this.InputID).value; var l8=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.i7(O8); url=url+"\x26\x63\x6f\x6d\x62\x6f\x56\x61\x6c\x75\x65\x3d"+this.i7(l8); 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.i7(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.i7(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 i8=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 o9=parseInt(html.substring(0,index)); var O9=parseInt(html.substring(index+1,I8)); var l9=html.substring(I8+1,O9+I8+1); var i9=html.substring(O9+I8+1,O9+I8+1+o9); var I9=html.substring(O9+I8+1+o9); if (i8.ShowMoreResultsBox){document.getElementById(i8.MoreResultsBoxMessageID).innerHTML=l9; }eval(i9); var oa=i8.Items.length; i8.LoadItemsOnDemand(g); if (g){document.getElementById(i8.DropDownID).removeChild(document.getElementById(i8.ClientID+"\x5f\x4c\x6f\x61\x64\x69\x6e\x67\x44\x69\x76")); document.getElementById(i8.DropDownID).innerHTML+=I9; if (i8.Items[oa+1] != null){i8.Items[oa+1].O(); }}else {document.getElementById(i8.DropDownID).innerHTML=I9; }i8.l1(i8.OnClientItemsRequested,i8,O8,g); i8.V= false; var Oa=i8.FindItemByText(i8.GetText()); if (Oa != null){Oa.Highlight(); Oa.O(); }if (!I6)return; if (I6<040||(I6>=041&&I6<=056)||(I6>=0160&&I6<=0173)){return; }i8.O7(); } ; xmlRequest.send(""); }} ; RadComboBox.prototype.la= function (J){var k=-1; if (this.AutoCompleteSeparator != null){k=this.L(J); }var ia=J.substring(k+1,J.length); return ia; } ; RadComboBox.prototype.Ia= function (ob,Ob){if (!this.IsCaseSensitive){return (ob.toLowerCase() == Ob.toLowerCase()); }else {return (ob == Ob); }} ; RadComboBox.prototype.O7= function (){if (!this.MarkFirstMatch)return; var J=this.GetText(); var ia=this.la(J); if (ia.length == 0){return; }for (var i=0; i<this.Items.length; i++){var lb=this.Items[i].Text; if (lb.length>=ia.length){var ib=lb.substring(0,ia.length); if (this.Ia(ib,ia)){var k=-1; if (this.AutoCompleteSeparator != null){k=this.L(J); }var H=J.substring(0,k+1)+lb; this.SetText(H); this.Items[i].Highlight(); this.Items[i].O(); var Ib=k+ia.length+1; var oc=H.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",oc); Oc.select(); }else {document.getElementById(this.InputID).setSelectionRange(Ib,Ib+oc); }return; }}}if (!this.AllowCustomText){var lc=J.substring(0,J.length-1); if (this.S != null){ this.SetText(this.S); return; } this.SetText(lc); this.O7(); }} ; RadComboBox.prototype.i6= function (g,keyCode){if (!this.V&&(!document.getElementById(this.ClientID+"\x5f\x4c\x6f\x61\x64\x69\x6e\x67\x44\x69\x76"))){var comboInstance=this ; if (this.T){window.clearTimeout(this.T); this.T=0; } this.T=window.setTimeout( function (){comboInstance.l3(g,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.l3= function (g,keyCode){var O8=document.getElementById(this.InputID).value; if (O8 == "")O8= false; if (this.l1(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.o8(g,O8,keyCode);} ,024); } ; RadComboBox.prototype.RequestItems= function (text,g){ this.o8(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.ic= function (){document.getElementById(this.InputID).className=this.InputCssClass; var Ic=document.getElementById(this.ImageID); if (Ic){Ic.className=this.ImageCssClass; }} ; RadComboBox.prototype.od= 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.ld= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x68\x61\x6e\x64"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.oe= function (){ this.UnHighlightAll(); this.i6( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.Oe= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.l6= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.l1= function (le,a,b,ie){if (!le)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=ie; var s=le; 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.l4(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.i4(I4); break; case "\x6d\x6f\x75\x73\x65\x6f\x75\x74":if (I4 != null)this.o5(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.l7(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.ic(); break; case "\x69\x6e\x70\x75\x74\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\x63\x6c\x69\x63\x6b": this.Oe(eventArgs); this.oe(); break; case "\x6d\x6f\x72\x65\x72\x65\x73\x75\x6c\x74\x73\x69\x6d\x61\x67\x65\x68\x6f\x76\x65\x72": this.ld(); 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.o3= function (node){var x=0; var Q=node; while (Q.parentNode&&Q.parentNode.tagName != "\x42\x4f\x44\x59"){if (typeof(Q.parentNode.scrollLeft) == "\x6e\x75\x6d\x62\x65\x72"){x+=Q.parentNode.scrollLeft; }Q=Q.parentNode; }return x; } ; RadComboBox.prototype.O3= function (node){var y=0; var Q=node; while (Q.parentNode&&Q.parentNode.tagName != "\x42\x4f\x44\x59"){if (typeof(Q.parentNode.scrollTop) == "\x6e\x75\x6d\x62\x65\x72"){y+=Q.parentNode.scrollTop; }Q=Q.parentNode; }return y; } ; RadComboBox.prototype.i2= function (node){var x=0; var Q=node; while (Q.offsetParent&&Q.offsetParent.tagName != "\x42\x4f\x44\x59"){if (typeof(Q.offsetParent.scrollLeft) == "\x6e\x75\x6d\x62\x65\x72"){x+=Q.offsetParent.scrollLeft; }Q=Q.offsetParent; }return x; } ; RadComboBox.prototype.I2= function (node){var y=0; var Q=node; while (Q.offsetParent&&Q.offsetParent.tagName != "\x42\x4f\x44\x59"){if (typeof(Q.offsetParent.scrollTop) == "\x6e\x75\x6d\x62\x65\x72"){y+=Q.offsetParent.scrollTop; }Q=Q.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.R= 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(Z,eventName,eventArgs){var comboInstance=null; comboInstance=eval(Z); if (comboInstance == null)return; comboInstance.HandleEvent(eventName,eventArgs); } ; function rcbAppendStyleSheet(of,Of){var If=(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 og=(navigator.userAgent.toLowerCase().indexOf("\x73\x61\x66\x61\x72\x69") != -1); if (If||og){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(of+"\x53\x74\x79\x6c\x65\x53\x68\x65\x65\x74\x48\x6f\x6c\x64\x65\x72").appendChild(Og); }} ;

