var rSl1 = null;function rSo8(windowFrames){for (var S4=0; S4<windowFrames.length; S4++){windowFrames[S4].window.addEventListener("mousedown", rSq6, true);windowFrames[S4].window.addEventListener("focus", rSq6, true);rSo8(windowFrames[S4].window.frames);}}function rST4(windowFrames){for (var S4=0; S4<windowFrames.length; S4++){windowFrames[S4].window.removeEventListener("mousedown", rSq6, true);windowFrames[S4].window.removeEventListener("focus", rSq6, true);rST4(windowFrames[S4].window.frames);}}function rSq6(e){rSl1.focus();e.preventDefault();e.stopPropagation();}function rSS0(e, spellID, control, languagesID, applicationPath, language, dialogsScheme, sessionID1, sessionID2, useSession, defaultLang, sessionData){var T0 = applicationPath + sessionID1 + "RadControls/Spell/Dialogs/SpellCheck.aspx?spellID=" + spellID + "&DialogsScheme=" + dialogsScheme + "&Language=" + language + "&sessionID=" + sessionID2 + "&useSession=" + useSession + "&RadSessionData=" + sessionData;if (languagesID != null){var rSG1 = document.getElementById(languagesID);if (rSG1 != null){T0 += "&DefaultLang=" + rSG1.value;}}if (defaultLang != null){T0 += "&DefaultLang=" + defaultLang;}if (control.nodeName == "IFRAME"){control = control.contentWindow.document.body;}if (document.all){window.showModalDialog(T0, control, "status:no; center:yes; help:no; minimize:no; maximize:no; scroll:no; border:thin; dialogWidth:470px; dialogHeight:360px");}else{if (control.value){try{control.value = control.value.replace(/\r?\n/gi, "<teleriknl /> ");}catch (exc) {};}radSpellDialogArguments = control;rSl1 = window.open(T0, "_blank", "directories=no, location=no, menubar=no, resizable=no, scrollbars=no, status=no, titlebar=no, toolbar=no, width=470, height=360, modal=yes", false);window.addEventListener("mousedown", rSq6, true);window.addEventListener("focus", rSq6, true);rSo8(window.frames);window.setTimeout(function(){rSl1.onunload = function(){window.removeEventListener("mousedown", rSq6, true);window.removeEventListener("focus", rSq6, true);rST4(window.frames);};}, 500);if (e != null){e.preventDefault();e.stopPropagation();}}}function rSZ8(editorID, spellID, applicationPath, language, dialogsScheme, sessionID1, sessionID2, useSession, sessionData){var rSo9 = document.getElementById("radEditorContainer" + editorID);if (rSo9 != null){rSo9.spellCheck = function(){rSS0(null, spellID, rSo9, null, applicationPath, language, dialogsScheme, sessionID1, sessionID2, useSession, rSo9.getAttribute("defaultLang"), sessionData);}}}