<html> <head> <script type="text/javascript"> <!-- /* Copyright (c) 1996 nordsoft */ function testEncode(form) { var dater = new Date(); Day = dater.getDate(); dater = null; var Ret = encode (form.pwd.value, 12) location = Ret + ".htm" } function encode (OrigString, CipherVal) { Ref="0123456789abcdefghijklmnopqrstuvwxyz._~ABCDEFGHIJKLMNOPQRSTUVWXYZ" CipherVal = parseInt(CipherVal) var Temp="" for (Count=0; Count < OrigString.length; Count++) { var TempChar = OrigString.substring (Count, Count+1) var Conv = cton(TempChar) var Cipher=Conv^CipherVal Cipher=ntoc(Cipher) Temp += Cipher } return (Temp) } function cton (Char) { return (Ref.indexOf(Char)); } function ntoc (Val) { return (Ref.substring(Val, Val+1)) } // --> </script> </head> <body> <form name="testform" onsubmit="return(false)"> Paßwort: <input type="password" name="pwd" value=""> <input type="button" name="button" value=" OK " onclick="testEncode(this.form)"> </form> </body> </html>