function TabToggle(root,index)
{
    var child;
    var node = document.getElementById(root);
    var children = node.childNodes;
    var counter = 0;

    for(var i = 0; i < children.length; i++)
    {
        child = children[i];
        
        if (child.style == null)
        {
            continue;
        }
        if (counter != index-1)
        {
            child.style.display = "none";
            counter++;
        }
        else
        {
            child.style.display = "block";
            counter++
        }
    }
   
}
    
