function CtrlQte(saisie, champ)
{
	that = document.entryform [champ];
	if(isNaN(saisie) == true)
	{
		alert("Merci d'insérer des chiffres dans la quantité.");
		that.value = "";
		return false;
	}
	return true;
}

function Compter(Target, max, nomchamp)
{
	StrLen = Target.value.length
	if (StrLen > max )
	{
	  Target.value = Target.value.substring(0,max);
	  CharsLeft = max;
	} else {
	  CharsLeft = StrLen;
	}
	nomchamp.value = max - CharsLeft;
}

