// JavaScript Document
function Centrado(mypage,myname,w,h,scroll,pos)
{
	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
	if(win.focus){win.focus();}
}
function fav() 
{
	var browsName = navigator.appName; 
	if (browsName == "Microsoft Internet Explorer") { 
	window.external.AddFavorite('http://www.arandactiva.com','Arandaactiva.com');
	} else 
	if (browsName == "Netscape") {
	alert ("\nPara agregar www.arandactiva.com a tus favoritos pulsa CTRL+D");
	} 
}
<!--
function Extras(mypage,myname,w,h,scroll,pos)
{
	if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
	if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
	else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
	settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no';
	win=window.open(mypage,myname,settings);
	if(win.focus){win.focus();}
}
function cambio(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}
function dep_form(){
if (document.juegos2.id_deporte.value==''){
		alert("Seleccione un deporte.");
		document.juegos2.id_deporte.focus();
		return(false);
	}
	if (document.juegos2.timestamp.value==''){
		alert("Selecciona una fecha inicial.");
		document.juegos2.timestamp.focus();
		return(false);
	}
		if (document.juegos2.timestamp2.value==''){
		alert("Selecciona una fecha final.");
		document.juegos2.timestamp2.focus();
		return(false);
	}
		var fechac;
		var dia;
		var mes;
		var anio;
		var fechatotal=new Array();
		var fechatotal2;
if (document.juegos2.timestamp.value!=""){		
		fechac=document.juegos2.timestamp.value;
		fechatotal=fechac.split('/');
		dy=fechatotal[0];
		if (dy.length==1){
		dia="0"+fechatotal[0]}
		else{
		dia=fechatotal[0]
		}
		ms=fechatotal[1];
		if (ms.length==1){
		mes="0"+fechatotal[1]}
		else{
		mes=fechatotal[1]
		}
		anio=fechatotal[2];
		fechatotal2=anio+'/'+mes+'/'+dia;
		fechatotal3=anio+''+mes+''+dia;
		document.juegos2.desde.value=fechatotal2;
	}
if (document.juegos2.timestamp2.value!=""){		
		fechac=document.juegos2.timestamp2.value;
		fechatotal=fechac.split('/');
		dy=fechatotal[0];
		if (dy.length==1){
		dia="0"+fechatotal[0]}
		else{
		dia=fechatotal[0]
		}
		ms=fechatotal[1];
		if (ms.length==1){
		mes="0"+fechatotal[1]}
		else{
		mes=fechatotal[1]
		}
		anio=fechatotal[2];
		fechatotal2=anio+'/'+mes+'/'+dia;
		fechatotal4=anio+''+mes+''+dia;
		document.juegos2.hasta.value=fechatotal2;
	}
if (fechatotal4 < fechatotal3){
		alert("La Fecha Final debe ser       \nmayor que la Fecha Inicial.");
		return(false);
	}
}