function on_load() {
	if (document.getElementById('login_form')) {
		the_form = document.getElementById('login_form');
		the_form.style.display = 'none';

		document.getElementById('login_link').onclick = function(){
			the_form.style.display = 'block';
			this.style.display = 'none';
			the_form.style.borderLeft = 'none';
			return false;
		};
	}
}

function show_login()
{
	if (document.getElementById('login_form')) {
		var the_form = document.getElementById('login_form');
		var login_link = document.getElementById('login_link');
		var redirect_to = document.getElementById('redirect_to');
                the_form.style.display = 'block';
                login_link.style.display = 'none';
                the_form.style.borderLeft = 'none';
		redirect_to.value = redirect_to.value + '#comments';
        }
}
