/* Javascript available to all Benetech webapps */

// 	TODO: the showHide() function is being used with javascript hrefs
//  href="#" onclick="showHide...
// 	Not the friendliest way to do things
////////////////////////////////////////////////////////////////////////////////
// Toggle show/hide status of element.
function showHide(id) {
    if (document.getElementById){
        obj = document.getElementById(id);
        if (obj.style.display == "none"){
            obj.style.display = "";
        } else {
            obj.style.display = "none";
        }
    }
}

function help(url) {
    new LITBox(url,{type:'window',overlay:true});
}

function blankField(id) {
    elem = document.getElementById(id);
    elem.value="";
}

