//Codigo novo pa data 
hoxe = new Date()
diaseman = new Array()
								diaseman[0]="Domingo"
								diaseman[1]="Luns"
								diaseman[2]="Martes"
								diaseman[3]="M&eacute;rcores"
								diaseman[4]="Xoves"
								diaseman[5]="Venres"
								diaseman[6]="S&aacute;bado"


function longMonthArray() {
	this[0] = "Xaneiro";	this[1] = "Febreiro";	    this[2] = "Marzal";
	this[3] = "Abril";	this[4] = "Maio";	       this[5] = "Xu&ntilde;o";
	this[6] = "Xullo";	this[7] = "Agosto";	    this[8] = "Setembro";
	this[9] = "Outubro";	this[10] = "Novembro";	this[11] = "Decembro";
        return (this);
}
function getShortYear(year)
{
shortyear =  year%100;
     if (shortyear < 10) shortyear = "0"+shortyear;
	return shortyear
}
function getLongYear(year)
{
  if (year > 1900) return year
  return year+1900;
}
function writeDateLong()
{
   longMonths = new longMonthArray();
   d = new Date();
   day = d.getDate();
   month = d.getMonth();
	year = d.getYear();
   
   str =diaseman[hoxe.getDay()]+", " + day + " de " + longMonths[month] + " do "+getLongYear(year);
  document.writeln(str);
}