var xmlHttppt

function pagetrack(str,str1,str2)
{ 
xmlHttppt=GetXmlHttpObjectp();
if (xmlHttppt==null)
  {
  alert ("Your browser does not support AJAX!");
  return;
  } 
var url="track.jsp";
url=url+"?from="+str+"&to="+str1+"&ip="+str2;
xmlHttppt.onreadystatechange=stateChang;
xmlHttppt.open("GET",url,true);
xmlHttppt.send(null);
}

function stateChang() 
{
	//document.getElementById("gameid").style.display = "none";
	//document.getElementById("loader").style.display = "block";	
	try{
	if (xmlHttppt.readyState == 4)
	{
		var stext=xmlHttppt.responseText;
	 
	}
	}
catch (e){ 
	alert("Error"); 
	}
	
}

function GetXmlHttpObjectp()
{
var xmlHttppt=null;
try
  {
  // Firefox, Opera 8.0+, Safari
  xmlHttppt=new XMLHttpRequest();
  }
catch (e)
  {
  // Internet Explorer
  try
    {
	 xmlHttppt=new ActiveXObject("Msxml2.XMLHTTP");
    }
  catch (e)
    {
    xmlHttppt=new ActiveXObject("Microsoft.XMLHTTP");
    }
  }
return xmlHttppt;
}
