I was reading through a book that talked about unobtrusive javascript, and it gave this example of how to trigger a function instead of using an inline onmouseover event handler.

Code:
document.getElementById("RandomElementId").onmouseover=RandomFunction; 
I thought this would be cool, but I can't seem to find a way to pass parameters to the function this way. I assumed you just use RandomFunction(parameter1,parameter2); but no go.

Is there a different syntax for this, or does this technique forbid using parameters?