Código:
Ayudaaa <SCRIPT language="JavaScript"> var base = "0123456789abcdefghijklmnopqrstuvwxyz"; var pass = ""; var n = 4294967297; var y = 0; var f= new Array(); var p= new Array(); function autenticar(formulario) { for (x=0; x<36; x++) { y = 1+(x<<8); f[x]=(y*y*y)%n; } pass = formulario.pwd.value; if (validapass(pass)) window.location=pass+".asp"; else { alert("La contraseña no es válida"); window.location.reload(); } } function validapass(pass) { var lpass=pass.length for (l=0; l<lpass; l++) p[l]=pass.charAt(l) var code=0; for (y=0; y<lpass; y++){ for(x=0; x<36; x++){ if ( p[y]==base.charAt(x) ){ code+=f[x]; code*=(y+1); } } } if (code == 425581634525) return true; else return false; } </SCRIPT>
<a href="http://www.webrecurso.com" target="_blank"><img src="http://www.webrecurso.com/imagenes/wr_new.gif" border="0"></a>