function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
function campanias() {
	window.location.href='buscarcampanias.asp?tfAnio=2010';
} 
function enfrentamientos1() {
	window.location.href='buscarenfrentamientos.asp?Letra=a';
} 
function estadios1() {
	window.location.href='buscarestadios.asp?Letra=a';
} 
function jugadores1() {
	window.location.href='buscarjugadores.asp?Letra=a';
} 
function entrenadores1() {
	window.location.href='buscartecnicos.asp?Letra=a';
} 
function enfrentamientos() {
	window.location.href='buscarenfrentamientos.asp?Letra=a';
} 
function estadios() {
	var caracter = "b";
//	if (caracter.substring(0,1) !="")
//		{ 
//		window.location.href='buscarestadios.asp?Letra=a';
//		}
//else 
//	{ 
	window.location.href='buscarestadios.asp?Letra=a';
//	}
} 
function jugadores() {
	window.location.href='buscarjugadores.asp?Letra=a';
} 
function entrenadores() {
	window.location.href='buscartecnicos.asp?Letra=a';
} 
function records() {
	window.location.href='buscarresultados.asp';
} 
function proximorival() {
	window.location.href='enfrentamientos.asp?CodRiv=135&OpTipoTorneos=6';
//	window.location.href='boca_tour_australia_nueva_zelanda.asp';	
} 	
function ultimopartido() {
	window.location.href='ultimo_partido.asp';
//	window.location.href='partidos_suspendidos_entre_boca_y_river.asp';
} 	
function acercade() {
	window.location.href='acerca_de_historiadeboca.html';
} 	
function titulos(){
	window.location.href='titulos.asp';
}
function validarEstadios(){with(document.formBuscaEstadios){ 
	if(AnioInicial.value<"1905"){alert("Por favor ingrese un aņo mayor a 1905");AnioInicial.focus();return false;} 
	else if(AnioInicial.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioInicial.focus();return false;} 
	else if(AnioFinal.value<"1905"){alert("Por favor ingrese un aņo mayor a 1905");AnioFinal.focus();return false;} 
	else if(AnioFinal.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioFinal.focus();return false;} 
	if(AnioInicial.value>AnioFinal.value){alert("El aņo inicial debe ser menor al aņo final");AnioInicial.focus();return false;} 
}}

function validarResultados(){with(document.formBuscaResultados){ 
	if(AnioInicial.value<"1905"){alert("Por favor ingrese un aņo mayor a 1905");AnioInicial.focus();return false;} 
	else if(AnioInicial.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioInicial.focus();return false;} 
	else if(AnioFinal.value<"1905"){alert("Por favor ingrese un aņo mayor a 1905");AnioFinal.focus();return false;} 
	else if(AnioFinal.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioFinal.focus();return false;} 
	if(AnioInicial.value>AnioFinal.value){alert("El aņo inicial debe ser menor al aņo final");AnioInicial.focus();return false;} 
}}

function menu() {
	window.location.href='default.asp';
} 
function bombonera() {
	window.location.href='canchas.asp?CodCan=1&AnioInicial=1940&AnioFinal=2010&OpTipoTorneos=6';
} 
function monumental() {
	window.location.href='canchas.asp?CodCan=7&AnioInicial=1938&AnioFinal=2010&OpTipoTorneos=6';
} 
function gasometro() {
	window.location.href='canchas.asp?CodCan=3&AnioInicial=1993&AnioFinal=2010&OpTipoTorneos=6';
} 
function doblevisera() {
	window.location.href='canchas.asp?CodCan=4&AnioInicial=1928&AnioFinal=2010&OpTipoTorneos=6';
} 
function cilindro() {
	window.location.href='canchas.asp?CodCan=6&AnioInicial=1950&AnioFinal=2010&OpTipoTorneos=6';
} 
function centenario() {
	window.location.href='canchas.asp?CodCan=25&AnioInicial=1930&AnioFinal=2010&OpTipoTorneos=6';
} 
function amalfitani() {
	window.location.href='canchas.asp?CodCan=12&AnioInicial=1951&AnioFinal=2010&OpTipoTorneos=6';
} 
function morumbi() {
	window.location.href='canchas.asp?CodCan=72&AnioInicial=1950&AnioFinal=2010&OpTipoTorneos=6';
} 
function cambiarDisplay(id) {
  if (!document.getElementById) return false;
  fila = document.getElementById(id);
  if (fila.style.display != "none") {
    fila.style.display = "none"; //ocultar fila
  } else {
    fila.style.display = ""; //mostrar fila
  }
}
function tops() {
	window.location.href='buscartops.asp';
}
function validarTop(){with(document.formBuscarTops){ 
	if(AnioInicial2.value<"1905"){alert("Por favor ingrese un aņo mayor a 1905");AnioInicial2.focus();return false;} 
	else if(AnioInicial2.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioInicial2.focus();return false;} 
	else if(AnioFinal2.value<"1905"){alert("Por favor ingrese un aņo mayor a 1905");AnioFinal2.focus();return false;} 
	else if(AnioFinal2.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioFinal2.focus();return false;} 
	if(AnioInicial2.value>AnioFinal2.value){alert("El aņo inicial debe ser menor al aņo final");AnioInicial2.focus();return false;} 
}}
function validarDT(){with(document.formBuscaTecnicos){ 
	if(AnioInicial.value<"1930"){alert("Por favor ingrese un aņo mayor a 1930");AnioInicial.focus();return false;} 
	else if(AnioInicial.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioInicial.focus();return false;} 
	else if(AnioFinal.value<"1930"){alert("Por favor ingrese un aņo mayor a 1930");AnioFinal.focus();return false;} 
	else if(AnioFinal.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioFinal.focus();return false;} 
	if(AnioInicial.value>AnioFinal.value){alert("El aņo inicial debe ser menor al aņo final");AnioInicial.focus();return false;} 
}}

