function fecha() {
var months = new Array();
months[0] = 'Enero';
months[1] = 'Febrero';
months[2] = 'Marzo';
months[3] = 'Abril';
months[4] = 'Mayo';
months[5] = 'Junio';
months[6] = 'Julio';
months[7] = 'Agosto';
months[8] = 'Septiembre';
months[9] = 'Octubre';
months[10] = 'Noviembre';
months[11] = 'Diciembre';
var days = new Array();
days[0] = 'Domingo';
days[1] = 'Lunes';
days[2] = 'Martes';
days[3] = 'Mi&eacute;rcoles';
days[4] = 'Jueves';
days[5] = 'Viernes';
days[6] = 'S&aacute;bado';
now = new Date();
var dayname = days[now.getDay()];
var monthname = months[now.getMonth()];
var dayofmonth =now.getDate();
var year = now.getYear();
if (year < 1000) year += 1900;
document.write('Hoy, ' + dayname + ' ' + dayofmonth + ' de ' + monthname + ' del ' + year);	
}

