
// OPERACIONES CON TEXTAREA
function setLengthTextarea(nameForm, origen) {
	var f = getForm(nameForm);
	longitud = eval("f."+origen+".value.length");
	destinoForm = eval("f."+origen+"length");
	destinoForm.value = longitud;
}

function setMaxLengthTextarea(area, max) {
	if (area.value.length > max) {
		area.value = area.value.substring(0,max);
	}
}

function crearLengthTextarea(nameForm, origen) {
	var f = getForm(nameForm);
	longitud = eval("f."+origen+".value.length");
	document.write('<font color="red"><input type="text" name="'+origen+'length" value="'+longitud+'" size="3" class="inputreadonly" DISABLED> caracteres</font>');
}

