function toggleLayer(theid){ 
//var thearray= new Array("idone","idtwo", "idthree"); 
for(i=0; i<daArray.length; i++){ 
      if(daArray[i] == theid){
		  if(document.getElementById) // this is the way the standards work
		  elem = document.getElementById(theid);
		  else if(document.all) // this is the way old msie versions work
		  elem = document.all[theid];
		  else if(document.layers) // this is the way nn4 works
		  elem = document.layers[theid];
		  vis = elem.style;
		  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
		  vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
		  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
      }else{ 
		  if(document.getElementById) // this is the way the standards work
		  elem = document.getElementById(daArray[i]);
		  else if(document.all) // this is the way old msie versions work
		  elem = document.all[daArray[i]];
		  else if(document.layers) // this is the way nn4 works
		  elem = document.layers[daArray[i]];
		  vis = elem.style;
		  vis.display ='none';
      } 
   } 
}