var xmlHttp=false;

function createxhttp()
{
	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 WriterFile(url)
{
	var _d=new Date();
	if(url.indexOf('?')>0)
			url+='&temp='+_d.getTime();
		else
			url+='?temp='+_d.getTime();
	createxhttp();
	xmlHttp.open("Get",url,true);
	xmlHttp.send(null);
}

function runAJAX(strURL,returnObj)
{
	var _d=new Date();
	if(strURL.indexOf('?')>0)
			strURL+='&Temp='+_d.getTime();
		else
			strURL+='?Temp='+_d.getTime();
			
	tempObj=returnObj;
	createxhttp();
	xmlHttp.open("Get",strURL,true);
	xmlHttp.onreadystatechange=returnContent;
	xmlHttp.send(null);
}
function returnContent()
{
	if(tempObj&&xmlHttp.readyState==4)
	{
		tempObj.innerHTML=xmlHttp.responseText;
	}
}