function bianchi() {
	window.location.href='tecnicos.asp?CodTec=58&OpTipoTorneos=6';
} 
function lorenzo() {
	window.location.href='tecnicos.asp?CodTec=34&OpTipoTorneos=6';
} 
function distefano() {
	window.location.href='tecnicos.asp?CodTec=28&OpTipoTorneos=6';
} 
function garasini() {
	window.location.href='tecnicos.asp?CodTec=6&OpTipoTorneos=6';
} 
function basile() {
	window.location.href='tecnicos.asp?CodTec=70&OpTipoTorneos=6';
} 
function fortunato() {
	window.location.href='tecnicos.asp?CodTec=1&OpTipoTorneos=6';
} 
function validarJugador(){with(document.formBuscaJugadores){ 
	if(AnioInicial.value<"1905"){alert("Por favor ingrese un aņo mayor a 1905");AnioInicial.focus();return false;} 
	else if(AnioInicial.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioInicial.focus();return false;} 
	else if(AnioFinal.value<"1905"){alert("Por favor ingrese un aņo mayor a 1905");AnioFinal.focus();return false;} 
	else if(AnioFinal.value>"2010"){alert("Por favor ingrese un aņo menor a 2010");AnioFinal.focus();return false;} 
	if(AnioInicial.value>AnioFinal.value){alert("El aņo inicial debe ser menor al aņo final");AnioInicial.focus();return false;} 
}}
function guillermo() {
	window.location.href='jugadores.asp?CodJug=747&OpTipoTorneos=6';
} 
function gatti() {
	window.location.href='jugadores.asp?CodJug=444&OpTipoTorneos=6';
} 
function rojitas() {
	window.location.href='jugadores.asp?CodJug=328&OpTipoTorneos=6';
} 
function maradona() {
	window.location.href='jugadores.asp?CodJug=515&OpTipoTorneos=1';
} 
function mouzo() {
	window.location.href='jugadores.asp?CodJug=393&OpTipoTorneos=6';
} 
function palermo() {
	window.location.href='jugadores.asp?CodJug=750&OpTipoTorneos=6';
} 
function rattin() {
	window.location.href='jugadores.asp?CodJug=262&OpTipoTorneos=6';
} 
function riquelme() {
	window.location.href='jugadores.asp?CodJug=727&OpTipoTorneos=6';
} 
function marzolini() {
	window.location.href='jugadores.asp?CodJug=300&OpTipoTorneos=6';
} 
function varallo() {
	window.location.href='jugadores.asp?CodJug=8&OpTipoTorneos=6';
} 
function sune() {
	window.location.href='jugadores.asp?CodJug=368&OpTipoTorneos=6';
} 
function boye() {
	window.location.href='jugadores.asp?CodJug=120&OpTipoTorneos=6';
} 
function vsriver() {
	window.location.href='enfrentamientos.asp?CodRiv=17';
} 
function vssanlorenzo() {
	window.location.href='enfrentamientos.asp?CodRiv=13';
} 
function vsindependiente() {
	window.location.href='enfrentamientos.asp?CodRiv=5';
} 
function vsracing() {
	window.location.href='enfrentamientos.asp?CodRiv=9';
} 

