function Affich_commentaire(id){
	document.getElementById('commentaire_news'+id).style.visibility='visible';
	document.getElementById('commentaire_news'+id).style.display='block';
}

function Cache_commentaire(id){
	document.getElementById('commentaire_news'+id).style.visibility='hidden';
	document.getElementById('commentaire_news'+id).style.display='none';
}

function montre_comment(id) { 
	document.getElementById('Layer_comment').style.visibility='visible';
	document.getElementById('id_news_com').value=id;
}

function cache_comment() { 
	document.getElementById('Layer_comment').style.visibility='hidden';
}

function confirmation(){
	var err="";
	if(document.forms.commentaire.nom.value==""){
		err+='Veuillez remplir le champs nom <br>';
	}
	if(document.forms.commentaire.prenom.value==""){
		err+='Veuillez remplir le champs prenom <br>';
	}
	if(document.forms.commentaire.mail.value==""){
		err+='Veuillez remplir le champs mail <br>';
	}
	if(document.forms.commentaire.texte_commentaire.value==""){
		err+='Veuillez remplir le champs commentaire <br>';
	}
	if(err==""){
		document.forms.commentaire.submit;
		return true;
	}else{
		document.getElementById('erreur').innerHTML=err;
		return false;
	}
}
