// (c) 2000 SpellChecker.net, Inc. All rights reserved. www.SpellChecker.net // //var service_host = "http://service.host.name/and_path_if_requierd"; // var schema_url = ""; var spp_langs = ""; var service_host = "http://www.spellchecker.net/spellcheck/"; var customerid = "1:DwgqR1-gryQv2-mT3eV2-xxIQm4-CgRx51-Kac2h2-cKQOA3-rSXC11-aJ4OF2-3xdx3"; var hide = ""; var doc_blank = "/lf/blank.html"; var doc_blankform = "/lf/blankform.html"; var doc_process = "script/ssrv.cgi"; var mid_doc; var spellWin; var is_window_opened = false; var opened = false; var asc = false; var ssrv_host; var port; var ssrv; var ssrvname; var IsProxyVer = ((navigator.appVersion.indexOf("MSIE 5") != -1) && (navigator.appVersion.indexOf("Mac") != -1)) || (navigator.appVersion.indexOf('4.5 ') != -1); var later= (navigator.appName == 'Netscape') && (navigator.appVersion.indexOf("5.0") != -1); var lang; var ctrl; var url; var force_reload; var intlang; var ctrlObj; var formNum = -1; var ctrlName = ''; var i; var d; function doSpell( p_lang, p_ctrl, p_url, p_force_reload, p_intlang) { lang = p_lang; ctrl = p_ctrl; url = p_url; force_reload = p_force_reload; intlang = p_intlang; CheckIE5Mac(url); if (is_window_opened) if (spellWin.frames.length!=5) is_window_opened = false; var isMSIE = (navigator.appName == 'Microsoft Internet Explorer'); var Ver = navigator.appVersion; if ( (isMSIE && parseInt (navigator.appVersion) < 4) ) { alert("Our SpellChecker feature does not support Internet Explorer 3.0. However, it does support the following browsers: IE 4+, Netscape 4+ ( 6.0)."); return; } if ( (navigator.appName == 'Netscape') && ( (navigator.appVersion.indexOf('3.0') != -1) ) ) { alert('Sorry, currently we do not support Netscape Navigator 3.0, Internet Explorer 3.0.\nPlease upgrade your browser.'); return; } var wWidth = 488; var wHeight = (hide.indexOf('[sw]') == -1)?440:325; var botf = 167;//159 var s = ''; if (ctrl.constructor && ctrl.constructor == String) { ctrlName = ctrl; formNum = -1; ctrlObj = eval(ctrl); wWidth = ctrlObj.clientWidth < wWidth ? wWidth : ctrlObj.clientWidth; wHeight = (ctrlObj.clientHeight > wHeight ? ctrlObj.clientHeight : wHeight); } else { i = 0; for (i = 0; i < document.forms.length; i++) { if (document.forms[i] == ctrl.form) break; } if (i==document.forms.length) formNum = -1; else formNum = i; ctrlName = ctrl.name; ctrlObj = ctrl; } var tmp = ctrlObj.value ? ctrlObj.value : ctrlObj.innerHTML; if (tmp == '' || tmp == null) { alert('Nothing to check.'); return } if ( lang == '' ) lang = 'en'; if ( window.name == '' ) window.name = 'sp_ch_opener_window'; wndname = window.name; if (hide.indexOf('[eb]') != -1) spellWin = window; else { if (!is_window_opened) spellWin = window.open("", "spch" + getHostStr(document.location.host), "width=" + wWidth + ",height=" + wHeight + ",toolbar=no,resizable=no"); } spellWin.focus(); d = spellWin.document; if (!is_window_opened || hide.indexOf('[dc]') == -1) { if (hide.indexOf('[ch]') != -1) { s = '' + '