function insert_com(langue){
  // Gestion de la langue
  var tabLang = new Array(2);
  if(langue == "fr") {
    tabLang[0] = "<p>Un problème est survenu lors de l'insertion du commentaire. Veuillez contacter un administrateur.</p>"; 
    tabLang[1] = "<p>Votre commentaire à été inséré avec succès, merci.</p>"; 
  } else if(langue == "en"){
    tabLang[0] = "<p>A problem occurred while inserting the comment. Please contact an administrator.</p>";
    tabLang[1] = "<p>Your comment has been inserted successfully, thank you.</p>";
  }
    
  var params = {
  	action : $F('action'), 
  	commentaire : $F('commentaire'),
  	id_etablissement : $F('id_etablissement'),
  	id_com : $F('id_com'),
  	id_internaute : $F('id_internaute')
	};
  new Ajax.Request('./executer.php', {
        method: "post",
        parameters: params,
        encoding: 'UTF-8',
        onSuccess: function(transport) {
          $('trajax').update(tabLang[1]);
        },
        onFailure: function(){
          $('trajax').update(tabLang[0]);
        }
    });
}
