The function works find with a plan onclick="perlfunction('string','string','results')"
problem happends when i am using the setInterval function in javascript.
I am not good in javascript and don't have a debugger or editor. This is causing me to find the errors myself. I belive webserver (tomcat) doesn't show the error on the client side (javascript).