if (typeof(window.RadControlsNamespace)=="undefin\x65\x64"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("\x3c"+"link"+" \x72\x65l=\047style\x73\150ee\x74\047\x20\x74yp\x65\x3d\047\x74e\x78t/css\x27 href\x3d\047"+I+"\047\x20/>"); }else {var A=document.createElement("\x4cINK"); A.rel="st\x79\x6cesheet"; A.type="\x74\x65xt/css"; A.href=I; document.getElementById(o+"\x53tyleShee\x74\x48old\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+"_D\x72\157p\x44\x6fwn"); 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+"_DropD\x6fwn").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+"_DropD\x6f\x77\x6e"; this.InputID=N+"\x5fInput"; this.ImageID=N+"_Image"; this.DropDownPlaceholderID=N+"\x5fDropDow\x6e\x50lace\x68\x6fld\x65\162"; this.MoreResultsBoxID=N+"\x5fMoreR\x65\x73ults\x42\x6fx"; this.MoreResultsBoxImageID=N+"_Mor\x65\x52esults\x42\x6fxIm\x61\147e"; this.MoreResultsBoxMessageID=N+"_Mo\x72\x65Result\x73\x42oxM\x65\163sa\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+"\x5ftext"); this.h=document.getElementById(this.ClientID+"\x5f\166alu\x65"); this.G=document.getElementById(this.ClientID+"_\x69\x6edex"); 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="Load\x69\x6eg..."; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.F=null; this.RadComboBoxImagePosition="Right"; this.ItemCssClass=null; this.ItemCssClassHover=null; this.ItemCssClassDisabled=null; this.ImageCssClass=null; this.ImageCssClassHover=null; this.InputCssClass=null; this.InputCssClassHover=null; this.LoadingMessageCssClass="\x43\157mbo\x42\x6fxLoa\x64\x69ngM\x65\163sa\x67\145"; 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="Classic"; 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("\x63lick",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("onf\x6f\x63us",this.I0); }else {document.getElementById(this.InputID).addEventListener("focus",this.I0, false); }document.getElementById(this.InputID).setAttribute("\x61utocomplet\x65","\x6fff"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="undefine\x64"){window.setTimeout( function (){comboInstance.O1(document.getElementById(comboInstance.InputID));} ,100); }else {var l1= false; if (window.addEventListener){ this.O1(document.getElementById(this.InputID));}else {if (document.getElementById(this.ClientID).offsetWidth==0){window.attachEvent("onlo\x61\x64", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } ); }else if (!l1){ this.O1(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("\x6fnunloa\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=="C\x53S1Compat"){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!="\x42O\x44\x59" && parent.tagName!="HTML"){O2.x-=parent.scrollLeft; O2.y-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName!="BOD\x59" && parent.tagName!="HTML"){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("onclic\x6b",this.O0); }else {document.removeEventListener("\x63lick",this.O0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("onb\x6c\x75r",this.l0); }else {document.getElementById(this.InputID).removeEventListener("blur",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("load", 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="Comb\x6fBoxIte\x6d\x5f"+this.Skin; this.ItemCssClassHover="Co\x6d\x62oBoxIte\x6d\x48ove\x72_"+this.Skin; this.ItemCssClassDisabled="Com\x62\x6fBoxIte\x6d\x44isab\x6ced_"+this.Skin; this.ImageCssClass="\x43omboBoxIm\x61\x67e_"+this.Skin; this.ImageCssClassHover="\x43\157m\x62\x6fBoxIm\x61\x67eHo\x76er_"+this.Skin; this.InputCssClass="ComboBo\x78\x49nput_"+this.Skin; this.InputCssClassHover="ComboBoxIn\x70\x75tHov\x65\x72_"+this.Skin; this.LoadingMessageCssClass="\x43\x6fmboBox\x4c\x6fadin\x67\x4des\x73\x61ge_"+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("-\x31"); }} ; RadComboBox.prototype.Q= function (){if (this.AutoPostBack){if (this.CausesValidation){if (typeof(WebForm_DoPostBackWithOptions)!="func\x74\x69on" && !(typeof(Page_ClientValidate)!="function" || 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){if (O4!=null){if (this.o5(this.OnClientSelectedIndexChanging,O4,e)== false){return; } this.Q(); }}else { this.r= false; }}} ; RadComboBox.prototype.o1= function (e){ this.B=this.GetText(); this.O5(); };RadComboBox.prototype.l5= function (){var i5=document.getElementById(this.L); while (i5.tagName!="FO\x52M"){i5=i5.parentNode; }return i5; } ; RadComboBox.prototype.I5= function (){var l2=document.getElementById(this.DropDownPlaceholderID); var o6=l2.getElementsByTagName("\x69nput"); return o6.length>0; };RadComboBox.prototype.O6= function (){if ((!document.readyState || document.readyState=="c\x6f\x6dplete") && (!this.D)){var parentElement=document.body; if (this.I5()){parentElement=this.l5(); }var l2=document.getElementById(this.L).getElementsByTagName("\x64iv")[0]; l2.parentNode.removeChild(l2); l2.style.marginLeft="0"; var l6=document.getElementById(this.DropDownPlaceholderID); if (l6){l6.parentNode.removeChild(l6); }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.i6= function (text){var lastIndex=-1; for (var i=0; i<this.AutoCompleteSeparator.length; i++){var I6=this.AutoCompleteSeparator.charAt(i); var o7=text.lastIndexOf(I6); if (o7>lastIndex){lastIndex=o7; }}return lastIndex; } ; RadComboBox.prototype.i3= function (O7){var l7=-1; var i7=this.GetText(); if (this.AutoCompleteSeparator!=null){l7=this.i6(i7); }var I4=i7.substring(0,l7+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.AllowCustomText){ this.SetText(item.Text); this.SetValue(item.Value); }}} ; RadComboBox.prototype.l3= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var o8; var O8=this.GetValue(); o8=this.FindItemByValue(O8); if (o8==null){var i7=this.GetText(); o8=this.FindItemByText(i7); }if (o8!=null){ this.SelectedItem=o8; 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.l8= function (Z,i8){if (!i8){ 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.I8= 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.toUpperCase()!="\102ODY" && parent.tagName.toUpperCase()!="HT\x4d\x4c"){O2[0]-=parent.scrollLeft; O2[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="BODY" && parent.tagName.toUpperCase()!="HTML"){O2[0]-=parent.scrollLeft; O2[1]-=parent.scrollTop; parent=parent.parentNode; }}return O2; } ; RadComboBox.prototype.o9= function (x,y){if (document.readyState && document.readyState!="complet\x65"){return; }var O9=(navigator.userAgent.toLowerCase().indexOf("safa\x72i")!=-1); var l9=window.opera; if (O9 || l9 || (!document.all)){return; }if (this.F==null){ this.F=document.createElement("IFRAME"); this.F.src="javascript:\x27\x27"; this.F.id=this.ClientID+"\x5fOverlay"; this.F.frameBorder=0; this.F.style.position="\x61bsolute"; this.F.style.display="non\x65"; 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 i9=this.J.offsetWidth; var I9=this.J.offsetHeight; this.F.style.width=i9+"px"; this.F.style.height=I9+"p\x78"; this.F.style.display=""; } ; RadComboBox.prototype.oa= function (){var O9=(navigator.userAgent.toLowerCase().indexOf("\x73\x61fari")!=-1); var l9=window.opera; if (O9 || l9 || (!document.all)){return; }if (this.F!=null){ this.F.style.display="\x6eone"; }} ; RadComboBox.prototype.Oa= 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+"\x5fwrapper"); while (el.tagName.toLowerCase()!="\x68tml"){if (el.dir){ this.la=(el.dir.toLowerCase()=="\x72\x74l"); return; }el=el.parentNode; } this.la= false; };RadComboBox.prototype.ShowDropDown= function (){if (this.o5(this.OnClientDropDownOpening,this )== false){return; } this.Oa(); this.O6(); var ia; (this.RadComboBoxImagePosition=="\x52\151\x67\x68t" && !this.la)?ia=this.K:ia=document.getElementById(this.ImageID); var position=this.I8(ia); var x=position[0]+this.OffsetX; var y=position[1]+ia.offsetHeight+this.OffsetY; var Ia=document.getElementById(this.L); ob=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.la){ this.J.dir="\x72tl"; }var Ob=this.i1(); this.J.style.position="abso\x6c\x75te"; if (window.netscape || window.opera){ob-=2; } this.J.style.width=ob+"\x70x"; this.J.style.display="block"; if (this.lb(Ob,this.J,ia)){var ib=y-this.J.offsetHeight-ia.offsetHeight; if (ib>0){y=ib; }} this.J.style.left=x+"px"; this.J.style.top=y+"px"; this.o9(x+"\x70\x78",y+"px"); 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.lb= function (Ob,t,ia){var oc=this.o2(ia).y+t.offsetHeight; return oc>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.o5(this.OnClientDropDownClosing,this )== false){return; }document.getElementById(this.DropDownPlaceholderID).style.display="\x6eone"; this.oa(); this.DropDownVisible= false; this.lc(); }} ; RadComboBox.prototype.lc= function (){ this.o5(this.OnClientBlur,this );};RadComboBox.prototype.O5= function (){ this.o5(this.OnClientFocus,this );};function ic(Ic){document.body.appendChild(document.createTextNode(Ic)); document.body.appendChild(document.createElement("H\x52")); }RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.od= function (Od){if (Od){while (Od!=null){if (Od.id && this.ld(Od.id)){return Od; }Od=Od.parentNode; }}return null; } ; RadComboBox.prototype.ld= function (oe){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==oe){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.le= function (ie){ie.Highlight(); } ; RadComboBox.prototype.Ie= function (ie){ie.UnHighlight(); } ; RadComboBox.prototype.l4= function (eventArgs){var of=this.HighlightedItem; if (of!=null){if (this.o5(this.OnClientSelectedIndexChanging,of,eventArgs)== false){return; }of.Select(); this.o5(this.OnClientSelectedIndexChanged,of,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.l4(eventArgs); } ; RadComboBox.prototype.Of= function (index){var i=index; var If= false; while (i<this.Items.length-1){i=i+1; if (this.Items[i].Enabled){If= true; break; }}if (If)return i; return index; } ; RadComboBox.prototype.og= function (index){var i=index; var If= false; while (i>0){i=i-1; if (this.Items[i].Enabled){If= true; break; }}if (If)return i; return index; } ; RadComboBox.prototype.Og= function (comboInstance,eventArgs){ this.o5(this.OnClientKeyPressing,this,eventArgs); if (eventArgs.keyCode==46){if (!this.EnableLoadOnDemand && !this.AllowCustomText){ this.lg(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.o5(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].Highlight(); this.Items[index].W(); this.R(this.Items[index]); this.lg(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.og(this.HighlightedItem.Index); }if (index>=0){if (this.o5(this.OnClientSelectedIndexChanging,this.Items[index],eventArgs)== false){return; } this.Items[index].T(); this.Items[index].Highlight(); this.R(this.Items[index]); this.lg(eventArgs); }return; }if ((eventArgs.keyCode==13 || eventArgs.keyCode==9) && this.DropDownVisible){if (eventArgs.keyCode==13){ this.lg(eventArgs); } this.l4(); return; }if (eventArgs.keyCode==9 && !this.DropDownVisible){ this.lc(); 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.ig( false ,eventArgs.keyCode); return; }var Ig=eventArgs.keyCode; if ((Ig<32) || (Ig>=33 && Ig<=46) || (Ig>=112 && Ig<=123) || (eventArgs.altKey== true)){return; }var oh=this ; window.setTimeout( function (){oh.HighlightMatches(); } ,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)!="un\x64efi\x6e\x65d"){return encodeURIComponent(this.ih(s)); }if (escape){return escape(this.ih(s)); }} ; RadComboBox.prototype.ih= function (text){if (typeof(text)!="n\x75\x6dber"){return text.replace(/\x27/g,"\x26squot\x65"); }} ; RadComboBox.prototype.Ih= function (){if (typeof(XMLHttpRequest)!="\x75ndefine\x64"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="\x75ndefin\x65\x64"){return new ActiveXObject("M\x69\x63rosoft.\x58\115\x4c\x48\x54\x54P"); }} ; RadComboBox.prototype.oi= function (Oi,ii,Ii,oj){Oi=Oi.replace(/\x27/g,"&squote"); var url=window.unescape(this.LoadOnDemandUrl)+"&text="+this.lh(Oi); url=url+"&comboTex\x74\x3d"+this.lh(ii); url=url+"\x26comboValu\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+"&external=tr\x75\145"; }if (this.ClientDataString!=null){url+="&\x63\x6cientDat\x61\123t\x72\x69ng="+this.lh(this.ClientDataString); }url=url+"\x26timeStamp="+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("\107\x45T",lj, true); xmlRequest.send(""); }} ; RadComboBox.prototype.Ij= function (ok,oj,Oi,keyCode,status,url){if (status==500){alert("r.a.d.\x63\x6fmbobo\x78\x3a Se\x72\166\x65\x72 er\x72\x6fr i\x6e t\x68\x65 I\x74\145\x6d\x73Re\x71ueste\x64\040\x65vent\x20handl\x65r,\x20pres\x73 ok \x74o vi\x65w th\x65 re\x73ult."); document.body.innerHTML=ok; return; }if (status==404){alert("r.a.d.combo\x62\x6fx: \x4c\x6fad \x4f\x6e De\x6d\x61nd \x50\141\x67e not \x66\157u\x6e\144:\x20"+url); var Ok="\x72.a.d.combob\x6f\x78: L\x6f\x61d O\x6e\x20Dem\x61\x6ed P\x61\147\x65\x20no\x74\040\x66\157u\x6ed: "+url+"\x3c\x62r/>"; Ok+="\x50lease, try \x75\x73ing\x20\x45xte\x72\x6ealC\x61\x6clB\x61\x63kP\x61ge to \x6d\141p\x20to th\x65\040\x65\170a\x63t lo\x63\141\x74ion\x20of t\x68\145\x20call\x62ack\x70age \x79ou \x61re u\x73ing\x2e";document.body.innerHTML=Ok; return; }eval("\x76ar ca\x6c\x6cBack\x44\x61ta =\x20"+ok+"\x3b"); if (this.GetText()!=callBackData.Text){ this.g= false; this.ig( false ,null); return; }if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var lk=this.Items.length; this.l8(callBackData.Items,oj); if (oj){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"\x5fLoadingDiv")); 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.o9(this.J.style.left,this.J.style.top); this.o5(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.HighlightMatches(); };RadComboBox.prototype.Ik= function (i7){var l7=-1; if (this.AutoCompleteSeparator!=null){l7=this.i6(i7); }var ll=i7.substring(l7+1,i7.length); return ll; } ; RadComboBox.prototype.il= function (Il,om){if (!this.IsCaseSensitive){return (Il.toLowerCase()==om.toLowerCase()); }else {return (Il==om); }} ; RadComboBox.prototype.HighlightMatches= function (){if (!this.MarkFirstMatch)return; var i7=this.GetText(); var ll=this.Ik(i7); 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 l7=-1; if (this.AutoCompleteSeparator!=null){l7=this.i6(i7); }var I4=i7.substring(0,l7+1)+Om; this.SetText(I4); this.SetValue(this.Items[i].Value); this.I3(this.Items[i].Index); if (this.o5(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var On=l7+ll.length+1; var In=I4.length-On; if (document.all){var oo=document.getElementById(this.InputID).createTextRange(); oo.moveStart("charact\x65\x72",On); oo.moveEnd("\x63haracter",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=i7.substring(0,i7.length-1); if (this.d!=null){ this.SetText(this.d); return; } this.SetText(Oo); this.HighlightMatches(); }} ; RadComboBox.prototype.ig= function (i8,keyCode){if (!this.g){var comboInstance=this ; if (this.f){window.clearTimeout(this.f); this.f=0; } this.f=window.setTimeout( function (){comboInstance.Ib(i8,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.Ib= function (i8,keyCode){var Oi=document.getElementById(this.InputID).value; if (Oi=="")Oi= false; if (this.o5(this.OnClientItemsRequesting,this,Oi,i8)== false){return; }if (!this.g){if (!document.getElementById(this.ClientID+"\x5f\x4c\x6fading\x44\x69v")){document.getElementById(this.DropDownID).innerHTML="\x3cdiv id=\047"+this.ClientID+"_Loadin\x67\x44iv\047"+" clas\x73\x3d\047"+this.LoadingMessageCssClass+"\x20\047>"+this.LoadingMessage+"\x3c\x2fdiv>"+document.getElementById(this.DropDownID).innerHTML; }}var comboInstance=this ; window.setTimeout( function (){comboInstance.Oj(i8,Oi,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,i8){ this.Oj(i8,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="d\x65fault"; 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.ig( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.oq= function (eventArgs){if (eventArgs.stopPropagation){eventArgs.stopPropagation(); }else {eventArgs.cancelBubble= true; }} ; RadComboBox.prototype.lg= function (eventArgs){if (eventArgs.preventDefault){eventArgs.preventDefault(); }else {eventArgs.returnValue= false; }} ; RadComboBox.prototype.o5= function (Oq,a,b,lq){if (!Oq)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=lq; var s=Oq; s=s+"\x28RadCom\x62\x6fBox\x47\154\x6fbalFir\x73tParam"; s=s+",RadCo\x6d\x62oBoxG\x6c\x6fbal\x53\145co\x6e\144Pa\x72\141m"; s=s+",RadCo\x6d\x62oBoxG\x6c\x6fbal\x54\150i\x72\x64Par\x61\x6d"; s=s+"\x29;"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var ie; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.od(srcElement); if (item!=null){ie=this.Oe(item); }if (!this.Enabled){return; }switch (eventName){case "showdropdo\x77\x6e": this.oq(eventArgs); this.ShowDropDown(); break; case "\x68\x69dedropd\x6f\x77n": this.oq(eventArgs); this.HideDropDown(); break; case "togg\x6c\x65dropdo\x77\x6e": this.oq(eventArgs); this.ToggleDropDown(); break; case "mous\x65\x6fver":if (ie!=null)this.le(ie); break; case "\x6douseout":if (ie!=null)this.Ie(ie); break; case "keypress": this.Og(this,eventArgs); break; case "keydow\x6e": this.Oh(eventArgs); break; case "\x63\x6cick": this.HandleClick(eventArgs); break; case "i\x6e\x70utclick": this.oq(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "inputi\x6d\x61geout": this.Io(); break; case "\x69nputimageh\x6f\x76er": this.Op(); break; case "\x6doreresult\x73\x69mage\x63\x6cic\x6b": this.oq(eventArgs); this.Ip(); break; case "m\x6f\x72eresul\x74\x73imag\x65\x68ov\x65\x72": this.ip(); break; case "\x6doreresul\x74\x73imag\x65\x6fut": 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="d\x69\x73abled"; this.Enabled= false; this.H.value=this.GetText(); } ; RadComboBox.prototype.O1= function (iq){{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(iq.offsetWidth); 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 (document.compatMode && document.compatMode=="C\x53\x53\x31Comp\x61\x74"){if (!isNaN(height)){iq.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"px"; }}if (!isNaN(width) && width){var Iq=0; var op=iq.parentNode.getElementsByTagName("\x69mg")[0]; if (op){Iq=op.offsetWidth; }if (document.compatMode && document.compatMode=="CSS1Compat"){iq.style.width=width-Iq-paddingLeft-paddingRight-borderLeft-borderRight+"px"; if (parseInt(iq.style.width)!=iq.offsetWidth){iq.style.width=parseInt(iq.style.width)+parseInt(iq.style.width)-iq.offsetWidth+"px"; }}else {iq.style.width=width-Iq; }}}} ; function rcbDispatcher(N,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[N]; }catch (e){}if (typeof(comboInstance)=="\x75ndefined" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="\x75ndefi\x6e\x65d"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var or=(navigator.appName=="Micro\x73\x6fft In\x74\x65rnet\x20Explor\x65\162") && ((navigator.userAgent.toLowerCase().indexOf("mac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("\x6d\x61c")!=-1)); var O9=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); if (or || O9){document.write("\x3c"+"link"+"\x20\x72el=\047stylesh\x65\x65t\047\x20ty\x70\x65=\047\x74ext\x2fcss\x27\040h\x72ef=\047"+I+"\x27>"); }else {var A=document.createElement("LINK"); A.rel="\x73tyles\x68\x65et"; A.type="text/\x63\x73s"; A.href=I; document.getElementById(o+"\x53tyleSh\x65\x65tHol\x64\x65r").appendChild(A); }} ;
if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}