// para usar desde HTML
//     
// 
function NombreMes(iMes) {
   NombresMeses = new Array("Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre");
   return NombresMeses[iMes];
}

function NombreDia(iDia){
   NombresDias = new Array("Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado");
   return NombresDias[iDia];
}

// inicio
hoy = new Date();

dia=hoy.getDate();

ano = hoy.getYear();
if(ano < 1900) {ano += 1900};  // problemas Y2K->Netscape

mes=hoy.getMonth();
diasemana=hoy.getDay();

textoano=String(ano);
nrogif1=textoano.substring(0,1);nrogif2=textoano.substring(1,2);nrogif3=textoano.substring(2,3);nrogif4=textoano.substring(3,4);

borde=0;
document.write("<div align=\"right\"><font face=\"Tahoma\" size=\"1\" color=\"#003300\">" + dia + " de " + NombreMes(mes)  + " de " + textoano + "</font></div>");
// final
