// JavaScript Document
function mostrarListaCategoria(categoria, mostrar) {
	document.getElementById('categorias_' + categoria).style.display = (mostrar == true) ? "block" : "none";
}

function comprobarCheckbox(campo) {
	campo.value = (campo.checked) ? 1 : 0;
}

/*
	FUNCIONES AUXILIARES PANEL
*/
function confirmar_proyecto(p, a, opcion) {
	if(confirm("Por favor, confirme su elección. ¿Desea " + opcion + " el proyecto?")) {
		cargarContenido('/_libs/operaciones/panel/hojas_pedido/procesar.php?p=' + p + '&a=' + a + '&' + opcion, 'oportunidades');
	}
}
