if (typeof(window.RadControlsNamespace)=="unde\x66\x69ned"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("\x3c"+"\x6cink"+"\x20\x72el=\047styl\x65\163h\x65et\047\x20type\x3d\x27tex\x74\057\x63ss\x27\x20hr\x65\146=\x27"+I+"\047\x20/>"); }else {var A=document.createElement("\x4cINK"); A.rel="\x73tylesheet"; A.type="\164ex\x74\x2fcss"; A.href=I; document.getElementById(o+"StyleSh\x65\x65tHold\x65\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 (){var w=0; var V=document.getElementById(this.ComboBox.ClientID+"_\x44ropDown"); if (V.offsetWidth!=V.scrollWidth+16){w=16; }if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<=this.Index; i++){var v=document.getElementById(this.ComboBox.Items[i].ClientID); if (v){totalHeight+=v.offsetHeight; }}V.scrollTop=totalHeight-V.offsetHeight+w; }} ; RadComboItem.prototype.T= function (){if (this.ComboBox.Items.length>0){var totalHeight=0; for (var i=0; i<this.Index; i++){var v=document.getElementById(this.ComboBox.Items[i].ClientID); if (v){totalHeight+=v.offsetHeight; }}var scrollTop=document.getElementById(this.ComboBox.ClientID+"_DropDo\x77n").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"_D\x72\x6fpDown").scrollTop=totalHeight; }}} ; RadComboItem.prototype.Highlight= function (){if (!this.Highlighted && this.Enabled){ this.ComboBox.UnHighlightAll(); if (!this.ComboBox.IsTemplated || this.ComboBox.HighlightTemplatedItems){var t=document.getElementById(this.ClientID); if (t){if (!this.ComboBox.HighlightedItem){ this.S=t.className; }t.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.S; this.Highlighted= false; this.ComboBox.HighlightedItem=null; }} ; RadComboItem.prototype.Select= function (){ this.ComboBox.SelectedItem=this ; this.ComboBox.R(this ); this.ComboBox.HideDropDown(); this.ComboBox.r= true; this.ComboBox.Q(); } ; function RadComboBox(P,N){var n=window[N]; if (n!=null && !n.tagName){n.M(); }if (window.tlrkComboBoxes==null){window.tlrkComboBoxes=new Array(); }tlrkComboBoxes[tlrkComboBoxes.length]=this ; this.Items=new Array(); this.m= false; this.ID=P; this.ClientID=N; this.L=N; this.DropDownID=N+"_D\x72o\x70\x44own"; this.InputID=N+"_Inpu\x74"; this.ImageID=N+"_\x49\x6dage"; this.DropDownPlaceholderID=N+"\x5fDropDow\x6e\x50lace\x68\x6fld\x65r"; this.MoreResultsBoxID=N+"\x5fMoreResul\x74\x73Box"; this.MoreResultsBoxImageID=N+"\x5fMoreRes\x75\x6ctsBo\x78\x49ma\x67\x65"; this.MoreResultsBoxMessageID=N+"_MoreR\x65\x73ultsB\x6f\x78Mes\x73\141\x67\x65"; this.l=N+"\x5f\x48eader"; this.K=document.getElementById(this.InputID); this.k=document.getElementById(this.ImageID); this.J=document.getElementById(this.DropDownPlaceholderID); this.H=document.getElementById(this.ClientID+"\x5f\164ext"); this.h=document.getElementById(this.ClientID+"\x5fvalue"); this.G=document.getElementById(this.ClientID+"\137ind\x65\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.g= false; this.MarkFirstMatch= false; this.IsCaseSensitive= false; this.PostBackReference=null; this.LoadingMessage="\x4coadin\x67\x2e.."; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.F=null; this.RadComboBoxImagePosition="\122ig\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="\x43omboBoxL\x6f\x61din\x67\x4des\x73\x61ge"; 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="\x43lassic"; this.HideTimeoutID=0; this.f=0; this.D= false; this.d=null; this.AllowCustomText= false; this.ExpandEffectString=null; this.HighlightTemplatedItems= false; this.CausesValidation= false; this.ClientDataString=null; this.r= false; this.C=-1; this.IsTemplated= false; this.B=null; this.OffsetX=0; this.OffsetY=0; var comboInstance=this ; this.o0(); this.O0= function (){comboInstance.HideOnClick(); } ; if (document.attachEvent){document.attachEvent("\157n\x63\x6cick",this.O0); }else {document.addEventListener("c\x6c\x69ck",this.O0, false); } this.l0= function (e){comboInstance.i0(e || event); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6fnblur",this.l0); }else {document.getElementById(this.InputID).addEventListener("\x62lur",this.l0, false); } this.I0= function (){comboInstance.o1(); } ; if (document.attachEvent){document.getElementById(this.InputID).attachEvent("\x6fnfocus",this.I0); }else {document.getElementById(this.InputID).addEventListener("\x66\157cu\x73",this.I0, false); }document.getElementById(this.InputID).setAttribute("autocom\x70\x6cete","\x6fff"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="undefined"){window.setTimeout( function (){comboInstance.O1(document.getElementById(comboInstance.InputID));} ,100); }else {var l1= false; if (window.addEventListener){window.addEventListener("load", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } , false); l1= true; }else {if (!l1){ this.O1(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("onu\x6e\x6coad", function (){comboInstance.M(); } ); }else {window.addEventListener("\x75nload", function (){comboInstance.M(); } , false); }} ; RadComboBox.prototype.ClearItems= function (){ this.Items=[]; document.getElementById(this.DropDownID).innerHTML=""; } ; RadComboBox.prototype.i1= function (){var width=0; var height=0; var I1=document.body; if (window.innerWidth){width=window.innerWidth; height=window.innerHeight; }else {if (document.compatMode && document.compatMode=="CSS\x31\x43ompat"){I1=document.documentElement; }width=I1.clientWidth; height=I1.clientHeight; }width+=I1.scrollLeft; height+=I1.scrollTop; return {width:width-6,height:height-6 } ; } ; RadComboBox.prototype.o2= function (el){var parent=null; var O2= {x: 0,y: 0 } ; var box; if (el.getBoundingClientRect){box=el.getBoundingClientRect(); var scrollTop=document.documentElement.scrollTop || document.body.scrollTop; var scrollLeft=document.documentElement.scrollLeft || document.body.scrollLeft; O2.x=box.left+scrollLeft-2; O2.y=box.top+scrollTop-2; return O2; }else if (document.getBoxObjectFor){box=document.getBoxObjectFor(el); O2.x=box.x-2; O2.y=box.y-2; }else {O2.x=el.offsetLeft; O2.y=el.offsetTop; parent=el.offsetParent; if (parent!=el){while (parent){O2.x+=parent.offsetLeft; O2.y+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName!="BODY" && parent.tagName!="HTML"){O2.x-=parent.scrollLeft; O2.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="B\x4fDY" && parent.tagName!="H\x54\x4dL"){O2.x-=parent.scrollLeft; O2.y-=parent.scrollTop; parent=parent.parentNode; }}return O2; } ; RadComboBox.prototype.M= function (){try {tlrkComboBoxes[this.ID]=null; this.Items=null; this.K=null; this.k=null; this.J=null; this.H=null; this.h=null; this.G=null; this.F=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\x6eclick",this.O0); }else {document.removeEventListener("cl\x69\x63k",this.O0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onblur",this.l0); }else {document.getElementById(this.InputID).removeEventListener("\x62lur",this.l0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onfocus",this.I0); }else {document.getElementById(this.InputID).removeEventListener("\x66ocus",this.I0, false); }if (window.removeEventListener){window.removeEventListener("\x6coad", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } , false); }var input=document.getElementById(this.InputID); if (input!=null)input.onblur=null; input=null; var l2=document.getElementById(this.DropDownPlaceholderID); if (l2!=null){l2.onselectstart=null; }l2=null; }catch (e){}} ; RadComboBox.prototype.Initialize= function (i2,Z){ this.I2(i2); this.o3(Z); this.O3(); this.l3(); } ; RadComboBox.prototype.I2= function (i2){for (var z in i2){ this[z]=i2[z]; }} ; RadComboBox.prototype.O3= function (){ this.ItemCssClass="Combo\x42oxItem_"+this.Skin; this.ItemCssClassHover="ComboBoxI\x74\x65mHo\x76\x65r_"+this.Skin; this.ItemCssClassDisabled="\x43omboBoxItem\x44\x69sabl\x65\144\x5f"+this.Skin; this.ImageCssClass="ComboB\x6f\x78Imag\x65\x5f"+this.Skin; this.ImageCssClassHover="ComboBoxI\x6d\x61geHo\x76\x65r_"+this.Skin; this.InputCssClass="\x43omboBoxInpu\x74\x5f"+this.Skin; this.InputCssClassHover="Combo\x42\x6fxInpu\x74\x48ove\x72\137"+this.Skin; this.LoadingMessageCssClass="ComboBoxLoa\x64\x69ngMe\x73\x73ag\x65\x5f"+this.Skin; } ; RadComboBox.prototype.R= function (item){if (item!=null){ this.i3(item.Text); this.SetValue(item.Value); this.I3(item.Index); }else { this.SetText(""); this.SetValue(""); this.I3("-1"); }} ; RadComboBox.prototype.Q= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="\x66\x75nctio\x6e" && !(typeof(Page_ClientValidate)!="\x66u\x6e\x63tion" || Page_ClientValidate())){return; }}eval(this.PostBackReference); }} ; RadComboBox.prototype.i0= function (e){var o4=this.SelectedItem; var O4=this.HighlightedItem; if (o4!=null && O4!=null && o4!=O4){ this.R(O4); this.l4(); }var i4=this.B; var I4=this.GetText(); if (i4!=I4 && this.AllowCustomText){ this.SetText(this.GetText()); if (!this.r){ this.Q(); }else { this.r= false; }}} ; RadComboBox.prototype.o1= function (e){ this.B=this.GetText(); this.o5(); };RadComboBox.prototype.O5= function (){var l5=document.getElementById(this.L); while (l5.tagName!="FO\x52M"){l5=l5.parentNode; }return l5; } ; RadComboBox.prototype.i5= function (){var l2=document.getElementById(this.DropDownPlaceholderID); var I5=l2.getElementsByTagName("input"); return I5.length>0; };RadComboBox.prototype.o6= function (){if ((!document.readyState || document.readyState=="comple\x74\x65") && (!this.D)){var parentElement=document.body; if (this.i5()){parentElement=this.O5(); }var l2=document.getElementById(this.L).getElementsByTagName("\104\x49V")[0]; l2.parentNode.removeChild(l2); l2.style.marginLeft="\x30"; var O6=document.getElementById(this.DropDownPlaceholderID); if (O6){O6.parentNode.removeChild(O6); }if (parentElement.firstChild){parentElement.insertBefore(l2,parentElement.firstChild); }else {parentElement.appendChild(l2); } this.D= true; this.J=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.l6= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var i6=this.AutoCompleteSeparator.charAt(i); var I6=text.lastIndexOf(i6); if (I6>lastIndex){lastIndex=I6; }}return lastIndex; } ; RadComboBox.prototype.i3= function (o7){var O7=-1; var l7=this.GetText(); if (this.AutoCompleteSeparator!=null){O7=this.l6(l7); }var I4=l7.substring(0,O7+1)+o7; this.SetText(I4); } ; RadComboBox.prototype.ClearSelection= function (){ this.R(null); this.SelectedItem=null; this.i7=null; } ; RadComboBox.prototype.o3= 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.l3= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var l7=this.GetText(); var I7=this.FindItemByText(l7); if (I7!=null){ this.SelectedItem=I7; this.SelectedItem.Highlight(); }} this.m= true; if (this.SelectedItem==null && this.C==-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("onl\x6fad", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("\x6c\x6fad", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.o8= function (Z,O8){if (!O8){ this.Items.length=0; } this.HighlightedItem=null; this.SelectedItem=null; this.m= 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.d=this.GetText(); } this.o3(Z); } ; RadComboBox.prototype.SetText= function (o7){document.getElementById(this.InputID).value=o7; this.H.value=o7; } ; RadComboBox.prototype.GetText= function (){return document.getElementById(this.InputID).value; } ; RadComboBox.prototype.SetValue= function (value){if (value || value==""){ this.h.value=value; }} ; RadComboBox.prototype.GetValue= function (){return this.h.value; } ; RadComboBox.prototype.I3= function (index){ this.G.value=index; } ; RadComboBox.prototype.l8= function (el){var parent=null; var O2=[]; 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); O2=[box.x-2,box.y-2]; }else {O2=[el.offsetLeft,el.offsetTop]; parent=el.offsetParent; if (parent!=el){while (parent){O2[0]+=parent.offsetLeft; O2[1]+=parent.offsetTop; parent=parent.offsetParent; }}}if (window.opera){parent=el.offsetParent; while (parent && parent.tagName!="B\x4fDY" && parent.tagName!="HTML"){O2[0]-=parent.scrollLeft; O2[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="BODY" && parent.tagName!="\x48TML"){O2[0]-=parent.scrollLeft; O2[1]-=parent.scrollTop; parent=parent.parentNode; }}return O2; } ; RadComboBox.prototype.i8= function (x,y){if (document.readyState && document.readyState!="\143\x6f\x6dplet\x65"){return; }var I8=(navigator.userAgent.toLowerCase().indexOf("\x73afar\x69")!=-1); var o9=window.opera; if (I8 || o9 || (!document.all)){return; }if (this.F==null){ this.F=document.createElement("\111\x46\x52AME"); this.F.src="\x6aavascr\x69\x70t:\047\047"; this.F.id=this.ClientID+"\x5fOverl\x61\x79"; this.F.frameBorder=0; this.F.style.position="\x61bsolut\x65"; this.F.style.display="none"; this.o6(); this.J.parentNode.insertBefore(this.F,this.J); this.F.style.zIndex=this.J.style.zIndex-1; } this.F.style.left=x; this.F.style.top=y; var O9=this.J.offsetWidth; var l9=this.J.offsetHeight; this.F.style.width=O9+"px"; this.F.style.height=l9+"px"; this.F.style.display=""; } ; RadComboBox.prototype.i9= function (){var I8=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); var o9=window.opera; if (I8 || o9 || (!document.all)){return; }if (this.F!=null){ this.F.style.display="none"; }} ; RadComboBox.prototype.I9= function (){for (var i=0; i<tlrkComboBoxes.length; i++){if (tlrkComboBoxes[i].ClientID!=this.ClientID){tlrkComboBoxes[i].HideDropDown(); }}} ; RadComboBox.prototype.o0= function (){var el=document.getElementById(this.ClientID+"_wrapper"); while (el.tagName.toLowerCase()!="ht\x6dl"){if (el.dir){ this.oa=(el.dir.toLowerCase()=="rtl"); return; }el=el.parentNode; } this.oa= false; };RadComboBox.prototype.ShowDropDown= function (){if (this.Oa(this.OnClientDropDownOpening,this )== false){return; } this.I9(); this.o6(); var la; (this.RadComboBoxImagePosition=="\x52ight" && !this.oa)?la=this.K:la=document.getElementById(this.ImageID); var position=this.l8(la); var x=position[0]+this.OffsetX; var y=position[1]+la.offsetHeight+this.OffsetY; var ia=document.getElementById(this.L); Ia=ia.offsetWidth; if (this.ExpandEffectString!=null && document.all){try { this.J.style.filter=this.ExpandEffectString; this.J.filters[0].Apply(); this.J.filters[0].Play(); }catch (e){}}if (this.oa){ this.J.dir="\x72\x74l"; }var ob=this.i1(); this.J.style.position="absolu\x74\x65"; this.J.style.width=Ia-2+"\x70\x78"; this.J.style.display="\x62lock"; if (this.Ob(ob,this.J,la)){var lb=y-this.J.offsetHeight-la.offsetHeight; if (lb>0){y=lb; }} this.J.style.left=x+"px"; this.J.style.top=y+"px"; this.i8(x+"p\x78",y+"\x70\170"); 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.ib( true ,null); }if (this.SelectedItem!=null){ this.SelectedItem.Highlighted= false; this.SelectedItem.Highlight(); this.SelectedItem.T(); }} ; RadComboBox.prototype.Ob= function (ob,t,la){var Ib=this.o2(la).y+t.offsetHeight; return Ib>ob.height; } ; RadComboBox.prototype.FindItemByText= function (o7){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Text==o7){return this.Items[i]; }}return null; } ; RadComboBox.prototype.FindItemByValue= function (oc){for (var i=0; i<this.Items.length; i++){if (this.Items[i].Value==oc){return this.Items[i]; }}return null; } ; RadComboBox.prototype.HideDropDown= function (){if (this.DropDownVisible){if (this.Oa(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="n\x6fne"; this.i9(); this.DropDownVisible= false; this.Oc(); }} ; RadComboBox.prototype.Oc= function (){ this.Oa(this.OnClientBlur,this );};RadComboBox.prototype.o5= function (){ this.Oa(this.OnClientFocus,this );};function lc(ic){document.body.appendChild(document.createTextNode(ic)); document.body.appendChild(document.createElement("\110\x52")); }RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.Ic= function (od){if (od){while (od!=null){if (od.id && this.Od(od.id)){return od; }od=od.parentNode; }}return null; } ; RadComboBox.prototype.Od= function (ld){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==ld){return true; }}return false; } ; RadComboBox.prototype.oe= 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.Oe= function (le){le.Highlight(); } ; RadComboBox.prototype.ie= function (le){le.UnHighlight(); } ; RadComboBox.prototype.l4= function (eventArgs){var Ie=this.HighlightedItem; if (Ie!=null){if (this.Oa(this.OnClientSelectedIndexChanging,Ie,eventArgs)== false){return; }Ie.Select(); this.Oa(this.OnClientSelectedIndexChanged,Ie,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.l4(eventArgs); } ; RadComboBox.prototype.of= function (index){var i=index; var Of= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){Of= true; break; }}if (Of)return i; return index; } ; RadComboBox.prototype.If= function (index){var i=index; var Of= false; while (i>0){i=i-1; if (this.Items[i].Enabled){Of= true; break; }}if (Of)return i; return index; } ; RadComboBox.prototype.og= function (comboInstance,eventArgs){ this.Oa(this.OnClientKeyPressing,this,eventArgs); if (eventArgs.keyCode==46){if (!this.EnableLoadOnDemand && !this.AllowCustomText){ this.Og(eventArgs); }}if (eventArgs.keyCode==40){if (eventArgs.altKey && (!this.DropDownVisible)){ this.ShowDropDown(); return; }var index=0; if (this.HighlightedItem!=null){index=this.of(this.HighlightedItem.Index); }if (index>=0 && this.Items.length>0){if (this.Oa(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Highlight(); this.Items[index].W(); this.R(this.Items[index]); this.Og(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.If(this.HighlightedItem.Index); }if (index>=0){if (this.Oa(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].T(); this.Items[index].Highlight(); this.R(this.Items[index]); this.Og(eventArgs); }return; }if ((eventArgs.keyCode==13 || eventArgs.keyCode==9) && this.DropDownVisible){if (eventArgs.keyCode==13){ this.Og(eventArgs); } this.l4(); return; }if (eventArgs.keyCode==9 && !this.DropDownVisible){ this.Oc(); 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.lg( false ,eventArgs.keyCode); return; }var ig=eventArgs.keyCode; if ((ig<32) || (ig>=33 && ig<=46) || (ig>=112 && ig<=123) || (eventArgs.altKey== true)){return; }var Ig=this ; window.setTimeout( function (){Ig.oh(); } ,20); } ; RadComboBox.prototype.Oh= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode==13 || (eventArgs.keyCode==32 && (!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.lh= function (s){if (typeof(encodeURIComponent)!="undef\x69ne\x64"){return encodeURIComponent(this.ih(s)); }if (escape){return escape(this.ih(s)); }} ; RadComboBox.prototype.ih= function (text){if (typeof(text)!="number"){return text.replace(/\x27/g,"&squote"); }} ; RadComboBox.prototype.Ih= function (){if (typeof(XMLHttpRequest)!="unde\x66\x69ned"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="\x75ndefined"){return new ActiveXObject("\x4dicrosoft.XML\x48\124\x54\x50"); }} ; RadComboBox.prototype.oi= function (Oi,ii,Ii,oj){var url=this.LoadOnDemandUrl+"\x26text="+this.lh(Oi); url=url+"\x26combo\x54\x65xt="+this.lh(ii); url=url+"&co\x6d\x62oValue\x3d"+this.lh(Ii); url=url+"&skin="+this.lh(this.Skin); if (oj){url=url+"&ite\x6d\x43ount="+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"\x26externa\x6c\x3dtrue"; }if (this.ClientDataString!=null){url+="&clientData\x53\x74ring\x3d"+this.lh(this.ClientDataString); }url=url+"&timeStamp\x3d"+encodeURIComponent((new Date()).getTime()); return url; } ; RadComboBox.prototype.Oj= function (oj,text,keyCode){if (!this.g){ this.g= true; var ii=this.GetText(); var Ii=this.GetValue(); var Oi=(text)?text:ii; var lj=this.oi(Oi,ii,Ii,oj); var ij=this ; var xmlRequest=this.Ih(); xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState!=4)return; ij.Ij(xmlRequest.responseText,oj,Oi,keyCode,xmlRequest.status,lj); } ; xmlRequest.open("\x47ET",lj, true); xmlRequest.send(""); }} ; RadComboBox.prototype.Ij= function (ok,oj,Oi,keyCode,status,url){if (status==500){alert("r\x2e\141\x2e\x64.comb\x6f\x62ox:\x20Server \x65\x72ror\x20\151\x6e the\x20ItemsR\x65\161\x75\145s\x74ed ev\x65nt ha\x6edler,\x20pre\x73s ok\x20to \x76iew \x74he r\x65sul\x74."); document.body.innerHTML=ok; return; }if (status==404){alert("\162.\x61\x2ed.comb\x6f\x62ox: \x4coad On \x44\x65man\x64\x20Pa\x67e not \x66\157u\x6e\144:\x20"+url); var Ok="r.a.d.co\x6d\x62obox\x3a\x20Load\x20\117n \x44\x65ma\x6e\x64 Pa\x67e not \x66\157u\x6e\144:\x20"+url+"<br/>"; Ok+="\x50lease, try \x75\x73ing \x45\x78te\x72\x6ealC\x61\x6clBa\x63kPage \x74\157 \x6d\141p\x20to th\x65\040\x65xact \x6cocat\x69on o\x66 the\x20call\x62ackp\x61ge y\x6fu ar\x65 us\x69ng.";document.body.innerHTML=Ok; return; }eval("\x76ar call\x42\x61ckDat\x61\x20= "+ok+"\x3b"); if (this.GetText()!=callBackData.Text){ this.g= false; this.lg( false ,null); return; }if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var lk=this.Items.length; this.o8(callBackData.Items,oj); if (oj){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"_Loadi\x6e\x67Div")); document.getElementById(this.DropDownID).innerHTML+=callBackData.DropDownHtml; if (this.Items[lk+1]!=null){ this.Items[lk+1].W(); }}else {document.getElementById(this.DropDownID).innerHTML=callBackData.DropDownHtml; } this.i8(this.J.style.left,this.J.style.top); this.Oa(this.OnClientItemsRequested,this,Oi,oj); this.g= false; var ik=this.FindItemByText(this.GetText()); if (ik!=null){ik.Highlight(); ik.W(); }if (!keyCode)return; if (keyCode<32 || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123)){return; } this.oh(); };RadComboBox.prototype.Ik= function (l7){var O7=-1; if (this.AutoCompleteSeparator!=null){O7=this.l6(l7); }var ll=l7.substring(O7+1,l7.length); return ll; } ; RadComboBox.prototype.il= function (Il,om){if (!this.IsCaseSensitive){return (Il.toLowerCase()==om.toLowerCase()); }else {return (Il==om); }} ; RadComboBox.prototype.oh= function (){if (!this.MarkFirstMatch)return; var l7=this.GetText(); var ll=this.Ik(l7); if (ll.length==0){return; }for (var i=0; i<this.Items.length; i++){var Om=this.Items[i].Text; if (Om.length>=ll.length){var Im=Om.substring(0,ll.length); if (this.il(Im,ll)){var O7=-1; if (this.AutoCompleteSeparator!=null){O7=this.l6(l7); }var I4=l7.substring(0,O7+1)+Om; this.SetText(I4); this.SetValue(this.Items[i].Value); this.I3(this.Items[i].Index); if (this.Oa(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var On=O7+ll.length+1; var In=I4.length-On; if (document.all){var oo=document.getElementById(this.InputID).createTextRange(); oo.moveStart("\143haract\x65\x72",On); oo.moveEnd("charact\x65\x72",In); oo.select(); }else {document.getElementById(this.InputID).setSelectionRange(On,On+In); }return; }else { this.SetValue(""); this.I3(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.I3("-1"); if (!this.AllowCustomText){var Oo=l7.substring(0,l7.length-1); if (this.d!=null){ this.SetText(this.d); return; } this.SetText(Oo); this.oh(); }} ; RadComboBox.prototype.lg= function (O8,keyCode){if (!this.g){var comboInstance=this ; if (this.f){window.clearTimeout(this.f); this.f=0; } this.f=window.setTimeout( function (){comboInstance.ib(O8,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.ib= function (O8,keyCode){var Oi=document.getElementById(this.InputID).value; if (Oi=="")Oi= false; if (this.Oa(this.OnClientItemsRequesting,this,Oi,O8)== false){return; }if (!this.g){if (!document.getElementById(this.ClientID+"\x5f\x4coadingDiv")){document.getElementById(this.DropDownID).innerHTML="\x3cdiv i\x64\x3d"+this.ClientID+"\x5fLoadingDi\x76"+"\x20class=\047"+this.LoadingMessageCssClass+"\x20\047\x3e"+this.LoadingMessage+"</div>"+document.getElementById(this.DropDownID).innerHTML; }}var comboInstance=this ; window.setTimeout( function (){comboInstance.Oj(O8,Oi,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,O8){ this.Oj(O8,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.Io= function (){document.getElementById(this.InputID).className=this.InputCssClass; var op=document.getElementById(this.ImageID); if (op){op.className=this.ImageCssClass; }} ; RadComboBox.prototype.Op= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var op=document.getElementById(this.ImageID); if (op){op.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.lp= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x64e\x66\x61ult"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; } ; RadComboBox.prototype.ip= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="hand"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.Ip= function (){ this.UnHighlightAll(); this.lg( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.oq= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.Og= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.Oa= function (Oq,a,b,lq){if (!Oq)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=lq; var s=Oq; s=s+"\x28RadCo\x6d\x62oBox\x47\x6coba\x6cFirst\x50\x61ram"; s=s+"\x2cRadComboB\x6f\x78Glo\x62\141\x6c\123e\x63\x6fndP\x61\162a\x6d"; s=s+"\x2cRadComboB\x6f\x78Glob\x61\x6cTh\x69\x72dPa\x72\141m"; s=s+");"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var le; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.Ic(srcElement); if (item!=null){le=this.oe(item); }if (!this.Enabled){return; }switch (eventName){case "\x73howd\x72\x6fpdown": this.oq(eventArgs); this.ShowDropDown(); break; case "h\x69\x64edropd\x6f\x77n": this.oq(eventArgs); this.HideDropDown(); break; case "\x74oggledropdo\x77\x6e": this.oq(eventArgs); this.ToggleDropDown(); break; case "\155o\x75\x73eover":if (le!=null)this.Oe(le); break; case "\x6d\x6fuseout":if (le!=null)this.ie(le); break; case "\x6beypres\x73": this.og(this,eventArgs); break; case "\x6beydown": this.Oh(eventArgs); break; case "\x63lick": this.HandleClick(eventArgs); break; case "inputclic\x6b": this.oq(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "input\x69\x6dageout": this.Io(); break; case "\x69nputim\x61\x67ehove\x72": this.Op(); break; case "moreresults\x69\x6dagec\x6c\x69ck": this.oq(eventArgs); this.Ip(); break; case "\155or\x65\x72esults\x69\x6dageh\x6fver": this.ip(); break; case "\x6doreresult\x73\x69mage\x6f\x75t": this.lp(); break; }} ; RadComboBox.prototype.Enable= function (){document.getElementById(this.InputID).disabled= false; this.Enabled= true; } ; RadComboBox.prototype.Disable= function (){document.getElementById(this.InputID).disabled="\x64isabled"; this.Enabled= false; this.H.value=this.GetText(); } ; RadComboBox.prototype.O1= function (iq){if (window.opera)return; if (document.compatMode && document.compatMode=="\x43SS1Compa\x74"){var computedStyle=null; if (iq.currentStyle){computedStyle=iq.currentStyle; }else if (document.defaultView && document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(iq,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)){iq.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"px"; }if (!isNaN(width)){iq.style.width=width-paddingLeft-paddingRight-borderLeft-borderRight+"\x70\x78"; }}} ; function rcbDispatcher(N,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[N]; }catch (e){}if (typeof(comboInstance)=="undefined" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="u\x6e\144e\x66\x69ned"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var Iq=(navigator.appName=="Micro\x73\x6fft Int\x65\x72net\x20Explor\x65r") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); var I8=(navigator.userAgent.toLowerCase().indexOf("safari")!=-1); if (Iq || I8){document.write("\x3c"+"link"+" r\x65\x6c=\047\x73tyles\x68\x65e\x74\x27 ty\x70\145=\x27\164e\x78t/css\x27 hre\x66\x3d\047"+I+"\047\x3e"); }else {var A=document.createElement("\x4c\x49NK"); A.rel="\x73tylesheet"; A.type="t\x65\x78t/css"; A.href=I; document.getElementById(o+"Styl\x65\x53heetH\x6f\x6cder").appendChild(A); }} ;
