1function validarString (cadenaAnalizar) {
2 for (var i = 0; i< cadenaAnalizar.length; i++) {
3 var caracter = cadenaAnalizar.charAt(i);
4 if( caracter == "ñ" || caracter == "Ñ") {
5 alert("Caracter no permitido");
6 return false;
7 } else {
8 return true;
9 }
10 }
11}