Error: document.getElementById(elementname) has no properties
Warning: Element referenced by ID/NAME in the global scope. Use W3C standard document.getElementById() instead.
is what FireFox tells me.
I've tried a few variations of my code now and it's not having any of it.
Sorry I cant help you personally but I can point you to this recent article http://www.dustindiaz.com/seven-togglers/ from Dustin Diaz about 7 ways to toggle / show/hide with javascript.
However, I just found out he's switching hosts so you'll have to look at the google cache page to see it at the moment.
(he's got much more great javascript articles by the way)
You're mssing quotes around hideme2. Javascript is trying to parse that as a variable which is undefined
EDIT | Oh yeah and make sure you have id="hideme2" on the attributes for the element this refers to. name="hideme2" is wrong. Not sure if you've done that or if the error is being spooky
And lowercase "g". In JavaScript keywords start lowercase and change case for the first letter of each word:
getElementById()
getElementsByTagName()
The exception is the "Event" object. The reason for that is because "window" defaults to be the default top level object, and there's actually a window.event property already. "Event" is a top level object itself so this is needed to distinguish the two.
Definately go for: http://domscripting.com/ by Jeremy Keith
and
DHTML Utopia: Modern Web Design Using JavaScript & DOM http://www.sitepoint.com/books/ by Stuart Langridge
if you want to know about the new unobtrusive cross-browser DOM scripting stuff.