yet another JavaScript error

...I "love" JavaScript / older browsers sometimes :(