function compter1(f) { 
    var max=100;  		// 100 caractères maximum
	var txt=f.Titre.value;
	var nb=txt.length;
	if (nb>max) { 
		alert("Pas plus de "+max+" caractères dans ce champ");
		f.Titre.value=txt.substring(0,max);
		nb=max;
	}
	f.nbTitre.value=nb;
}

function compter2(f) { 
    var max=255;  		// 1000 caractères maximum
	var txt=f.Key.value;
	var nb=txt.length;
	if (nb>max) { 
		alert("Pas plus de "+max+" caractères dans ce champ");
		f.Key.value=txt.substring(0,max);
		nb=max;
	}
	f.nbKey.value=nb;
}

function compter3(f) { 
    var max=200;  		// 200 caractères maximum
	var txt=f.Descript.value;
	var nb=txt.length;
	if (nb>max) { 
		alert("Pas plus de "+max+" caractères dans ce champ");
		f.Descript.value=txt.substring(0,max);
		nb=max;
	}
	f.nbDescript.value=nb;
}

function timer1() {
	compter1(document.forms["formx"]);
	setTimeout("timer1()",100);
}
function timer2() {
	compter2(document.forms["formx"]);
	setTimeout("timer2()",100);
}
function timer3() {
	compter3(document.forms["formx"]);
	setTimeout("timer3()",100);
}