function swapDisplay(tdid) { var theStyle = document.getElementById(tdid).style; if (theStyle.display == '') { theStyle.display = 'none' return 0; } else { theStyle.display = ''; return 1; } }