
/* This script and all others are copyright (c) 2002
 by Wilhem Guido Vilalta (wlgvi@hotmail.com*/

// Inicia Fecha del día

/* DETECTA EL TIPO DE NAVEGADOR ERA PARA FECHA PERO SE UTILIZO MEJOR GETFULLYEAR
var nombre = navigator.appName
 if (nombre == "Microsoft Internet Explorer")
alert("explorer.htm");
else
  alert(nombre);
*/
function daMes(vmes){
 Mes= new Array ("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
return Mes[vmes];
} 

function daDiaSem(vdia){
 DiaSem= new Array ( "Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado");
return DiaSem[vdia];
} 

function daFecha(){         
 fechaServidor = new Date(); 
 dia = fechaServidor.getDate();         
 diasem = fechaServidor.getDay();         
 mes = fechaServidor.getMonth();         
// anio = fechaServidor.getYear();
anio = fechaServidor.getFullYear()  ;
//  alert(fechaServidor.getFullYear());
// alert(anio);
// if (90 <= anio && anio < 2000) 
//  { anio = "19" + anio; }         
 fechaSEL = "México, ";
 fechaSEL += daDiaSem(diasem);         
 fechaSEL += " ";        
 fechaSEL += dia;         
 fechaSEL += " de ";         
 fechaSEL += daMes(mes);         
 fechaSEL += ", ";         
 fechaSEL += anio; 
 document.write(fechaSEL);         
}

function diaHoy(){         
 fechaServidor = new Date(); 
 dia = fechaServidor.getDay();         
 document.write(daDiaSem(dia));         
}

