function GetRadSpell(o){return window[o]; } ; if (typeof(RadSpellNamespace)=="\x75\x6edefined")RadSpellNamespace= {} ; RadSpellNamespace.RadSpell= function (t){ this.Id=t[0]; this.OnClientCheckStarted=t[1]; this.OnClientCheckFinished=t[2]; this.OnClientWordCorrected=t[3]; this.OnClientWordIgnored=t[4]; this.I2=t[5]; this.OnClientCheckCancelled=t[6]; this.OnClientDialogClosing=t[7]; this.OnClientCustomWordAdded=t[8]; this.ControlToCheck=t[9]; this.DictionaryLanguage=null; this.o3=t[10]; this.O3=t[11]; RadControlsNamespace.EventMixin.Initialize(this ); RadControlsNamespace.DomEventsMixin.Initialize(this ); this.LanguagesDropdown=document.getElementById(this.Id+RadSpellNamespace.RadSpell.LanguagesDropdownID); this.SpellCheckButton=document.getElementById(this.Id+RadSpellNamespace.RadSpell.SpellCheckButtonID); if (this.SpellCheckButton){ this.AttachDomEvent(this.SpellCheckButton,"\x63lick","StartSpe\x6c\x6cChec\x6b"); if (this.SpellCheckButton.tagName!="\x69nput"){ this.AttachDomEvent(this.SpellCheckButton,"ke\x79\x70ress","Start\x53\x70ellCh\x65\x63k"); }} this.l3= false; this.AttachEvent("OnClie\x6e\x74CheckF\x69\x6eish\x65d", function (i3,I3){ this.l3= true; } ); this.AttachEvent("OnCl\x69\x65ntChec\x6b\x53tart\x65\144", function (i3,I3){ this.l3= false; } ); };RadSpellNamespace.RadSpell.LanguagesDropdownID="\x5fLanguage"; RadSpellNamespace.RadSpell.SpellCheckButtonID="_SpellCh\x65\x63k"; RadSpellNamespace.RadSpell.DialogOpenerID="_DialogO\x70\x65ner"; RadSpellNamespace.RadSpell.o4="_\x53\x70ellChec\x6b\x65d"; RadSpellNamespace.RadSpell.prototype= {StartSpellCheck:function (){var source=this.GetTextSource(); if (source!=null){ this.SpellCheck(source); }else {alert("\x43annot fi\x6e\x64 a \x54\x65xt\x53\x6furc\x65\056\x20Please\x2c set\x20the Co\x6etrolT\x6f\103h\x65ck se\x72ver-s\x69de pr\x6fpe\x72ty, \x6fr us\x65 th\x65 Set\x54extS\x6furc\x65() \x63lie\x6et-s\x69de \x6deth\x6fd."); }} ,SpellCheck:function (O4){if (this.RaiseEvent("\x4fnCl\x69\x65ntChe\x63\x6bStar\x74ed", {} )== false)return; var l4= {DictionaryLanguage: this.GetSelectedLanguage(),TextSource:O4,RadSpell: this } ; this.GetDialogOpener().Open("\123p\x65\x6clCheck\x44\x69alo\x67",l4); } ,GetSelectedLanguage:function (){if (this.DictionaryLanguage){return this.DictionaryLanguage; }if (!this.LanguagesDropdown){return null; }var i4=this.LanguagesDropdown.options[this.LanguagesDropdown.selectedIndex]; return i4!=null?i4.value:null; } ,GetTextSource:function (){if (this.I4==null){if (this.ControlToCheck){var o5=document.getElementById(this.ControlToCheck); this.SetTextSource(new HtmlElementTextSource(o5)); }else if (this.O3){ this.SetTextSource(eval(this.O3)); }}return this.I4; } ,IsSpellChecked:function (){return this.l3; } ,SetSpellChecked:function (O5){document.getElementById(this.Id+RadSpellNamespace.RadSpell.o4).value="\164\x72\x75e"; this.l3=O5; } ,SetTextSource:function (source){ this.I4=source; } ,GetDialogOpener:function (){return window[this.Id+RadSpellNamespace.RadSpell.DialogOpenerID]; }};
