'galleryImg' Example
<html> <body> <script> function function1() { document.all.myImage.galleryImg = "yes"; } </script> <input type="Button" id="b1" value='Turn Galleryimg "on"' onClick="function1();"> <img id="myImage" src="http://www.java2s.com/style/logo.png" alt="http://www.java2s.com" width="74" height="99"> </body> </html>