var geoLocationRequest = null;
		
function CreateXmlHttpReq(handler)
{
	var xmlhttp = null;

	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}  
  
	xmlhttp.onreadystatechange = handler;
	return xmlhttp;
}

function myHandler()
{
	if (geoLocationRequest.readyState == 4 && geoLocationRequest.status == 200)
	{
		//alert(geoLocationRequest.responseText);
    }
}

function getGeoLocation()
{
	geoLocationRequest = CreateXmlHttpReq(myHandler);
    geoLocationRequest.open("GET","inc/geolocation/ajax_get_remote_file.php");
    geoLocationRequest.send(null);
}

getGeoLocation();
