plugins – Pure Javascript ow function is not a function

I'm working on my own plugin for WordPress.
Now I have written a function in pure Java (not Jquery). This function is triggered by onchange.
If the function is triggered, the error "Uncaught TypeError: the type of control is not a function". Is there anyone they know about this problem?