////////////////////////////////////////////////////////////////////////
//
// Filename:    js/tooltip.js
// Purpose:     Show and hide tooltips
// Method:      Look up by id and toggle the CSS display attribute.
// Author:      J.van.der.Steen@gobase.org
// Date:        2006-02-23
//
////////////////////////////////////////////////////////////////////////

function tooltip(id, show)
//
// id is the tooltip element id
// show is boolean indicating whether to show or hide the tooltip element
//
{
    if (element = document.getElementById(id)) {
        if (show) {
            element.style.display = 'block';
        } else {
            element.style.display = 'none';
        }
    }
}
