// JavaScript Document

//CREATE AN ARRAY

        function SetNameArray(item)

        {

        this.length = item

        return this

        }

        //SET MONTH AND DAY NAME ARRAYS

        function SetNameArray(item)

        {

        this.length = item

        return this

        }

        //SET MONTH AND DAY NAME ARRAYS



        Month = new SetNameArray(12)

        Month[1] = "enero"

        Month[2] = "febrero"

        Month[3] = "marzo"

        Month[4] = "abril"

        Month[5] = "mayo"

        Month[6] = "junio"

        Month[7] = "julio"

        Month[8] = "agosto"

        Month[9] = "septiembre"

        Month[10] = "octubre"

        Month[11] = "noviembre"

        Month[12] = "diciembre"

        Day = new SetNameArray(7)

        Day[1] = "Domingo"

        Day[2] = "Lunes"

        Day[3] = "Martes"

        Day[4] = "Miércoles"

        Day[5] = "Jueves"

        Day[6] = "Viernes"

        Day[7] = "Sábado"

        //CALC THE DATE INFORMATION

        function TodaysDate(theDate)

        {

        var thisday = Day[theDate.getDay() + 1]

        var thismonth = Month[theDate.getMonth() + 1]

        var todayDate=new Date()

        var thisdate=todayDate.getDate()

        var thisyear=todayDate.getYear()

        thisyear = thisyear % 100;

        thisyear = ((thisyear < 50) ? (2000 + thisyear) : (1900 + thisyear))

        return thisday + " " + thisdate + " de " + thismonth + " del "  + thisyear

        }

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

