function BuscarTitulos(){
    var especialidad    = new String(document.getElementById('especialidad').value);
	var titulo    		= new String(document.getElementById('titulo').value);
    var autor    		= new String(document.getElementById('autor').value);
    var isbn            = new String(document.getElementById('isbn').value);
    var error           = new String('');

	if ((especialidad.length == 0) && (autor.length == 0) && (titulo.length == 0) && (isbn.length == 0))
		error += '  Debe completar al menos un campo.';

	if(error.length == 0){
		document.getElementById('cargando').style.display = '';
		document.getElementById('frmBuscarTitulos').submit();
	}
	else{
		alert(error);
	}

}

function ShowForm(){
	//document.getElementById('comentariosForm').style.display = '';
	Effect.toggle('comentariosForm', 'blind', { duration: 0.5 }); return false;
}

function BuscarEspecialidad(pEspecialidad){
	document.getElementById('cargando').style.display = '';
    document.getElementById('especialidad').value = pEspecialidad;
    document.getElementById('frmBuscarTitulos').submit();
}

function BuscarAutor(pAutor){
	document.getElementById('cargando').style.display = '';
    document.getElementById('autor').value = pAutor;
    document.getElementById('frmBuscarTitulos').submit();
}

function IrAPagina(pPagina, pProx, pNov){
	document.getElementById('cargando').style.display = '';
    document.getElementById('pagina').value = pPagina;
	document.getElementById('proxlanz').value = pProx;
	document.getElementById('novedades').value = pNov;
    document.getElementById('frmBuscarTitulos').submit();

}
function funOcultaDiv(obj) {
	document.getElementById(obj).style.display = "none";	
}

function funMuestraDiv(obj) {
	document.getElementById(obj).style.display = "inline";	
}