<!--

function testertexte(texte){
// Aide à la saisie : Interdire une balise HTML
 	var expression = /[<>#%&]+/gi; // caractères interdits : en interdire éventuellement d'autres ?
 	if (expression.test(texte.value)){
		alert ("Les caractères suivants sont interdits : < , > , # , % , &");
		texte.value=texte.value.substring(0,texte.value.length-1);
 	}
}


function testerlongueur (texte,longueurmax) {
// Brider la longueur du texte à longueurmax caractères
	if (texte.value.length>longueurmax) {
		alert ("Les " + longueurmax + " caractères autorisés sont atteints.");
		texte.value=texte.value.substring(0,longueurmax);
	}
}

function checkLength(texteArea, lenghtText, maxLength)
{
  lenghtText.value = maxLength - texteArea.value.length;

  if ( lenghtText.value < 0 )
  {
    texteArea.value = texteArea.value.substr(0,maxLength);
    lenghtText.value = maxLength - texteArea.value.length;

    if (lenghtText.value == -1)
    {
    	texteArea.value = texteArea.value.substr(0,maxLength-1);
    	lenghtText.value = 1;
    }
    
  }
}

		function VerifierCaptcha(formulaire,coucou) {
	alert("rentrée");
	alert (coucou);
	return(false);
	}
	
		

// -->

