// JavaScript Document

<!--
   if (document.layers) {n=1;ie=0}
   if (document.all) {n=0;ie=1}
   
function mOvr(src,clrOver) {
    if (!src.contains(event.fromElement)) {
	  src.style.cursor = 'hand';
	  src.bgColor = clrOver;
      //event.srcElement.style.fontWeight = "bold";
	}
}

function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.style.cursor = 'default';
	  src.bgColor = clrIn;
      //event.srcElement.style.fontColor = "#800000";
	}
}

function mClk(src, destino, ventana) {
	ventana = window.open(destino,ventana);
	ventana.focus();
	document.returnValue = false;
}
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&eacute;rcoles', 'Jueves', 'Viernes', 'S&aacute;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) {                // ano tiene 2 dígitos 19xx (más de 80)
    ano2 = "20" + ano
  } 
  else if (ano<=99) {               // ano tiene 2 dígitos 20xx (menor de 80)
    ano2 = "19" + ano
  }
  else if (ano<1000) {              // ano tiene 3 dígitos (100 es 2000)
    ano2 = eval(ano) + eval(1900)
  }
  else {
    ano2 = ano                      // ano tiene 4 dígitos
  }

  ahora = ndia[dia] + "  " + eval(aux.substring(7, 10)) + " de " + nmes[mes] + " de " + ano2
  return ahora
}

function abrir(ancho,alto,ruta,target,scroll) 
{
	
	ventana = window.open(ruta,target,"scrollbars=" + scroll + ",toolbar=no,location=no,directories=no,status=no,resizable=no,copyhistory=no,width="+ancho+",height="+alto+",top=0,left=0,");
	ventana.focus();
	document.returnValue = false;
}

function cerrar() 
{
	
	window.close();
}


//-->
