
function LoadText(TextObject,AJAXLoader,OnLoad,SetText)
{var Container;var AJAXObject=null;if(document.all&&!document.getElementById)
{Container=document.all[TextObject];}
else{Container=document.getElementById(TextObject);}
if(!Container)return;Container.TxLdRawText='';Container.TxLdText='';if(window.XMLHttpRequest){AJAXObject=new XMLHttpRequest();}
else if(window.ActiveXObject)
{try{AJAXObject=new ActiveXObject("Msxml2.XMLHTTP");}
catch(except)
{try{AJAXObject=new ActiveXObject("Microsoft.XMLHTTP");}
catch(except){}}}
if(AJAXObject)
{AJAXObject.onreadystatechange=function()
{var ReadyState,Status,Matches;try{ReadyState=AJAXObject.readyState;}
catch(except){ReadyState=4;}
if(ReadyState!=4){return;}
try{Status=AJAXObject.status;}
catch(except){Status=503;}
if(Status==200)
{Container.TxLdRawText=AJAXObject.responseText;Matches=AJAXObject.responseText.match(/<body[^>]*>([\x00-\xFF]+)<\/body/im);if(Matches)
{Container.TxLdText=Matches[1];Matches=Container.TxLdText.match(/^\s+([\x00-\xFF]+)/m);if(Matches){Container.TxLdText=Matches[1];}
Matches=Container.TxLdText.match(/([\x00-\xFF]+)\s+$/m);if(Matches){Container.TxLdText=Matches[1];}
if(typeof(SetText)=='undefined')SetText=true;if(SetText&&(typeof(Container.innerHTML)!='undefined'))
{Container.innerHTML=Container.TxLdText;}
if(typeof(OnLoad)=='string')
{eval(OnLoad+'(\''+TextObject+'\');');}}}
return;};AJAXObject.open('GET',AJAXLoader,true);AJAXObject.send(null);return;}
return;}