/* -----------------------------------------------------------------------------
function: showBlockElement (elementId)

Function for showing a block-level element.
----------------------------------------------------------------------------- */
function showBlockElement (elementId) {

    // Function variables
    var _obj;

    // Check for elementId existance
    if (_obj = document.getElementById (elementId)) {

        // Set the styles on the object to be displayed as a block
        _obj.style.display  = "block";
    }
}


/* -----------------------------------------------------------------------------
function: hideBlockElement (elementId)

Function for hiding a block-level element.
----------------------------------------------------------------------------- */
function hideBlockElement (elementId) {

    // Function variables
    var _obj;

    // Check for elementId existance
    if (_obj = document.getElementById (elementId)) {

        // Set the styles on the object to not to be displayed
        _obj.style.display  = "none";
    }
}


/* -----------------------------------------------------------------------------
function: closeWindowOnTimeout (timeout)

Function for closing a window on a timeout
----------------------------------------------------------------------------- */
function closeWindowOnTimeout (timeout) {

    // Just make the call inline.
    // NOTE: Check if the window is allow to be closed
    setTimeout('window.close ()', timeout);
}
