This is on a web page? How are you creating the button? Could you post that code? You should be able to do this by setting the .style.display = "none" for the object, but not positive from the information that you have provided.
[red]"... isn't sanity really just a one trick pony anyway?! I mean, all you get is one trick, rational thinking, but when you are good and crazy, oooh, oooh, oooh, the sky is the limit!" - The Tick[/red]