
	var http 			= getHTTPObject();			// creating the HTTP Object
	var isWorking 		= false;					// flag - present status on whether any process is in progress or not.


	// depending upon the browser type, it creates an HTTP object...
	function getHTTPObject()
	{
		var xmlhttp;
		/*@cc_on
		@if (@_jscript_version >= 5)
		try {
		  xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
		} catch (e) {
		  try {
			xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
		  } catch (E) {
			xmlhttp = false;
		  }
		}
		@else
		xmlhttp = false;
		@end @*/
		if (!xmlhttp && typeof XMLHttpRequest != 'undefined')
		{
			try{
			  xmlhttp = new XMLHttpRequest();
			} catch (e) {
			  xmlhttp = false;
			}
		}
		return xmlhttp;
	}


	function pageSelected(name)
	{
		if (!isWorking && http) 
		{
			isWorking = true;
//alert("visitor_tracking.php?ID="+name);
			http.open("get", "visitor_tracking.php?ID="+name, true);
			http.onreadystatechange = httpResponse_pagination1;
			http.send(null);
		}
		
	}


// returns the response or results from the source file.
	function httpResponse_pagination1()
	{
		arrPaginationDetails = new Array();
		if (http.readyState == 4)		// if HTTP has completed retreiving the data
		{
			isWorking = false;
		}
	}

