// NOTE: The comments in this file are not stripped by the page constructor, because this file is loaded directly
//       by the browser via <script> tags. TODO: Perhaps change this to be content? Or at least go through a dispatcher
//       which could remove the comments.

/// <name>boxShowHide</name>
/// <summary>
/// Shows or hides the box content, depending on whether it is currently hidden or shown, respectively.
/// </summary>
/// <arg name="cellId">The cellId of the target box.</arg>
function boxShowHide(cellId) {
    var row = document.getElementById('sytadelBox'+cellId);
    var anchor;
    if (row.style.display == "none") {
        row.style.display = "block";
        anchor = document.getElementById('sytadelBoxLink'+cellId);
        anchor.innerHTML = '&#8211;';
    } else {
        anchor = document.getElementById('sytadelBoxLink'+cellId);
        anchor.innerHTML = '+';
        row.style.display = "none";
    }
}