sorry fuer dumm fragen, aber es klappt trotz des scriptes noch nicht! hier mal die relevanten teile des quelltexts! hoechstwahrscheinlich habe ich den script falsch eingebunden!
<html>
<head>
<title>Passworteingabe</title>
<!----------------------------!!!!!!!!!!------------->
<script type="text/javascript">
function tastatur(){
var taste = event.keyCode
if (taste == 13)
document.anmeldung.submit(); }
</script>
<!----------------------------!!!!!!!!!!------------->
<script type="text/javascript">
function testEncode(form) {
var dater = new Date();
Day = dater.getDate();
dater = null;
var Ret = encode (form.pwd.value, 12)
location.href = Ret + ".htm"
}
function encode (OrigString, CipherVal) {
Ref="0123456789abcdefghijklmnopqrstuvwxyz~"
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 style="background-image:url(image/bg-main.gif); cursor:crosshair;">
<form name="testform" onsubmit="return(false)">
<input type="password" name="pwd" value="">
<input type="submit" name="button" value=" OK " onclick="testEncode(this.form)">
</form>
</body>
</html>