﻿// JScript File
var PropertyId;
var request;
var response;				

function InitializeRequestIdSearch()
{			
		//Creating object of XMLHTTP in Mozilla and Safari
		request = "" 
		if(!request && typeof XMLHttpRequest != "undefined") 
		{   
			request = new XMLHttpRequest();
		}
		else //Creating object of XMLHTTP in IE
		{
			try
			{
				request = new ActiveXObject("Msxml2.XMLHTTP");
			}
			catch(e)
			{
				try
				{
					request = new ActiveXObject("Microsoft.XMLHTTP");
				} 
				catch(oc)
				{
					request = null;
				}
			}
		}
}
		   
		 //SendRequestIdSearch  
function GrabHits(rid, Pageurl,pagehit)
{
	//status.innerText = "Loading.....";//Set the status to "Loading....."
	InitializeRequestIdSearch();//Call InitializeRequest to set request object
   
	//Create the url to send the request to
	var url = "grabfootprints.aspx?rid=" + rid+ "&strurl=" + Pageurl+"&strPagehit="+pagehit;
	//Delegate ProcessRequest to onreadystatechange property so 
	//it gets called for every change in readyState value
	request.onreadystatechange = ProcessRequestHit;
	
	
	request.open("GET", url, true);//Open a GET request to the URL	

	request.send(null);//Send the request with a null body.
}

		  
function ProcessRequestHit()
{
	if(request.readyState == 4)
	{   	
		if(request.status == 200)
		{	
		return;
		}
	}	
		
}
		


