//Funciones varias




function abreWinX(theName,theUrl){
	theWindow2 = window.open(theUrl,theName,'top=15, left=60, width=600, height=650, toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0');
}	

function comprobar() {
var busqueda=document.buscador.txtKeywords.value;
if (busqueda==""){alert ("Debe insertar la palabra o frase a buscar");} else {document.buscador.submit();}
}

function comprobar2() {
var login=document.foro.login.value;
var pass=document.foro.password.value;
if ((login=="") || (pass=="")){alert ("Debe insertar el login y password");} else {document.foro.submit();}
}

function comprobar3() {
var textoo=document.responder.texto.value;
if (textoo==""){alert ("Debe insertar su respuesta");} else {document.responder.submit();}
}


/////////////////////
// Funciones de Fecha
function Item() {
  this.length = Item.arguments.length;
  for (var i = 0; i < this.length; i++)
    this[i] = Item.arguments[i];
}

function Fecha() {
  var ndia = new Item('Domingo','Lunes','Martes','Miércoles','Jueves','Viernes','Sábado');
  var nmes = new Item('Enero','Febrero','Marzo','Abril','Mayo','Junio','Julio','Agosto','Septiembre','Octubre','Noviembre','Diciembre');
  var ahora; var fecha=new Date(); var ano=fecha.getYear(); var mes=fecha.getMonth(); var dia=fecha.getDay(); var aux=""+fecha;
  if (ano<10) { ano2 = "200" + eval(ano); }
  else if (ano<80) { ano2 = "20" + ano; } // ano tiene 2 dígitos 19XX (>80)
  else if (ano<=99) { ano2 = "19" + ano; } // ano tiene 2 dígitos 20XX (<80)
  else if (ano<1000) { ano2 = eval(ano) + eval(1900); } // ano tiene 3 dígitos (100 es 2000)
  else { ano2 = ano; } // ano tiene 4 dígitos
  ahora = ndia[dia] + ", " + eval(aux.substring(7, 10)) + " de " + nmes[mes] + " de " + ano2;
  return ahora;
}

function abreWin(theUrl){
	theWindow = window.open(theUrl,'Jornadas','top=30, left=60, width=600, height=650, toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0');
} 

function abreWin2(theUrl){
	theWindow3 = window.open(theUrl,'BancodelDeporte','top=16, left=60, width=600, height=650, toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=yes,resizable=0');
} 