Future hints, when you are writing code from the server to be handled by JavaScript. Do a view source on the page. You will always find the error a lot easier! Another thing, use the JavaSctip Console on Mozilla or Firefox, it gives better error descriptions.
And if you have DOM elements dynamically added/modified through javascript, Firefox will let you view the source of highlighted HTML elements, even if it's different from the original source.
Don't get me started about those stupid light bulbs.