/*****************************
*** Powered  By  Mahongtao ***
*** Last Modify 2007-03-28 ***
*****************************/

var xmlHttp=false;

function createXmlHttp()
{
	try 
	{
		xmlHttp = new ActiveXObject("Msxml2.XMLHTTP");
	} 
	catch (e)
	{
		try
		{
			xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(e2)
		{
			xmlHttp = false;
		}
	}
	if (!xmlHttp && typeof XMLHttpRequest != 'undefined')
	{
		xmlHttp = new XMLHttpRequest();
	}
}

var tempObj;

function AJAXRun(strURL,returnObj)
{
	tempObj=returnObj;
	createXmlHttp();
	xmlHttp.open("Get",strURL,true);
	xmlHttp.onreadystatechange=returnContent;
	xmlHttp.send(null);
}

function returnContent()
{
	if(xmlHttp.readyState==4&&tempObj!=null)
	{
		tempObj.innerHTML=xmlHttp.responseText;
	}
}