<SCRIPT LANGUAGE="JAVASCRIPT">
<!--
var charCodes=new Array(36); charCodes["a"]=".-.";
charCodes["b"]="--.";
//itd,,,
var temp=''
function encode() {
document.morsecode.codebox.value="";
temp=''
var chars=document.morsecode.chars.value.split("");
for (a=0; a<chars.length; a++) {
if (chars[a]!=" ") {
if (window.charCodes[chars[a]]) {
document.morsecode.codebox.value+=charCodes[chars[a]]+"";
temp+=chars[a]+"="+charCodes[chars[a]]+"\n";
}
else
temp+=chars[a]+"=(None)\n";
}
else temp+="\n";
}
}
// -->
</SCRIPT>
<FORM NAME="morsecode">
<INPUT TYPE="TEXT" NAME="chars" size="28" value="Tutaj wpisz tekst"> <INPUT TYPE="BUTTON" VALUE="Zakoduj" onClick="encode()"><BR><BR>
<TEXTAREA NAME="codebox" cols="50" rows="11" style="width:70%" wrap="virtual"> </TEXTAREA><br /><INPUT TYPE="BUTTON" VALUE="Kopjuj do schowka" onClick="document.morsecode.codebox.select(); document.execCommand('Copy');">
</FORM>