function _HpbDays()
{
  this[0] = "Domingo";    this[1] = "Lunes";   this[2] = "Martes"; 
  this[3] = "Miércoles"; this[4] = "Jueves"; this[5] = "Viernes"; 
  this[6] = "Sábado";
}

var now = new Date();
var yr  = now.getYear();
var mn  = now.getMonth() + 1;
var dt  = now.getDate();
var dy  = now.getDay();

var fyr = (yr < 1900) ? 1900 + yr : yr;

if (mn < 10)
{
  mn = "0" + mn;
}

if (dt < 10)
{
  dt = "0" + dt;
}

var dys = new _HpbDays();
var dyj = dys[dy];

document.write(dyj + ", " + dt + "/" + mn + "/" + fyr); 
