I re-checked - it's so easy, damn bug:
function 1() ist not a valid declaration, should be:
function myfunction1()
or something like that.
also
function2()
is totally wrong, see above ...
pah, that should not have been be so difficult to detect, sorry.
if you wonder how, see the functions reference in the manual.