function inscriptionGo(){
		
	
	   	xhr_object2.open('POST', 'comptes/inscription.php', true);
		xhr_object2.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
		
		var nom = document.forms.inscripForm.inscripNom.value;
	
		var prenom = document.forms.inscripForm.inscripPrenom.value;
		var pseudo = document.forms.inscripForm.inscripPseudo.value;
		var mail = document.forms.inscripForm.inscripMail.value;
		var pass = document.forms.inscripForm.inscripPass.value;
		var pass2 = document.forms.inscripForm.inscripPass2.value;
			
   var data = "nom="+ nom +"&prenom=" + prenom  +"&pseudo=" + pseudo + "&mail=" + mail + "&pass=" + pass + "&pass2=" + pass2 + "&test=ok"; 
   
  
	   xhr_object2.send(data); 
	  
	   xhr_object2.onreadystatechange = function actualiser() {
   if(xhr_object2.readyState == 4) 
   {
    var tmp = xhr_object2.responseText;
   document.getElementById("corps").innerHTML= tmp;
  
   }
}
	   }
	   
	   
	   
	   
	   
	   
	   
	   
	   function confirmerCompte(c){

   
     xhr_object2.open("POST", "comptes/confirmation.php", true);
     
		xhr_object2.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); 
		
   var data = "cle=" + c; 
 
	   xhr_object2.send(data);
	 document.getElementById("corps").innerHTML="chargement...";   
	     xhr_object2.onreadystatechange = function() {
   if(xhr_object2.readyState == 4) 
   	
        document.getElementById("corps").innerHTML=xhr_object2.responseText;
 }
   }
   
   
   
   
   
   
   	     function userscol(){
	 
	   	xhr_object.open("POST", "comptes/userscol.php", true);
	   	
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
	   xhr_object.send(null); 
	    document.getElementById("userscol").innerHTML = "chargement...";
	   xhr_object.onreadystatechange = function actualiser() {
   if(xhr_object.readyState == 4) 
   {
    var tmp = xhr_object.responseText;
   document.getElementById("userscol").innerHTML= tmp;
  
   }}}
   
   
   
   
   
   
   function connection(){
	xhr_object.open('POST', 'comptes/connection.php', true);
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
var pseudo = document.forms.connectionForm.connectionPseudo.value;
			var pass = document.forms.connectionForm.connectionPass.value;
 var data = "pseudo="+ pseudo +"&pass=" + pass + "&connection=ok"; 
 xhr_object.send(data); 
  document.getElementById("corps").innerHTML = "chargement...";
	   xhr_object.onreadystatechange = function actualiser() {
   if(xhr_object.readyState == 4) 
   {
    var tmp = xhr_object.responseText;
   document.getElementById("corps").innerHTML= tmp;
  userscol(); 
   }}}
	   
	   
	   
	   function deconnection(){
	xhr_object.open('POST', 'comptes/connection.php', true);
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
 var data = "deconnection=ok"; 
 xhr_object.send(data); 
  document.getElementById("corps").innerHTML = "chargement...";
	   xhr_object.onreadystatechange = function actualiser() {
   if(xhr_object.readyState == 4) 
   {
    var tmp = xhr_object.responseText;
   document.getElementById("corps").innerHTML= tmp;
  userscol(); 
  afficherPremieresNotes()
   }}}
   
   
   
      function profil(){
	 
	   	xhr_object.open("POST", "comptes/profil.php", true);
	   	
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
	   xhr_object.send(null); 
	    document.getElementById("corps").innerHTML = "chargement...";
	   xhr_object.onreadystatechange = function actualiser() {
   if(xhr_object.readyState == 4) 
   {
    var tmp = xhr_object.responseText;
   document.getElementById("corps").innerHTML= tmp;
  
   }}}
   
   
   
   
      function profils(u){
	 
	   	xhr_object.open("POST", "comptes/profils.php", true);
	   	
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
		var data = "u=" + u; 
	   xhr_object.send(data);
	    document.getElementById("corps").innerHTML = "chargement..."; 
	   xhr_object.onreadystatechange = function actualiser() {
   if(xhr_object.readyState == 4) 
   {
    var tmp = xhr_object.responseText;
   document.getElementById("corps").innerHTML= tmp;
  
   }}}
   
   
   
   
       function annuaire(){
	 
	   	xhr_object.open("POST", "comptes/annuaire.php", true);
	   	
		xhr_object.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
	   xhr_object.send(null); 
	    document.getElementById("corps").innerHTML = "chargement...";
	   xhr_object.onreadystatechange = function actualiser() {
   if(xhr_object.readyState == 4) 
   {
    var tmp = xhr_object.responseText;
   document.getElementById("corps").innerHTML= tmp;
  
   }}}
   
   
   
   function majProfil(){
		
	
	   	xhr_object2.open('POST', 'comptes/profil.php', true);
		xhr_object2.setRequestHeader("Content-type", "application/x-www-form-urlencoded");  
		
		var nom = remplacer(document.forms.majProfilForm.majNom.value,"&",";and;");
		var prenom = remplacer(document.forms.majProfilForm.majPrenom.value,"&",";and;");
		var site = remplacer(document.forms.majProfilForm.majSite.value,"&",";and;");
		var contenu = remplacer(document.forms.majProfilForm.majContenu.value,"&",";and;");
		var avatar = remplacer(document.forms.majProfilForm.majAvatar.value,"&",";and;");
		
		
		
		//alert(nom + " " + prenom + " " + contenu + " " + site + " " + avatar);
			
			
   var data = "maj=ok&nom="+ nom +"&prenom=" + prenom + "&site=" + site + "&contenu=" + contenu + "&avatar=" + avatar; 
   
  
	   xhr_object2.send(data); 
	  
	   xhr_object2.onreadystatechange = function actualiser() {
   if(xhr_object2.readyState == 4) 
   {
    var tmp = xhr_object2.responseText;
   document.getElementById("corps").innerHTML= tmp;
  
   }
}
	   }
	   