function Logout(){


	if (window.XMLHttpRequest) {
		ricercaxx = new XMLHttpRequest();
		ricercaxx.onreadystatechange = Logout1;
		ricercaxx.open("GET", "ax_logout.php?rand=" + Math.random() ,true);
		ricercaxx.send(null);
	} else if (window.ActiveXObject) {
		ricercaxx = new ActiveXObject("Microsoft.XMLHTTP");
	if (ricercaxx) {
		ricercaxx.onreadystatechange = Logout1;
		ricercaxx.open("GET", "ax_logout.php?rand=" + Math.random() ,true);
		ricercaxx.send(null);
	}
	}
}


	function Logout1(){
		var strRes; 
			if (ricercaxx.readyState == 4 && ricercaxx.status == 200) { 
				strRes=ricercaxx.responseText;
				//alert(strRes);
				document.location.href="index.php";
			}
	}

