function SpellStarter(textSource) { this.source = textSource; } SpellStarter.prototype.StartSpellCheck = function() { window.currentSpellStarter = this; var iframe = this.SpellFrame(); iframe.src = "/common/resources/shared/controls/TelerikSpellCheck/SpellStarter.aspx"; } SpellStarter.prototype.SpellFrame = function() { var iframe = document.getElementById("spellCheckerIFrame"); if (iframe == null) { iframe = document.createElement("IFRAME"); iframe.src = "javascript:void(0)"; iframe.style.display = "none"; iframe.setAttribute("id", "spellCheckerIFrame"); document.body.appendChild(iframe); } return iframe; } //This function opens a modal spellchecking dialog. function openCheckerWindow() { // alert("Go into Spell Check window"); var source = { GetText : function() { //alert("Get Text"); var sText = "" ; var sAgent = navigator.userAgent.toLowerCase(); if (sAgent.indexOf("msie") != -1) { var oElements = document.getElementsByTagName("IFRAME"); for (var i=0; i