Thanks Victor,
I think I see how it works.
I do get some errors (an excepted '}' in line 36, I added another ). Also, I cannot get the layer to appear or disappear. I tried changing the visibility property of the style and in the script but to no avail. Basically, I want to have users click on an image or button and display a layer.
Ira