function createXmlHttpRequestObject()
{
	var xmlHttp;
	try
	{
		xmlHttp = new XMLHttpRequest();
	}
	catch(e)
	{
		var XmlHttpVersions = new Array('MSXML2.XMLHTTP.6.0',
										'MSXML2.XMLHTTP.5.0',
										'MSXML2.XMLHTTP.4.0',
										'MSXML2.XMLHTTP.3.0',
										'MSXML2.XMLHTTP',
										'Microsoft.XMLHTTP');

		for(var i=0; i<XmlHttpVersions.length && !xmlHttp; i++)
		{
			try
			{
				xmlHttp = new ActiveXObject(XmlHttpVersions[i]);
			}
			catch (e) {}
		}
	}
	return xmlHttp;
}

function inserth(p)
{
	if(p.href.indexOf("?h=")>-1 || p.href.indexOf("&h=")>-1)
		return;

	var xmlHttp=createXmlHttpRequestObject();
	if(xmlHttp)
	{
		xmlHttp.open("GET","/profil/scripts2/geth_server.php",false);
		xmlHttp.send(null);
		if(xmlHttp.readyState==4)
		{
			if (xmlHttp.status==200)
			{
				if(p.href.indexOf("?")>-1)
					p.href+="&h="+xmlHttp.responseText;
				else
					p.href+="?h="+xmlHttp.responseText;
			}
		}
	}
}
