expandCollapse = function(anchorElm)
{
    var tableElm = anchorElm.parentNode.nextSibling;
    if (tableElm.nodeType == 3)
        tableElm = tableElm.nextSibling;
    
    var isCollapsed = (tableElm.style.display == 'none');
    var txt = anchorElm.firstChild.nodeValue.slice(2);
    var preFix;
    if (isCollapsed)
    {
        preFix = '<<';
        tableElm.style.display = '';
    }
    else
    {
        preFix = '>>';
        tableElm.style.display = 'none';
    }
    anchorElm.firstChild.nodeValue = preFix + txt;

    return false;
}
