var activeItem;
function showContent(divId,linkObj){
    var divObj = document.getElementById(divId);
    if(activeItem && activeItem!=divObj){      // Close previous opened item
          activeItem.style.display='none';      // The value of the checkbox matches the id of the div
    }
    var style='none';            
    if(divObj.style.display=='none')style='block'; //table-row
    divObj.style.display=style;            
    activeItem = divObj;      
}