function showBlock(id) {
    var d = document.getElementById(id);
    if (!d) return;
    (d = d.style).display = d.display ? '' : 'none';
}
