 
function inicioArray()
{
for(i=0;  i<inicioArray.length;  i++)
   this[i] = inicioArray[i]
}
 
var meses=new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre")
var dias= new Array("Domingo","Lunes","Martes","Mi&eacute;rcoles","Jueves","Viernes","S&aacute;bado","Domingo")
hoy=new Date()
 

   // esta función arregla un problema con los años en Netscape 2 y 3 
function anoEntero(f)   // f es un objecto fecha y JS no admite la ñ en las funciones
{ 
 yr = f.getYear()
 if (yr < 1000)
 yr += 1900
 return yr
}
 
document.write(dias[hoy.getDay()]
   +", "+hoy.getDate()+" de "+meses[hoy.getMonth()]+" de "
   +anoEntero(hoy))



