function validar_mensajes(theForm) {
	
	if (theForm.empresa.value == "ninguno"){
		alert("Debe seleccionar la Empresa Proveedora de Servicios del teléfono celular de destino.");
		theForm.empresa.focus();
		return (false);
	}	
	if (theForm.alias.value == ""){
		alert("El nombre del remitente es un dato requerido.");
		theForm.alias.focus();
		return (false);
	}
	if (theForm.cara.value == ""){
		alert("La característica del teléfono es un dato requerido.");
		theForm.cara.focus();
		return (false);
	}
	if (theForm.nrodestino.value == ""){
		alert("El número de teléfono es un dato requerido.");
		theForm.nrodestino.focus();
		return (false);
	}
	if (theForm.mensaje.value == ""){
		alert("El mensaje es un dato requerido.");
		theForm.mensaje.focus();
		return (false);
	}
	
	textoArea = document.celulares.mensaje.value;
	numeroCaracteres = textoArea.length;
	
	if (numeroCaracteres > 110 ){
		alert("El mensaje no debe superar los 110 caracteres");
		theForm.mensaje.focus();
		return (false);
	}

}

function contarCaracteres() {
	textoArea = document.celulares.mensaje.value;
	numeroCaracteres = textoArea.length;
	document.celulares.caracteres.value = numeroCaracteres;
	setTimeout("contarCaracteres();",300);
}

