Javascript function block help

Isn't this topic about the same thing as your previous one? You started to ask the question there.