The forumid is determined in the link, like this:
PHP Code:
<a href="java script:showforumrules(420,512,'$session[sessionhash]','$foruminfo[forumid]')">Forum Rules</a>
But the javascript is not recognizing it. I guess what PPN was trying to do was pass the forumid through the link into the javascript, like the way the sessionhash variable is. But the problem is that the javascript is not properly interpreting the variable. I think it's gotta be a syntax problem with the javascript.
But in the meantime, I'll try the other stuff you mentioned.