﻿function toggle(id) 
{ 
if(document.getElementById(id).style.display=='none' ) 
{

var divs = document.getElementsByTagName("tr"); 
    for (var i=0; i<divs.length; i++) 
      if (divs[i].id.indexOf("sub") == 0) divs[i].style.display = "none"; 

document.getElementsBy
   document.getElementById(id).style.display = ''; 
} 
else 
{document.getElementById(id).style.display = 'none'; 
} 
} 


function genericPopup(href, width, height, scrollbars)
{
var param = "width="+width+", height="+height+", scrollbars="+scrollbars+", resizable, status";

return window.open(href, "", param);
}

