	function on(img){
		document[img].src = 'img/' + img + '_roll.gif';
	}

	function off(img){
		document[img].src = 'img/' + img + '.gif';
	}
	
	function checkText(f)
	{
		var txt = f.texte.value;
		var nb = txt.length;
		if (nb > max) {
			alert("Pas plus de "+max+" caractères dans ce champ");
			f.texte.value = txt.substring(0, max);
			nb=max;
		}

		f.nbcar.value = nb + 1;
	}
	
	function checkNull(obj,msg){
		if(obj.value == ''){
			alert(msg);
			obj.focus();
			return false;
		}

		return true;
	}
