﻿var strLoding="<b><center>Loading...</center><b/>";var objCompleted=null;function GetXmlHttpObject()
{var xmlHttp=null;try
{xmlHttp=new XMLHttpRequest();}
catch(e)
{try
{xmlHttp=new ActiveXObject("Msxml2.XMLHTTP");}
catch(e)
{xmlHttp=new ActiveXObject("Microsoft.XMLHTTP");}}
return xmlHttp;}
function DoAjax(url,statusId)
{var xmlHttp;xmlHttp=GetXmlHttpObject();if(xmlHttp==null)
{alert("Your browser does not support AJAX!");return;}
xmlHttp.onreadystatechange=function stateChanged(){switch(xmlHttp.readyState)
{case 0:break;case 1:break;case 2:break;case 3:break;case 4:if(document.getElementById(statusId)!=null)
document.getElementById(statusId).innerHTML=xmlHttp.responseText;if(objCompleted!=null)
{objCompleted.complete();}};};xmlHttp.open("GET",url,true);xmlHttp.send(null);}
function TestShAjax(siteURL,divResultID,obj_Completed)
{this.objCompleted=obj_Completed
DoAjax(siteURL,divResultID);}
