
function toggleComment(linkSpan)
{
    var commentSpan = linkSpan.previousSibling.previousSibling;
    var dotSpan = linkSpan.previousSibling;
    
    if (commentSpan.style.display == 'none')
    {
        commentSpan.style.display = 'inline';
        dotSpan.style.display = 'none';
        linkSpan.innerHTML = '<img src="/quest/images/common/collapse.gif" alt="Click here to hide the full text"  border="0" />';
    }
    else
    {
        commentSpan.style.display = 'none';
        dotSpan.style.display = 'inline';
        linkSpan.innerHTML = '<img src="/quest/images/common/expand.gif" alt="Click here to see the full text" border="0"/>';
    }
}

// Shows or hides a tr
// id is the id of the rows child, show is a boolean of hide or show
function showParentRow(id, show)
{
    var row = document.getElementById(id).parentNode;
    while (row != null && (row.tagName.toUpperCase() != 'TR'))
    {
        row = row.parentNode;
    }

    if (show)
    {
        row.style.display = 'table-row'
    }
    else
    {
        row.style.display = 'none'
    }
}

