if (typeof(window.RadControlsNamespace)=="undefi\x6e\x65d"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("\x3c"+"lin\x6b"+" rel=\047stylesh\x65et\047\x20type=\x27\x74ext\x2f\143s\x73\047\x20href\x3d\047"+I+"\x27 />"); }else {var A=document.createElement("\x4cINK"); A.rel="stylesheet"; A.type="text/css"; A.href=I; document.getElementById(o+"\x53tyleSh\x65\x65tHol\x64\x65r").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+"_D\x72opDown"); 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+"\x5f\x44\x72opDow\x6e").scrollTop; if (scrollTop>totalHeight){document.getElementById(this.ComboBox.ClientID+"\x5fDropDown").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+"\x5f\x44ropDo\x77n"; this.InputID=N+"_I\x6e\x70ut"; this.ImageID=N+"\x5fImage"; this.DropDownPlaceholderID=N+"_Dro\x70\x44ownPla\x63\x65hol\x64\x65r"; this.MoreResultsBoxID=N+"_MoreResults\x42\x6fx"; this.MoreResultsBoxImageID=N+"_MoreResul\x74\x73BoxI\x6d\x61ge"; this.MoreResultsBoxMessageID=N+"_MoreRes\x75\x6ctsBox\x4d\x65ssa\x67\x65"; this.l=N+"_Header"; this.K=document.getElementById(this.InputID); this.k=document.getElementById(this.ImageID); this.J=document.getElementById(this.DropDownPlaceholderID); this.H=document.getElementById(this.ClientID+"_text"); this.h=document.getElementById(this.ClientID+"_value"); this.G=document.getElementById(this.ClientID+"\x5findex"); 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="\x4coading..."; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.F=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="ComboB\x6f\x78Loadin\x67\x4dess\x61\147\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="Cla\x73\x73ic"; 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("\x6fnclick",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("o\x6e\x62lur",this.l0); }else {document.getElementById(this.InputID).addEventListener("blur",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("\146o\x63\x75s",this.I0, false); }document.getElementById(this.InputID).setAttribute("\x61utocomplet\x65","o\x66\x66"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="u\x6e\x64efined"){window.setTimeout( function (){comboInstance.O1(document.getElementById(comboInstance.InputID));} ,100); }else {var l1= false; if (window.addEventListener){window.addEventListener("loa\x64", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } , false); l1= true; }else {if (!l1){ this.O1(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("on\x75\156lo\x61\x64", function (){comboInstance.M(); } ); }else {window.addEventListener("u\x6e\x6coad", 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=="CSS1Compa\x74"){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!="\x42ODY" && parent.tagName!="\x48TML"){O2.x-=parent.scrollLeft; O2.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="BODY" && parent.tagName!="\x48TML"){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("on\x63lick",this.O0); }else {document.removeEventListener("click",this.O0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\x6f\156\x62\x6cur",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("\x66\x6fcus",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="ComboBoxIt\x65\x6dHove\x72\x5f"+this.Skin; this.ItemCssClassDisabled="Combo\x42\x6fxItem\x44\x69sabl\x65d_"+this.Skin; this.ImageCssClass="\x43\x6fmboBox\x49\x6dage_"+this.Skin; this.ImageCssClassHover="ComboBoxIma\x67\x65Hove\x72\x5f"+this.Skin; this.InputCssClass="Com\x62\x6fBoxInp\x75\x74_"+this.Skin; this.InputCssClassHover="\x43\157m\x62\x6fBoxIn\x70\x75tHo\x76er_"+this.Skin; this.LoadingMessageCssClass="\x43omboBoxLo\x61\x64ingM\x65\x73sa\x67\x65_"+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)!="functi\x6f\x6e" && !(typeof(Page_ClientValidate)!="\x66unction" || 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!="FORM"){l5=l5.parentNode; }return l5; } ; RadComboBox.prototype.i5= function (){var l2=document.getElementById(this.DropDownPlaceholderID); var I5=l2.getElementsByTagName("i\x6eput"); 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("\x44IV")[0]; l2.parentNode.removeChild(l2); l2.style.marginLeft="0"; 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; if (item.Selected){ this.SetText(item.Text); this.SetValue(item.Value); }}} ; 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("\157nload", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("\x6coad", 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-1,box.y-1]; }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!="\x42\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!="complete"){return; }var I8=(navigator.userAgent.toLowerCase().indexOf("s\x61fari")!=-1); var o9=window.opera; if (I8 || o9 || (!document.all)){return; }if (this.F==null){ this.F=document.createElement("\x49FRAME"); this.F.src="\x6aavasc\x72\x69pt:\x27\047"; this.F.id=this.ClientID+"\x5fOverlay"; this.F.frameBorder=0; this.F.style.position="\x61bsolute"; this.F.style.display="\x6eone"; 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+"\x70x"; this.F.style.height=l9+"px"; this.F.style.display=""; } ; RadComboBox.prototype.i9= function (){var I8=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); var o9=window.opera; if (I8 || o9 || (!document.all)){return; }if (this.F!=null){ this.F.style.display="\x6eone"; }} ; 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+"_\x77\162ap\x70\x65r"); while (el.tagName.toLowerCase()!="\x68\x74ml"){if (el.dir){ this.oa=(el.dir.toLowerCase()=="\x72tl"); 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=="Right" && !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="\x72tl"; }var ob=this.i1(); this.J.style.position="abs\x6f\x6cute"; this.J.style.width=Ia-2+"px"; this.J.style.display="blo\x63\x6b"; 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+"\x70\x78"; this.J.style.top=y+"\x70\170"; this.i8(x+"p\x78",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.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="\x6eon\x65"; 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("\x48R")); }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)!="\x75\x6edefined"){return encodeURIComponent(this.ih(s)); }if (escape){return escape(this.ih(s)); }} ; RadComboBox.prototype.ih= function (text){if (typeof(text)!="numb\x65\x72"){return text.replace(/\x27/g,"\x26\163\x71\x75ote"); }} ; RadComboBox.prototype.Ih= function (){if (typeof(XMLHttpRequest)!="undefined"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="undefined"){return new ActiveXObject("\x4dicro\x73\x6fft.X\x4d\x4cHTT\x50"); }} ; RadComboBox.prototype.oi= function (Oi,ii,Ii,oj){Oi=Oi.replace(/\x27/g,"\x26squote"); var url=this.LoadOnDemandUrl+"&text="+this.lh(Oi); url=url+"\x26combo\x54\x65xt="+this.lh(ii); url=url+"&comboValu\x65\x3d"+this.lh(Ii); url=url+"\x26skin="+this.lh(this.Skin); if (oj){url=url+"&itemCount="+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"\x26exter\x6e\x61l=tru\x65"; }if (this.ClientDataString!=null){url+="&\x63\x6cientDat\x61\x53tri\x6e\x67="+this.lh(this.ClientDataString); }url=url+"&tim\x65\x53tamp="+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("GET",lj, true); xmlRequest.send(""); }} ; RadComboBox.prototype.Ij= function (ok,oj,Oi,keyCode,status,url){if (status==500){alert("\x72.a.d.com\x62\x6fbox:\x20\x53er\x76\145\x72 error \x69\156 \x74he \x49temsRe\x71uested\x20event\x20\150\x61\156d\x6cer, \x70res\x73 ok \x74o vi\x65w th\x65 res\x75lt."); document.body.innerHTML=ok; return; }if (status==404){alert("r.a.d.combob\x6fx: Load \x4f\x6e De\x6d\x61nd \x50\141\x67\x65 n\x6f\164 \x66\x6fun\x64\072\x20"+url); var Ok="\x72\x2ea.d.com\x62\x6fbox:\x20\x4coa\x64\x20On \x44\x65man\x64\040\x50age no\x74\040\x66\x6fun\x64: "+url+"\x3cbr/>"; Ok+="Please\x2c\x20try u\x73\x69ng E\x78ternalC\x61\x6clBa\x63\x6bPa\x67\145 \x74\157 \x6d\141p\x20to th\x65\040\x65\170a\x63t lo\x63ati\x6fn of \x74he c\x61llba\x63kpa\x67e yo\x75 ar\x65 usi\x6eg.";document.body.innerHTML=Ok; return; }eval("var callB\x61\x63kDa\x74\x61 = "+ok+";"); 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+"\137\x4c\x6fadingD\x69\x76")); 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("charac\x74er",On); oo.moveEnd("character",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\x4c\x6fadingD\x69\x76")){document.getElementById(this.DropDownID).innerHTML="<\x64\x69v id="+this.ClientID+"\x5fLoadingDi\x76"+"\x20class\x3d\x27"+this.LoadingMessageCssClass+" \047>"+this.LoadingMessage+"</d\x69\x76>"+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="defaul\x74"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; } ; RadComboBox.prototype.ip= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="\x68\141nd"; 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+"\x28Rad\x43\x6fmboBo\x78\x47lob\x61lFirstP\x61\162a\x6d"; s=s+"\x2cRadComb\x6f\x42oxGl\x6f\x62al\x53\x65con\x64\x50ara\x6d"; s=s+",RadComboBo\x78\x47loba\x6c\x54hi\x72\x64Par\x61\x6d"; s=s+"\x29;"; 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 "showdropd\x6fwn": this.oq(eventArgs); this.ShowDropDown(); break; case "hidedropdo\x77\x6e": this.oq(eventArgs); this.HideDropDown(); break; case "toggl\x65\x64ropdo\x77\x6e": this.oq(eventArgs); this.ToggleDropDown(); break; case "\x6douseover":if (le!=null)this.Oe(le); break; case "mouseout":if (le!=null)this.ie(le); break; case "keypress": this.og(this,eventArgs); break; case "keydo\x77\x6e": this.Oh(eventArgs); break; case "c\x6c\x69ck": this.HandleClick(eventArgs); break; case "\x69nputclick": this.oq(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "inp\x75\x74imageo\x75\x74": this.Io(); break; case "inputima\x67\x65hove\x72": this.Op(); break; case "m\x6f\x72eresult\x73\x69mag\x65\143\x6cick": this.oq(eventArgs); this.Ip(); break; case "\x6dorere\x73\x75ltsim\x61\x67eho\x76\x65r": this.ip(); break; case "mor\x65\x72esultsi\x6d\x61geou\x74": 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=="CSS1Compat"){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+"px"; }}} ; function rcbDispatcher(N,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[N]; }catch (e){}if (typeof(comboInstance)=="u\x6e\x64\145\x66ined" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="undef\x69\x6eed"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var Iq=(navigator.appName=="\x4dicrosoft \x49\x6eter\x6e\x65t\x20\105x\x70\x6core\x72") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); var I8=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); if (Iq || I8){document.write("\x3c"+"link"+"\x20rel=\047\x73tyles\x68\x65et\x27\x20typ\x65\075\x27\x74ext\x2fcss\x27\040h\x72ef=\047"+I+"\x27>"); }else {var A=document.createElement("LINK"); A.rel="styleshee\x74"; A.type="t\x65\x78t/css"; A.href=I; document.getElementById(o+"\x53tyleShe\x65\x74Hold\x65\x72").appendChild(A); }} ;
