Probably not, without more information.
If you asked me to guess, I would guess that you are passing a non-
existent function to 'observe'.
If you asked me to guess further, I would guess that you might be
writing a function call instead of a function,
so:
myelement.observe('click', myFunction);
sets 'myFunction' as the click handler for myelement, but
myelement.observe('click', myFunction()); //!!Almost always wrong!!
calls myFunction and sets the result (which is almost certainly not a
function) as the handler.
But I may be in completely the wrong area, since you haven't told us
anything about what you are doing.