
function cambioBuscador(tipobuscador) {
	if(tipobuscador == "equipos") {
		document.getElementById("pestvolcado").style.display = "none";
		document.getElementById("divfrmvolcado").style.display = "none";
		document.getElementById("pestequipos").style.display = "block";
		document.getElementById("divfrmequipos").style.display = "block";
		document.frmNoticias.selectnoticias.value = "blog";
		
	} else {
		document.getElementById("pestequipos").style.display = "none";
		document.getElementById("divfrmequipos").style.display = "none";
		document.getElementById("pestvolcado").style.display = "block";
		document.getElementById("divfrmvolcado").style.display = "block";
		document.frmNoticias.selectnoticias.value = "periodico";
		
	}
}

function cambioBuscNoticias() {
	var frm = document.frmNoticias;
	if(frm.selectnoticias.value == "periodico") {
		document.getElementById("buscador_blogs").style.display = "none";
		document.getElementById("buscador_periodico").style.display = "block";
	} else {
		document.getElementById("buscador_periodico").style.display = "none";
		document.getElementById("buscador_blogs").style.display = "block";
	}
}
/*
function buscarNoticias() {
	var frm = document.frmBuscadorNoticias;
	frm.action = "noticiasb.php";
	frm.submit();
}
*/

function buscarBlogs() {
	var frm = document.frmNoticias;
	if(frm.deporte_blogs.value == "") {
		alert("Por favor, selecciona al menos el deporte");
		return;
	}
	frm.selectnoticias.value = "blog";
	frm.action = frm.dirurl.value + "/noticias/resultados.php";
	frm.submit();
}