Solved the problem
1: every image has a rollover. That is why the event is assigned to every image
There are 20 of them.
2:document.images was originally inspired by the idea that the user might have image display turned off. But your right, it is probably not necessary.
But I found the problem. It was pretty simple an stupid.
I converted the main page to DOCTYPE xhtml strict. That dissallows name
attribute in image and form tags. So I removed the name attributes. That
is why it didn't work. I converted back to xhtml transitional and add the
name attributes. That fixed it.