Ich finde leider nicht den Fehler bei dem Programm... :
<html>
<head>
<title>Polybios-Code</title>
</head>
<script language="JavaScript">
var wort;
var wortcode;
var C;
function eindimensionales_array()
{
schluessel=new Array ("13", "23", "24", "25", "31", "11", "32", "15", "33", "34", "35", "41", "21", "42", "43", "44", "12", "22", "45", "14", "51", "52", "53", "54", "55");
wort=Polybios-Code.text.value;
wort=wort.toUpperCase;
C="";
for(zaehler=1; zaehler<=wort.length; zaehler++)
{
wortcode=wort.charCodeAt(zaehler);
wortcode=wortcode-64;
wortcode=schluessel[wortcode];
C=C.concat(String.fromCharCode(wortcode) );
}
alert ("C");
return false;
}
</script>
<body bgcolor="Lightseagreen">
<form name="Polybios-Code">
<h1>Verschlüsselung nach Polybios</h1>
<input type="text" name="text" cols="30" rows="10">
<input type="button" value="Verschlüsseln" name="verschlüsseln" onclick="eindimensionales_array();">
</body>
</html>