I am using this Javascript for a tabbed menu and just noticed that in s=document.getElementById(t); ds=s.getElementsByTagName('div');l=ds.length; i=y=0;, that "s" in undefined. Any ideas how to make this work. Thanks for your help.