	var ok = false;
	var http = createRequestObject();
	function createRequestObject() {
	   var objAjax;
	   var browser = navigator.appName;
	   if(browser == "Microsoft Internet Explorer"){
	      objAjax = new ActiveXObject("Microsoft.XMLHTTP");
	   }else{
	      objAjax = new XMLHttpRequest();
	   }
	   return objAjax;
	}



	function getPhones(user_name)
	{
		 http.open('post','carte.ajax.php?user_name='+user_name);
	     http.onreadystatechange = updatePhones;
	     http.send(null);
	     return false;
	}
	
	function updatePhones(){
		
		if (http.readyState == 3)
		{
			if (ok==false)
			document.getElementById('idPhones').innerHTML = '<img src="images/loader.gif" />';
			ok = true;
		}
		
	   if(http.readyState == 4){	
			ok = false;
	   		document.getElementById('idPhones').style.display = '';
			document.getElementById('idPhones').innerHTML = http.responseText;
	   }
	}






	function getNewContent(id_t){
	   http.open('post','tutorial_a.php?id_t='+id_t);
	   http.onreadystatechange = updateNewContent;
	   http.send(null);
	   return false;
	}
	
	function getNewContent_1(id_tip)
	{
	   http.open('post','tips_a.php?id_t='+id_tip);
	   http.onreadystatechange = updateNewContent_1;
	   http.send(null);
	   return false;
	}
	
	function updateNewContent_1(){
	   if(http.readyState == 4){	
	   		document.getElementById('tips').style.display = '';
			document.getElementById('tips').innerHTML = http.responseText;
	   }
	}
	
	function updateNewContent(){
	   if(http.readyState == 4){	
	   		document.getElementById('cust_2').style.display = '';
			document.getElementById('cust_2').innerHTML = http.responseText;
	   }
	}

	
	function getNewContent_faq(id_f)
	{
	   http.open('post','faq.php?id_t='+id_f);
	   http.onreadystatechange = updateNewContent_2;
	   http.send(null);
	   return false;
	}
	
	function updateNewContent_2(){
	   if(http.readyState == 4){	
	   		document.getElementById('faq').style.display = '';
			document.getElementById('faq').innerHTML = http.responseText;
	   }
	}
	
	
	
	function getNewContent_tari(id_c)
	{
	   http.open('post','tari.php?id_c='+id_c);
	   http.onreadystatechange = updateNewContent_tari;
	   http.send(null);
	   return false;
	}
	
	function updateNewContent_tari(){
	   if(http.readyState == 4){	
			document.getElementById('tari').innerHTML = http.responseText;
			document.getElementById('tari_2').innerHTML = '';
	   }
	}
	
	function getNewContentTarife(id_tara)
	{
	   http.open('post','tari_tarife.php?id_tara='+id_tara);
	   http.onreadystatechange = updateNewContentTarife;
	   http.send(null);
	   return false;
	}
	function updateNewContentTarife(){
	   if (http.readyState == 3)
		{
			document.getElementById('tari_2').innerHTML = '<img src="images/loader.gif" />';
		}
		if (http.readyState == 2)
		{
			document.getElementById('tari_2').innerHTML = '<img src="images/loader.gif" />';
		}
	   if(http.readyState == 4){	
			document.getElementById('tari_2').innerHTML = http.responseText;
	   }
	}