//-------------------------------------------------
//fonction AJAX created by Yannik©Messerli
//free of use (see the exemple file)
//-------------------------------------------------

function ajax(url)
{
	var xhr_object = null;
	var position = "content_counter";
	   if(window.XMLHttpRequest)  xhr_object = new XMLHttpRequest();
	  else
	    if (window.ActiveXObject)  xhr_object = new ActiveXObject("Microsoft.XMLHTTP"); 
	xhr_object.open("GET", url, true);
	xhr_object.onreadystatechange = function(){
	if ( xhr_object.readyState == 4 )
	{document.getElementById(position).innerHTML = xhr_object.responseText;
	}
	}
	xhr_object.send(null);
}

