Yes, the attachEvent call is the problem since it doesn't exist in FF.
Btw, if you know there's an error, please include the whole error message (and preferable the whole code) when posting. It can reduce the time it takes to analyze the problem to a few seconds in most cases.