if (typeof(window.RadControlsNamespace)=="\x75\x6edefined"){window.RadControlsNamespace=new Object(); } ; RadControlsNamespace.AppendStyleSheet= function (O,o,I){if (!I){return; }if (!O){document.write("<"+"link"+" rel=\047styles\x68\145e\x74\x27 \x74\171p\x65\x3d\047\x74ext/\x63ss\047\040h\x72ef=\047"+I+"\047\x20/>"); }else {var A=document.createElement("LINK"); A.rel="\x73tylesheet"; A.type="\x74\145xt/\x63\x73s"; 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+"\x5fDropDown"); 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+"_D\x72opDown").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+"_\x44\x72\x6fpDow\x6e"; this.InputID=N+"_Input"; this.ImageID=N+"_\x49\x6dage"; this.DropDownPlaceholderID=N+"\x5fDropDown\x50\x6caceh\x6f\x6cd\x65\x72"; this.MoreResultsBoxID=N+"_MoreResul\x74\x73Box"; this.MoreResultsBoxImageID=N+"_MoreR\x65\x73ultsB\x6f\x78Imag\x65"; this.MoreResultsBoxMessageID=N+"_MoreResul\x74\x73BoxMe\x73\x73ag\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+"\x5ftext"); this.h=document.getElementById(this.ClientID+"\x5f\166a\x6c\x75e"); 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.SelectOnTab= true; this.PostBackReference=null; this.LoadingMessage="Loadin\x67\x2e.."; this.ScrollDownImage=null; this.ScrollDownImageDisabled=null; this.F=null; this.RadComboBoxImagePosition="Rig\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="\103om\x62\x6fBoxLo\x61\x64ingM\x65ssage"; 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="\x43lassi\x63"; 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("onclick",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("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("\x66ocus",this.I0, false); }document.getElementById(this.InputID).setAttribute("autocomple\x74\x65","\x6fff"); document.getElementById(this.DropDownPlaceholderID).onselectstart= function (){return false; } ; if (typeof(RadCallbackNamespace)!="\x75\156d\x65\x66ined"){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("\x6fnloa\x64", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } ); }else if (!l1){ this.O1(document.getElementById(this.InputID)); }}}if (window.attachEvent){window.attachEvent("onunload", function (){comboInstance.M(); } ); }else {window.addEventListener("\x75nload", function (){comboInstance.M(); } , false); }} ; RadComboBox.prototype.ClearItems= function (){ this.Items=[]; document.getElementById(this.DropDownID).innerHTML=""; } ; RadComboBox.prototype.GetViewPortSize= 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=="\x43SS1Comp\x61\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.I1= 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!="\102\117DY" && 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!="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("\x6f\x6e\x63lick",this.O0); }else {document.removeEventListener("\x63lick",this.O0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\157\x6e\x62lur",this.l0); }else {document.getElementById(this.InputID).removeEventListener("blur",this.l0, false); }if (document.detachEvent){document.getElementById(this.InputID).detachEvent("\x6fnfocus",this.I0); }else {document.getElementById(this.InputID).removeEventListener("focus",this.I0, false); }if (window.removeEventListener){window.removeEventListener("\x6c\x6fad", function (){comboInstance.O1(document.getElementById(comboInstance.InputID)); } , false); }var input=document.getElementById(this.InputID); if (input!=null)input.onblur=null; input=null; var O2=document.getElementById(this.DropDownPlaceholderID); if (O2!=null){O2.onselectstart=null; }O2=null; }catch (e){}} ; RadComboBox.prototype.Initialize= function (l2,Z){ this.i2(l2); this.I2(Z); this.o3(); this.O3(); } ; RadComboBox.prototype.i2= function (l2){for (var z in l2){ this[z]=l2[z]; }} ; RadComboBox.prototype.o3= function (){ this.ItemCssClass="\x43o\x6d\x62oBoxI\x74\x65m_"+this.Skin; this.ItemCssClassHover="ComboB\x6f\x78ItemH\x6f\x76er_"+this.Skin; this.ItemCssClassDisabled="ComboBoxIt\x65\x6dDisa\x62\x6ced\x5f"+this.Skin; this.ImageCssClass="\x43\157\x6d\x62oBoxI\x6d\x61ge_"+this.Skin; this.ImageCssClassHover="\x43omboB\x6f\x78Image\x48\x6fver\x5f"+this.Skin; this.InputCssClass="\x43omboBoxInp\x75\x74_"+this.Skin; this.InputCssClassHover="ComboBoxIn\x70\x75tHov\x65\x72_"+this.Skin; this.LoadingMessageCssClass="ComboBoxLoa\x64\x69ngMe\x73\x73ag\x65\x5f"+this.Skin; } ; RadComboBox.prototype.R= function (item){if (item!=null){ this.l3(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)!="\x66u\x6e\x63tion" && !(typeof(Page_ClientValidate)!="function" || Page_ClientValidate())){return; }}eval(this.PostBackReference); }} ; RadComboBox.prototype.i0= function (e){var I3=this.SelectedItem; var o4=this.HighlightedItem; if (I3!=null && o4!=null && I3!=o4){if (this.O4(this.OnClientSelectedIndexChanging,o4,e)== false){return; } 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.O4(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.O5= function (){var l5=document.getElementById(this.L); while (l5.tagName!="\x46\x4fRM"){l5=l5.parentNode; }return l5; } ; RadComboBox.prototype.i5= function (){var O2=document.getElementById(this.DropDownPlaceholderID); var I5=O2.getElementsByTagName("in\x70\x75t"); return I5.length>0; };RadComboBox.prototype.o6= function (){if ((!document.readyState || document.readyState=="\x63omplete") && (!this.D)){var parentElement=document.body; if (this.i5()){parentElement=this.O5(); }var O2=document.getElementById(this.L).getElementsByTagName("\x64iv")[0]; O2.parentNode.removeChild(O2); O2.style.marginLeft="\x30"; var O6=document.getElementById(this.DropDownPlaceholderID); if (O6){O6.parentNode.removeChild(O6); }if (parentElement.firstChild){parentElement.insertBefore(O2,parentElement.firstChild); }else {parentElement.appendChild(O2); } 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.l3= 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.I2= 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.O3= function (){if (this.SelectedItem!=null){ this.SelectedItem.Highlight(); }else {var I7; var o8=this.GetValue(); I7=this.FindItemByValue(o8); if (I7==null){var l7=this.GetText(); 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("\157\x6elo\x61\x64", function (){comboInstance.ShowDropDown(); } ); }else {window.addEventListener("\x6c\x6fad", function (){comboInstance.ShowDropDown(); } , false); }}} ; RadComboBox.prototype.O8= function (Z,l8){if (!l8){ 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.I2(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()!="\102O\x44\x59" && parent.tagName.toUpperCase()!="\x48TML"){o2[0]-=parent.scrollLeft; o2[1]-=parent.scrollTop; parent=parent.offsetParent; }}else {parent=el.parentNode; while (parent && parent.tagName.toUpperCase()!="\x42ODY" && parent.tagName.toUpperCase()!="\x48\124ML"){o2[0]-=parent.scrollLeft; o2[1]-=parent.scrollTop; parent=parent.parentNode; }}return o2; } ; RadComboBox.prototype.I8= function (x,y){if (document.readyState && document.readyState!="\x63omplete"){return; }var o9=(navigator.userAgent.toLowerCase().indexOf("safa\x72\x69")!=-1); var O9=window.opera; if (o9 || O9 || (!document.all)){return; }if (this.F==null){ this.F=document.createElement("IFRAME"); this.F.src="\x6aavascr\x69\x70t:\x27\x27"; 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 l9=this.J.offsetWidth; var i9=this.J.offsetHeight; this.F.style.width=l9+"px"; this.F.style.height=i9+"\x70x"; this.F.style.display=""; } ; RadComboBox.prototype.I9= function (){var o9=(navigator.userAgent.toLowerCase().indexOf("\x73afari")!=-1); var O9=window.opera; if (o9 || O9 || (!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+"_wrapper"); while (el.tagName.toLowerCase()!="\x68tml"){if (el.dir){ this.Oa=(el.dir.toLowerCase()=="\x72tl"); return; }el=el.parentNode; } this.Oa= false; };RadComboBox.prototype.ShowDropDown= function (){if (this.O4(this.OnClientDropDownOpening,this )== false){return; } this.oa(); this.o6(); var la; (this.RadComboBoxImagePosition=="Right" && !this.Oa)?la=this.K:la=document.getElementById(this.ImageID); var position=this.i8(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="rtl"; }var ob=this.GetViewPortSize(); this.J.style.position="\x61b\x73\x6flute"; if (window.netscape || window.opera){Ia-=2; } this.J.style.width=Ia+"\x70x"; this.J.style.display="\142\x6c\157ck"; 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+"px",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.I1(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.O4(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.O4(this.OnClientBlur,this );};RadComboBox.prototype.o5= function (){ this.O4(this.OnClientFocus,this );};function trace(lc){document.body.appendChild(document.createTextNode(lc)); document.body.appendChild(document.createElement("HR")); }RadComboBox.prototype.ToggleDropDown= function (){ (this.DropDownVisible)?this.HideDropDown(): this.ShowDropDown(); } ; RadComboBox.prototype.ic= function (Ic){if (Ic){while (Ic!=null){if (Ic.id && this.od(Ic.id)){return Ic; }Ic=Ic.parentNode; }}return null; } ; RadComboBox.prototype.od= function (Od){for (var i=0; i<this.Items.length; i++){if (this.Items[i].ClientID==Od){return true; }}return false; } ; RadComboBox.prototype.ld= 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 (Oe){Oe.Highlight(); } ; RadComboBox.prototype.le= function (Oe){Oe.UnHighlight(); } ; RadComboBox.prototype.l4= function (eventArgs){var ie=this.HighlightedItem; if (ie!=null){if (this.O4(this.OnClientSelectedIndexChanging,ie,eventArgs)== false){return; }ie.Select(); this.O4(this.OnClientSelectedIndexChanged,ie,eventArgs); } this.HideDropDown(); } ; RadComboBox.prototype.HandleClick= function (eventArgs){ this.l4(eventArgs); } ; RadComboBox.prototype.Ie= 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.Of= 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.If= function (comboInstance,eventArgs){ this.O4(this.OnClientKeyPressing,this,eventArgs); var keyCode=eventArgs.keyCode; if (keyCode==46 && !this.EnableLoadOnDemand && !this.AllowCustomText){ this.og(eventArgs); }if (keyCode==40){if (eventArgs.altKey && (!this.DropDownVisible)){ this.ShowDropDown(); return; }var index=0; if (this.HighlightedItem!=null){index=this.Ie(this.HighlightedItem.Index); }if (index>=0 && this.Items.length>0){if (this.O4(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 (keyCode==27 && this.DropDownVisible){ this.HideDropDown(); return; }if (keyCode==38){if (eventArgs.altKey && this.DropDownVisible){ this.HideDropDown(); return; }var index=-1; if (this.HighlightedItem!=null){index=this.Of(this.HighlightedItem.Index); }if (index>=0){if (this.O4(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 ((keyCode==13 || keyCode==9) && this.DropDownVisible){if (keyCode==13){ this.og(eventArgs); }if (!this.SelectOnTab && keyCode==9){if (this.AutoPostBack){ this.Q(); } this.HideDropDown(); return; } this.l4(); return; }if (keyCode==9 && !this.DropDownVisible){ this.Oc(); return; }if (keyCode==35 || keyCode==36 || keyCode==37 || keyCode==39){return; }if (this.EnableLoadOnDemand && (!eventArgs.altKey) && (!eventArgs.ctrlKey) && (!(keyCode==16))){if (!this.DropDownVisible){ this.ShowDropDown(); } this.Og( false ,keyCode); return; }if ((keyCode<32) || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123) || (eventArgs.altKey== true)){return; }var lg=this ; window.setTimeout( function (){lg.HighlightMatches();} ,20); } ; RadComboBox.prototype.ig= function (eventArgs){if (eventArgs.preventDefault){if (eventArgs.keyCode==13 || (eventArgs.keyCode==32 && (!this.EnableLoadOnDemand))){eventArgs.preventDefault(); }}} ; RadComboBox.prototype.Ig= function (s){if (typeof(encodeURIComponent)!="u\x6ede\x66\x69ned"){return encodeURIComponent(this.oh(s)); }if (escape){return escape(this.oh(s)); }} ; RadComboBox.prototype.oh= function (text){if (typeof(text)!="number"){return text.replace(/\x27/g,"&\x73\x71uote"); }} ; RadComboBox.prototype.Oh= function (){if (typeof(XMLHttpRequest)!="\x75ndefined"){return new XMLHttpRequest(); }if (typeof(ActiveXObject)!="u\x6e\x64efined"){return new ActiveXObject("\x4dicrosoft\x2e\x58MLH\x54\x54P"); }} ; RadComboBox.prototype.lh= function (ih,Ih,oi,Oi){ih=ih.replace(/\x27/g,"\x26squote"); var url=window.unescape(this.LoadOnDemandUrl)+"\x26text="+this.Ig(ih); url=url+"&comboTex\x74\x3d"+this.Ig(Ih); url=url+"\046\x63omboValue\x3d"+this.Ig(oi); url=url+"&\x73\x6bin="+this.Ig(this.Skin); if (Oi){url=url+"\x26itemCount="+this.Items.length; }if (this.ExternalCallBackPage!=null){url=url+"\x26external\x3d\x74rue"; }if (this.ClientDataString!=null){url+="\x26clientDataS\x74\x72ing\x3d"+this.Ig(this.ClientDataString); }url=url+"\x26timeStamp="+encodeURIComponent((new Date()).getTime()); return url; } ; RadComboBox.prototype.ii= function (Oi,text,keyCode){if (!this.g){ this.g= true; var Ih=this.GetText(); var oi=this.GetValue(); var ih=(text)?text:Ih; var Ii=this.lh(ih,Ih,oi,Oi); var oj=this ; var xmlRequest=this.Oh(); xmlRequest.onreadystatechange= function (){if (xmlRequest.readyState!=4)return; oj.Oj(xmlRequest.responseText,Oi,ih,keyCode,xmlRequest.status,Ii); } ; xmlRequest.open("GET",Ii, true); xmlRequest.send(""); }} ; RadComboBox.prototype.Oj= function (lj,Oi,ih,keyCode,status,url){if (status==500){alert("\x72.a.d.co\x6d\x62obox\x3a\x20Se\x72ver er\x72\x6fr i\x6e\040\x74\x68e Item\x73Reques\x74ed ev\x65\156t\x20handl\x65r, p\x72ess \x6fk t\x6f vie\x77 the\x20resu\x6ct."); document.body.innerHTML=lj; return; }if (status==404){alert("r.a.d.\x63\x6fmbob\x6f\x78: L\x6f\141d\x20\117n\x20\x44ema\x6ed Pag\x65 not f\x6f\165n\x64: "+url); var ij="\x72.a.d\x2e\x63ombob\x6f\x78: L\x6f\141d\x20\x4fn \x44\x65ma\x6ed Page\x20not fo\x75\156d\x3a "+url+"<\x62\x72/>"; ij+="Please, tr\x79\x20usin\x67\x20Ext\x65\162n\x61\x6cCa\x6c\x6cBa\x63kPage \x74o map \x74o the\x20\145x\x61ct lo\x63ation\x20of t\x68e ca\x6clbac\x6bpage\x20you \x61re \x75sing\x2e";document.body.innerHTML=ij; return; }try {eval("var\x20\x63allBac\x6b\x44ata\x20= "+lj+"\x3b"); }catch (e){alert("\x72.a.d.combo\x62\x6fx: \x6c\x6fad\x20\x6fn d\x65\155a\x6e\144 \x63allba\x63\x6b e\x72ror. \x50\162e\x73s Ent\x65r for\x20more\x20info\x72mati\x6fn"); var ij="\x49f r.a\x2e\x64.comb\x6f\x62ox \x69\163 \x6e\x6ft \x69\x6eit\x69ally v\x69sible \x6f\156 \x79our A\x53\120\x58\040\x70age, \x79ou \x6day n\x65ed t\x6f use\x20stre\x61mer\x73 (th\x65 Ex\x74ern\x61llC\x61llB\x61ckP\x61ge\x20pro\x70er\x74y)"; ij+="<br/>P\x6c\x65ase, \x72\x65ad \x6f\165r\x20\x6fnli\x6e\145 \x64\157\x63\165m\x65\156t\x61tion \x6f\156 \x74his p\x72oblem\x20for \x64eta\x69\154\x73"; ij+="\x3cbr/><a\x20\x68ref=\x27\150t\x74\160:\x2f\x2fww\x77\x2ete\x6cerik.\x63\157m\x2f\150e\x6cp/rad\x63\157m\x62obox/\x762%5F\x4eET2/\x3fcomb\x6f_ext\x65rnal\x63all\x62ackp\x61ge.\x68tml\x27>htt\x70://\x77ww.\x74el\x65rik\x2ecom\x2fhe\x6cp/r\x61dc\x6fmb\x6fbo\x78/v\x32%5\x46NE\x542/\x63om\x62o\x5fex\x74er\x6ea\x6cca\x6clb\x61c\x6bpa\x67e\x2eh\x74ml\x3c/\x61>";document.body.innerHTML=ij; return; }if (this.GetText()!=callBackData.Text){ this.g= false; this.Og( false ,null); return; }if (this.ShowMoreResultsBox){document.getElementById(this.MoreResultsBoxMessageID).innerHTML=callBackData.Message; }var Ij=this.Items.length; this.O8(callBackData.Items,Oi); if (Oi){document.getElementById(this.DropDownID).removeChild(document.getElementById(this.ClientID+"\x5f\x4coadin\x67\x44iv")); document.getElementById(this.DropDownID).innerHTML+=callBackData.DropDownHtml; if (this.Items[Ij+1]!=null){ this.Items[Ij+1].W(); }}else {document.getElementById(this.DropDownID).innerHTML=callBackData.DropDownHtml; } this.I8(this.J.style.left,this.J.style.top); this.O4(this.OnClientItemsRequested,this,ih,Oi); this.g= false; var ok=this.FindItemByText(this.GetText()); if (ok!=null){ok.Highlight(); ok.W(); }if (!keyCode)return; if (keyCode<32 || (keyCode>=33 && keyCode<=46) || (keyCode>=112 && keyCode<=123)){return; } this.HighlightMatches(); };RadComboBox.prototype.Ok= function (l7){var O7=-1; if (this.AutoCompleteSeparator!=null){O7=this.l6(l7); }var lk=l7.substring(O7+1,l7.length); return lk; } ; RadComboBox.prototype.ik= function (Ik,ll){if (!this.IsCaseSensitive){return (Ik.toLowerCase()==ll.toLowerCase()); }else {return (Ik==ll); }} ; RadComboBox.prototype.HighlightMatches= function (){if (!this.MarkFirstMatch)return; var l7=this.GetText(); var lk=this.Ok(l7); if (lk.length==0){return; }for (var i=0; i<this.Items.length; i++){var il=this.Items[i].Text; if (il.length>=lk.length){var Il=il.substring(0,lk.length); if (this.ik(Il,lk)){var O7=-1; if (this.AutoCompleteSeparator!=null){O7=this.l6(l7); }var I4=l7.substring(0,O7+1)+il; this.SetText(I4); this.SetValue(this.Items[i].Value); this.i3(this.Items[i].Index); if (this.O4(this.OnClientSelectedIndexChanging,this.Items[i],null)== false){return; } this.Items[i].Highlight(); this.Items[i].W(); var om=O7+lk.length+1; var Om=I4.length-om; if (document.all){var Im=document.getElementById(this.InputID).createTextRange(); Im.moveStart("ch\x61rac\x74\x65r",om); Im.moveEnd("characte\x72",Om); Im.select(); }else {document.getElementById(this.InputID).setSelectionRange(om,om+Om); }return; }else { this.SetValue(""); this.i3(-1); if (this.HighlightedItem!=null){ this.HighlightedItem.UnHighlight(); }}}} this.SetValue(""); this.i3("\055\x31"); if (!this.AllowCustomText){var On=l7.substring(0,l7.length-1); if (this.d!=null){ this.SetText(this.d); return; } this.SetText(On); this.HighlightMatches(); }} ; RadComboBox.prototype.Og= function (l8,keyCode){if (!this.g){var comboInstance=this ; if (this.f){window.clearTimeout(this.f); this.f=0; } this.f=window.setTimeout( function (){comboInstance.ib(l8,keyCode);} ,this.ItemRequestTimeout); }} ; RadComboBox.prototype.ib= function (l8,keyCode){var ih=document.getElementById(this.InputID).value; if (ih=="")ih= false; if (this.O4(this.OnClientItemsRequesting,this,ih,l8)== false){return; }if (!this.g){if (!document.getElementById(this.ClientID+"\x5fLo\x61\x64ingDiv")){document.getElementById(this.DropDownID).innerHTML="<div\x20\x69d=\047"+this.ClientID+"_\x4c\x6fadingD\x69\x76\047"+" class=\x27"+this.LoadingMessageCssClass+" \047\x3e"+this.LoadingMessage+"</div>"+document.getElementById(this.DropDownID).innerHTML; }}var comboInstance=this ; window.setTimeout( function (){comboInstance.ii(l8,ih,keyCode);} ,20); } ; RadComboBox.prototype.RequestItems= function (text,l8){ this.ii(l8,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.In= function (){document.getElementById(this.InputID).className=this.InputCssClass; var oo=document.getElementById(this.ImageID); if (oo){oo.className=this.ImageCssClass; }} ; RadComboBox.prototype.Oo= function (){document.getElementById(this.InputID).className=this.InputCssClassHover; var oo=document.getElementById(this.ImageID); if (oo){oo.className=this.ImageCssClassHover; }} ; RadComboBox.prototype.Io= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="default"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImageDisabled; } ; RadComboBox.prototype.op= function (){document.getElementById(this.MoreResultsBoxImageID).style.cursor="hand"; document.getElementById(this.MoreResultsBoxImageID).src=this.ScrollDownImage; } ; RadComboBox.prototype.Op= function (){ this.UnHighlightAll(); this.Og( true ,null); document.getElementById(this.InputID).focus(); } ; RadComboBox.prototype.lp= 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.O4= function (ip,a,b,Ip){if (!ip)return true; RadComboBoxGlobalFirstParam=a; RadComboBoxGlobalSecondParam=b; RadComboBoxGlobalThirdParam=Ip; var s=ip; s=s+"\050RadComboBo\x78GlobalF\x69\x72st\x50aram"; s=s+"\x2c\122adC\x6f\x6dboBo\x78\x47lob\x61\154S\x65\x63ond\x50\141r\x61m"; s=s+",\x52\x61dComboB\x6f\x78Glo\x62\x61lT\x68\x69rd\x50\x61ra\x6d"; s=s+");"; return eval(s); } ; RadComboBox.prototype.HandleEvent= function (eventName,eventArgs){var Oe; var srcElement=(document.all)?eventArgs.srcElement:eventArgs.target; var item=this.ic(srcElement); if (item!=null){Oe=this.ld(item); }if (!this.Enabled){return; }switch (eventName){case "s\x68owdropdown": this.lp(eventArgs); this.ShowDropDown(); break; case "\x68ided\x72\x6fpdown": this.lp(eventArgs); this.HideDropDown(); break; case "toggledro\x70\x64own": this.lp(eventArgs); this.ToggleDropDown(); break; case "mouseo\x76\x65r":if (Oe!=null)this.oe(Oe); break; case "\x6d\157use\x6f\x75t":if (Oe!=null)this.le(Oe); break; case "\x6b\x65ypress": this.If(this,eventArgs); break; case "\x6b\x65ydown": this.ig(eventArgs); break; case "\x63\x6cick": this.HandleClick(eventArgs); break; case "i\x6e\x70utclick": this.lp(eventArgs); document.getElementById(this.InputID).select(); this.ShowDropDown(); break; case "\x69nputimag\x65\x6fut": this.In(); break; case "inputimage\x68\x6fver": this.Oo(); break; case "morer\x65\x73ultsi\x6d\x61gecl\x69ck": this.lp(eventArgs); this.Op(); break; case "moreresul\x74\x73imag\x65\x68ove\x72": this.op(); break; case "\x6doreres\x75\x6ctsima\x67\x65ou\x74": this.Io(); break; }} ; RadComboBox.prototype.Enable= function (){document.getElementById(this.InputID).disabled= false; this.Enabled= true; } ; RadComboBox.prototype.Disable= function (){document.getElementById(this.InputID).disabled="\144\x69\163abl\x65\x64"; this.Enabled= false; this.H.value=this.GetText(); } ; RadComboBox.prototype.O1= function (oq){{var computedStyle=null; if (oq.currentStyle){computedStyle=oq.currentStyle; }else if (document.defaultView && document.defaultView.getComputedStyle){computedStyle=document.defaultView.getComputedStyle(oq,null); }else {return; }var height=parseInt(computedStyle.height); var width=parseInt(oq.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=="CS\x531Com\x70\x61t"){if (!isNaN(height)){oq.style.height=height-paddingTop-paddingBottom-borderTop-borderBottom+"\x70x"; }}if (!isNaN(width) && width){var Oq=0; var oo=oq.parentNode.getElementsByTagName("\x69mg")[0]; if (oo){Oq=oo.offsetWidth; }if (document.compatMode && document.compatMode=="\x43SS1Com\x70\x61t"){oq.style.width=width-Oq-paddingLeft-paddingRight-borderLeft-borderRight+"px"; if (parseInt(oq.style.width)!=oq.offsetWidth){oq.style.width=parseInt(oq.style.width)+parseInt(oq.style.width)-oq.offsetWidth+"\x70x"; }}else {oq.style.width=width-Oq; }}}} ; function rcbDispatcher(N,eventName,eventArgs){var comboInstance=null; try {comboInstance=window[N]; }catch (e){}if (typeof(comboInstance)=="\x75ndefi\x6e\x65d" || comboInstance==null){return; }if (typeof(comboInstance.HandleEvent)!="\x75ndef\x69\x6eed"){comboInstance.HandleEvent(eventName,eventArgs); }} ; function rcbAppendStyleSheet(o,I){var lq=(navigator.appName=="\x4dicrosoft In\x74\x65rnet\x20\105\x78plor\x65\x72") && ((navigator.userAgent.toLowerCase().indexOf("\x6dac")!=-1) || (navigator.appVersion.toLowerCase().indexOf("mac")!=-1)); var o9=(navigator.userAgent.toLowerCase().indexOf("safar\x69")!=-1); if (lq || o9){document.write("\x3c"+"lin\x6b"+"\x20\x72el=\047\x73tyl\x65\x73he\x65\164\047\x20typ\x65\075\x27text\x2fcss\047\x20hre\x66=\047"+I+"\047\x3e"); }else {var A=document.createElement("LINK"); A.rel="style\x73\x68eet"; A.type="text/css"; A.href=I; document.getElementById(o+"St\x79\x6ceSheet\x48\x6flder").appendChild(A); }} ;
if (typeof(Sys) != "undefined"){if (Sys.Application != null && Sys.Application.notifyScriptLoaded != null){Sys.Application.notifyScriptLoaded();}}

