var xmlHttp

function showCustomer(str)
{ 

	setTimeout("showCustomer()",100000);

	//var div = document.getElementById("txtHint").innerHTML = "Carregando...";
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request");
		return;
		} 
	var url="process_result.php";
	xmlHttp.onreadystatechange=stateChanged ;
	xmlHttp.open("GET",url,false);
	xmlHttp.send(null);
	
}

function updateCustomer(str)
{ 

	
    setTimeout("updateCustomer()",100000);

	//var div = document.getElementById("txtHint").innerHTML = "Carregando...";
	xmlHttp=GetXmlHttpObject();
	if (xmlHttp==null)
		{
		alert ("Browser does not support HTTP Request");
		return;
		} 
	var url="../contador/process_cont.php";
    xmlHttp.onreadystatechange=stateChanged01;
	xmlHttp.open("GET",url,false);
	xmlHttp.send(null);

}


function stateChanged() 
	{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
	} 
} 

function stateChanged01() 
	{ 
	if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete")
	{ 
		return;
	} 
} 

function GetXmlHttpObject()
	{ 
	var objXMLHttp=null;
		if (window.XMLHttpRequest)
			{
			objXMLHttp=new XMLHttpRequest();
			}
		else if (window.ActiveXObject)
			{
			objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
			}
		return objXMLHttp;
} 