jaaa.... peinlich
<script language="javascript">
<!--//
function gener(form) {
var str = sernr;
var res = str.substr(5, 1);
var res = str.substr(12, 1);
var res = str.substr(9, 1);
var res = str.substr(13, 1);
var res = str.substr(10, 1);
document.getElementByName("code1").innerHTML = res;
}
//-->
</script>
<form>
<input type="text" name="sernr" size="14">
<input type="submit" onClick="gener(this.form)" value="Umwandeln">
<output type="output" name="code1">
</form>
soweit bin ich jetzt.... klappt aber nicht :(