I tried that, but to get things to work properly, I had to initially set the display to none. It seems to me that no matter what it's current state, it returns the display as none.
I have to check that again, as I may well have made a mistake in coding when I was testing that.
I am just learning javascript.
Why don't you paste your function, as well as the Element with the ID that you want to show hide... it will help us debug your code. As it stands, Chops example should work perfectly.