
/////////////////////
//toggle cells/divs
//
function show(id){
tag = document.getElementsByTagName("div")
   for(x=0; x<tag.length; x++){
      if(tag[x].id.substr(0,2) == 'td'){
         document.getElementById(tag[x].id).style.display = 'none';
      }
   }
   document.getElementById(id).style.display = 'block';
}

function toggleCells(el, col1, col2){
for (i = 0; i < el.parentNode.childNodes.length; i++)
if (el.parentNode.childNodes[i].tagName)
el.parentNode.childNodes[i].style.backgroundColor=col2
el.style.backgroundColor=col1
}
//
//////end toggle cells