function validarcampanias(){with(document.formAnio){ 
	if(tfAnio.value<1905){alert("Por favor ingrese un aņo mayor a 1905");tfAnio.focus();return false;} 
	else if(tfAnio.value>2010){alert("Por favor ingrese un aņo menor a 2010");tfAnio.focus();return false;} 
	else document.formAnio.submit(); 
}}
function nac69() {
	window.location.href='campanias.asp?tfTipoTorneo=13&tfAnio=1969';
} 
function nac76() {
	window.location.href='campanias.asp?tfTipoTorneo=22&tfAnio=1976';
} 
function int77() {
	window.location.href='campanias.asp?tfTipoTorneo=300&tfAnio=1977';
} 
function met81() {
	window.location.href='campanias.asp?tfTipoTorneo=18&tfAnio=1981';
} 
function ap98() {
	window.location.href='campanias.asp?tfTipoTorneo=41&tfAnio=1998';
} 
function lib00() {
	window.location.href='campanias.asp?tfTipoTorneo=109&tfAnio=2000';
} 
function lib03() {
	window.location.href='campanias.asp?tfTipoTorneo=109&tfAnio=2003';
} 
function ap05() {
	window.location.href='campanias.asp?tfTipoTorneo=41&tfAnio=2005';
} 

function biografia() {
	div = document.getElementById('biografia');
	div.style.display = '';
	div = document.getElementById('estadisticas');
	div.style.display='none';
}
function estadisticas() {
	div = document.getElementById('biografia');
	div.style.display = 'none';
	div = document.getElementById('estadisticas');
	div.style.display='';
}
function norecorrepartidos() {
	if (tfPartido.value=0) {
		div = document.getElementById('partidoant');
		div.style.display = 'none';
		div = document.getElementById('partidosig');
		div.style.display='none';
	}
}
function biografiaDT() {
	div = document.getElementById('biografia');
	div.style.display = '';
	div = document.getElementById('estadisticas');
	div.style.display='none';
	div = document.getElementById('fecha');
	div.style.display='none';
	div = document.getElementById('partido');
	div.style.display='none';
	div = document.getElementById('torneo');
	div.style.display='none';
}
function estadisticasDT() {
	div = document.getElementById('biografia');
	div.style.display = 'none';
	div = document.getElementById('estadisticas');
	div.style.display='';
	div = document.getElementById('fecha');
	div.style.display='';
	div = document.getElementById('partido');
	div.style.display='';
	div = document.getElementById('torneo');
	div.style.display='';
}

function ingles() {
	window.location.href='http://translate.google.com/translate?js=y&prev=_t&hl=es&ie=UTF-8&layout=1&eotf=1&u=' + window.location.href + '&sl=es&tl=en';
} 
function portugues() {
	window.location.href='http://translate.google.com/translate?js=y&prev=_t&hl=es&ie=UTF-8&layout=1&eotf=1&u=' + window.location.href + '&sl=es&tl=pt';
//	http://translate.google.com/translate?hl=es&sl=es&tl=pt&u=http%3A%2F%2Fwww.historiadeboca.com.ar%2F"
} 
function aleman() {
	window.location.href='http://translate.google.com/translate?js=y&prev=_t&hl=es&ie=UTF-8&layout=1&eotf=1&u=' + window.location.href + '&sl=es&tl=de';
//	http://translate.google.com/translate?hl=es&sl=es&tl=de&u=http%3A//www.historiadeboca.com.ar/
} 
function frances() {
	window.location.href='http://translate.google.com/translate?js=y&prev=_t&hl=es&ie=UTF-8&layout=1&eotf=1&u=' + window.location.href + '&sl=es&tl=fr';
//http://translate.google.com/translate?hl=es&sl=es&tl=fr&u=http%3A%2F%2Fwww.historiadeboca.com.ar%2F	
} 
function italiano() {
	window.location.href='http://translate.google.com/translate?js=y&prev=_t&hl=es&ie=UTF-8&layout=1&eotf=1&u=' + window.location.href + '&sl=es&tl=it';
//http://translate.google.com/translate?hl=es&sl=es&tl=it&u=http%3A%2F%2Fwww.historiadeboca.com.ar%2F
} 
function japones() {
	window.location.href='http://translate.google.com/translate?js=y&prev=_t&hl=es&ie=UTF-8&layout=1&eotf=1&u=' + window.location.href + '&sl=es&tl=ja';
//http://translate.google.com/translate?hl=es&sl=es&tl=ja&u=http%3A%2F%2Fwww.historiadeboca.com.ar%2F	
} 
