Is it worth using mini functions in JavaScript? Example:
function setDisplay(id, status) { document.getElementById(id).style.display = status; }