This is definitely not the right forum.
Anyway, a common error with onLoad is that a lot of people are still in the stone age and don't use event listeners, so they try to attach more than one event to the document.body.onLoad attribute, but it doesn't work that way. When using it in that manner, you can't call more than one function. If this is the case, try this:
- document.body.onload = function(){foo();bar();};