function getXhr(){
	
	var xhr;
	
	if(window.XMLHttpRequest){
		xhr=new XMLHttpRequest();
	}else if(window.ActiveXObject){
		try{
			xhr=new ActiveXObject('Msxml2.XMLHTTP');
		}
		catch(e){
			xhr=new ActiveXObject('Microsoft.XMLHTTP');
		}
	}else{
		xhr=null;
	}
	
	return xhr;
}

function clic(action, url)
{
	var rnd = Math.random();

	var xhr = getXhr();
	
	var params = 'mode=ajax';
	params = params + '&action=' + action + '&url=' + encodeURIComponent(url) + '&rnd=' + rnd;
	
	xhr.open('GET', 'track.php?'+params, true);
	xhr.send(null);
	
	return true;
}
