function getAJAXobj()
{
var obj=null;

try
	{
	obj = new ActiveXObject("Msxml2.XMLHTTP"); //old IE
	}
catch (exception)
	{
	try
		{
		obj = new ActiveXObject("Microsoft.XMLHTTP"); //old IE
		}
	catch (exception)
			{
			obj = null;
			}
	}

	if (obj==null)
		{
		obj=new XMLHttpRequest(); //IE7, Firefox, Safari
		}
return obj;
	
}


function doUsage()
{

var xmlhttp = getAJAXobj();
var page = "http://www.smaldysolutions.com/php/usage.php?url=" + location.href;
xmlhttp.open("GET", page,true);
xmlhttp.send("");

}
