function swapLoginForm(l) { if( l == 'forgotpassword' ) { document.getElementById('signin-form').style.display = 'none'; document.getElementById('forgotpassword-form').style.display = 'block'; document.getElementById('forgotemail').value = document.getElementById('email').value; } else { document.getElementById('signin-form').style.display = 'block'; document.getElementById('forgotpassword-form').style.display = 'none'; } return true; }