Hi Thomas.

This line here:

$Schalter.onclick = f_Eingabe($Wert)

Should probably be like this:

$Schalter.onclick = 'f_Eingabe("$Wert")'

Let us know if this works better. If it does and need further discussion, we can discuss ...

-Shawn