// used to hide one element, and show another (e.g. switching between two // viewable states). function swtch(first, second) { document.getElementById(first).style.display = 'none'; document.getElementById(second).style.display = 'block'; }