function borra_div_buscar_vademecum_avanzado(){
document.getElementById('div_vademecum_adv').innerHTML = '&nbsp;';	
}


function buscar_vademecum_avanzado(){
var division = document.getElementById('sel_division').value;
var nombre = document.getElementById('txt_nombre').value;
var accion = document.getElementById('txt_accion').value;
var indicaciones = document.getElementById('txt_indicaciones').value;
var composicion = document.getElementById('txt_composicion').value;
var img_alert = '<img src="images/alert.gif" border="0" align="absbottom" hspace="6" />';
var img_loading = '<img src="images/loading_naranja.gif" border="0" align="absbottom" hspace="6" />';

	if(division == 0 && trim(nombre) == '' && trim(accion) == '' && trim(indicaciones) == '' && trim(composicion) == ''){
	document.getElementById('div_vademecum_adv').innerHTML = img_alert + 'Debe ingresar / seleccionar al menos un criterio para la b&uacute;squeda.';
	return false;
	}

document.getElementById('div_vademecum_adv').innerHTML = img_loading + 'Buscando resultados, espere...';
return true;
}



function ir_buscar_vb(){
var nombre_bv = document.getElementById('txt_nombre_bv').value;
	
	if(trim(nombre_bv) == ''){
	alert('Ingrese el nombre (o parte del nombre) del medicamento.');
	return false;
	}
	if(trim(nombre_bv) == 'Nombre Medicamento'){
	alert('Ingrese el nombre (o parte del nombre) del medicamento.');
	return false;	
	}
	if(trim(nombre_bv) != ''){
	document.form_vb.submit();
	}
}
