Disable a object

I want to disable a GUITexture object and later enable it. How do i do this using JavaScript?

guiTexture.gameObject.active = false; //turn it off
guiTexture.gameObject.active = true; //turn it on