
var xmlHttp;var uri="";var callingFunc="";var sResponse="";function GetXmlHttpObject()
{xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function remoteCall(sUrl,sQueryStr,sCalledBy)
{uri=sUrl;callingFunc=sCalledBy;xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
if(xmlHttp)
{xmlHttp.onreadystatechange=stateHandler;xmlHttp.open("POST",sUrl,true);xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");xmlHttp.send(sQueryStr);}}
function stateHandler()
{if(xmlHttp.readyState==4)
{sResponse=xmlHttp.responseText;eval(callingFunc+'()');}
return true;}
var Spell_Win_Name;var Work_Form_Name;var Work_Field_Name;function SpellCheck(form_name,field_name)
{var textform=self.document[form_name][field_name].value;if(!Spell_Win_Name||Spell_Win_Name.closed||(Work_Form_Name!=form_name||Work_Field_Name!=field_name))
{Spell_Win_Name=win_pop('');if(Spell_Win_Name.focus){Spell_Win_Name.focus();}
self.document.hidden_form.form_name.value=form_name;self.document.hidden_form.field_name.value=field_name;self.document.hidden_form.first_time_text.value=textform;self.document.hidden_form.submit();Work_Form_Name=form_name;Work_Field_Name=field_name;}
else
{if(Spell_Win_Name.focus){Spell_Win_Name.focus();}}}
function win_pop(URL)
{winname=window.open(URL,'WIN','width=600,height=380,left=210,top=210,resizable=yes,scrollbars=yes,status=yes');return winname;}
