function showFormRecoverPassword() {
    var formRecoverPassword = document.getElementById('formRecoverPassword');
    if(formRecoverPassword.style.display == 'block')
        formRecoverPassword.style.display = 'none';
    else
        formRecoverPassword.style.display = 'block';
}

function showbysubject() {
    var sbj = document.getElementById('subject');
    window.location = '?pt=bookslist&i=0&subject='+sbj.value;
    return; 
}

function showbyauthor() {
    var sbj = document.getElementById('author');
    window.location = '?pt=bookslist&i=0&author='+sbj.value;
    return; 
}

function showbycollection() {
    var sbj = document.getElementById('collection');
    window.location = '?pt=bookslist&i=0&collection='+sbj.value;
    return; 
}

function toggle(divname) {
	alert(divname);
	var d = document.getElementById(divname);
	if(d.style.display=='none')
		d.style.display = 'block';
	else
		d.style.display = 'none';
}

