﻿
///////Place this script into web page
//<script language=JavaScript src="toggletbody.js"></script>
      
////////Place this script into web page or in the CSS file
/*<style type="text/css">
    tbody.on  { display:table-row-group; }
    tbody.off { display:none; }
  </style>
*/
   		  
//<![CDATA[
function toggleTbody(id) {
 if (document.getElementById) {
   var tbod = document.getElementById(id);
   if (tbod && typeof tbod.className == 'string') {
     if (tbod.className == 'off') {
         tbod.className = 'on';
      }
      else {
          tbod.className = 'off';
      }
   }
 }
 return false;
}

function toggleTbodyOn(id) {
 if (document.getElementById) {
  var tbod = document.getElementById(id);
   if (tbod && typeof tbod.className == 'string') {
    if (tbod.className == 'off') {
     tbod.className = 'on';
    } 
    else {
     tbod.className = 'off';
     }
   }
 }
 return false;
}
           
function toggleTbodyOff(id) {
 if (document.getElementById) {
  var tbod = document.getElementById(id);
  if (tbod && typeof tbod.className == 'string') {
    if (tbod.className == 'off') {
      tbod.className = 'off';
     } 
     else {
         tbod.className = 'off';
     }
   }
 }
return false;
}
           
//]]>


// Collapsible Menu
function toggleMenu(objID) {
if (!document.getElementById) return;
var ob = document.getElementById(objID).style;
ob.display = (ob.display == 'block')?'none': 'block';
}


/*** css dropdown ***/
function toggle( targetId ){
 if (document.getElementById){
  target = document.getElementById( targetId );
   if (target.style.display == "none"){
    target.style.display = "";
   } 
   else {
      target.style.display = "none";
     }
   }
  return false;
}



      