function objetoAjax(){

	var xmlhttp=false;

	try {

		xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");

	} catch (e) {

		try {

		   xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");

		} catch (E) {

			xmlhttp = false;

  		}

	}



	if (!xmlhttp && typeof XMLHttpRequest!='undefined') {

		xmlhttp = new XMLHttpRequest();

	}

	return xmlhttp;

}



function cargar_fotos_otros(){

document.getElementById('carrera').style.display = 'none';

window.location.href="imagenes_mundial_otros.php";

}



function cargar_fotos(){

document.getElementById('carrera').style.display = 'none';	

window.location.href="imagenes_mundial.php";

}



function cargar_fotos_carrera(){
	var carrera = document.getElementById("carrera");

    var carrera2 = carrera.options[carrera.selectedIndex].value;	
		var ano = document.getElementById("ano").value;
if(carrera2=="")
	window.location.href="imagenes_mundial.php";
else	
	window.location.href="imagenes_mundial_carrera.php?id="+carrera2+"&ano="+ano;
}


function cargar_fotos_otros_cev(){

document.getElementById('carrera').style.display = 'none';

window.location.href="imagenes_CEV_otros.php";

}



function cargar_fotos_cev(){

document.getElementById('carrera').style.display = 'none';	

window.location.href="imagenes_CEV.php";

}



function cargar_fotos_carrera_cev(){

	var carrera = document.getElementById("carrera");

    var carrera2 = carrera.options[carrera.selectedIndex].value;	

	if(carrera2=="")
	window.location.href="imagenes_CEV.php";
else	
	window.location.href="imagenes_CEV_carrera.php?id="+carrera2;

}