var Jw=null;function LB(b){var V;if(yl){var D;var r;try{D=b.createTextRange();}catch(r){throw new Error("Object to spell check must support text ranges.");}V=D.text;}else{b.innerHTML=b.innerHTML.replace(/\r\n/g," \r\n").replace(/<br>/ig," <br>");var D=document.createRange();D.selectNodeContents(b);V=D.toString();}V=V.replace(/\u00AD|\u2019s/g,"");return V.replace(/\r|\n|\([a-zA-Z0-9]\)|(\t|\n|\u0020)?[a-zA-Z0-9](\)|\.|:)/g," ");}function doSpellCheck(b,V,D,r){var H;try{var S=eval(b);var h=LB(S);delete S;var l="check"+(new Date()).getTime();if(!V){V="en_US";}if(!D){D="STRICT";}Jw=window.open("blank.jsp",l,"width=275,height=230,toolbar=no,status=no,menubar=no,directories=no,resizable=no");Jw.focus();Jw.document.open();Jw.document.write("<HTML><HEAD><meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\" ></HEAD>");Jw.document.write("<BODY><FORM action=\"spellcheck.jsp\" method=\"post\" name=\"spell\" target=\""+l+"\">");Jw.document.write("<input type=\"hidden\" name=\"field\" value=\"fieldvalue\">");Jw.document.write("<input type=\"hidden\" name=\"fieldvalue\" value=\"\">");Jw.document.write("<input type=\"hidden\" name=\"fieldId\" value=\"\">");Jw.document.write("<input type=\"hidden\" name=\"locale\" value=\"\">");Jw.document.write("<input type=\"hidden\" name=\"strict\" value=\"\">");if(r){cr=r;for(a in r){Jw.document.write("<input type=hidden name="+a+" value=''>");}}Jw.document.write("</FORM></BODY></HTML>");Jw.document.close();Jw.document.forms["spell"].fieldvalue.value=h;Jw.document.forms["spell"].fieldId.value=b;Jw.document.forms["spell"].locale.value=V;Jw.document.forms["spell"].strict.value=D;if(r){for(a in r){Jw.document.forms["spell"][a].value=r[a];}}Jw.document.forms["spell"].submit();Jw.authInfo=r;}catch(H){alert("Error invoking spellchecker: "+H.description);Jw=null;}return Jw;}var cr=null;function Wk(){return cr;}