var xml_inv;

function DoCallback2(url)
{
var xmlRequest=null;
	try
	{
		xmlRequest=new ActiveXObject("Msxml2.XMLHTTP");
	}
	catch(e)
	{
		try
		{
			xmlRequest=new ActiveXObject("Microsoft.XMLHTTP");
		}
		catch(oc)
		{
			xmlRequest=null;
		}
	}
	if(!xmlRequest&&typeof XMLHttpreqADSuest!="undefined")
	{
		xmlRequest=new XMLHttpreqADSuest();
	}
 xmlRequest.open("POST", url, true);
   xmlRequest.send(null);
   return  xmlRequest;
}
function looping_fun()
{

load_inv();

setTimeout("looping_fun()",10000);
}

function load_inv()
{
	var url="chart.asp";

	 xml_inv=DoCallback2(url);

	if (xml_inv!=null)
	{

	xml_inv.onreadystatechange=ref_inv
alert(xml_inv.responseText)

	}
}
function ref_inv()
{//alert(xml_inv.responseText)
if (xml_inv.readyState==4)
	{
	if (xml_inv.status==200)
		{
		var str1=xml_inv.responseText 
/**********
str1 what you need
chart.innerHTML=str1
*****/
//chart.innerHTML=""
alert(str1)
chart.innerHTML=str1
}
}
}
