(function foo(n) {if (n > 6) return; document.getElementById('form_' + n).style.display = 'none'; document.getElementById('form_' + n + 's').style.display = ''; return foo(++n); })(1);