function MonthArray() {
this[0] = "Enero"; this[1] = "Febrero"; this[2] = "Marzo"; this[3] = "Abril"; this[4] = "Mayo"; this[5] = "Junio";
this[6] = "Julio"; this[7] = "Agosto"; this[8] = "Septiembre"; this[9] = "Octubre"; this[10] = "Noviembre"; this[11] = "Diciembre";
return (this);
}
function WeekDayArray() {
this[0] = "Domingo"; this[1] = "Lunes"; this[2] = "Martes"; this[3] = "Miércoles"; this[4] = "Jueves"; this[5] = "Viernes";
this[6] = "Sabado";
return (this);
}

function getlongYear(year){
year = d.getYear();
if (year < 1000)
year+=1900;
return year;
}



function writeDate(){
Months = new MonthArray();
WeekDays = new WeekDayArray();
d = new Date();
day = d.getDate();
month = d.getMonth();
year = d.getYear();
wday=d.getDay();

str = WeekDays[wday]+" " +day+ " de " +Months[month] + " de "+getlongYear(year);
document.writeln(str);
}

function newWindow(a_str_windowURL, a_str_windowName, a_int_windowWidth, a_int_windowHeight, a_bool_scrollbars, a_bool_resizable, a_bool_menubar, a_bool_toolbar, a_bool_addressbar, a_bool_statusbar, a_bool_fullscreen) {
  var int_windowLeft = (screen.width - a_int_windowWidth) / 2;
  var int_windowTop = (screen.height - a_int_windowHeight) / 2;
  var str_windowProperties = 'height=' + a_int_windowHeight + ',width=' + a_int_windowWidth + ',top=' + int_windowTop + ',left=' + int_windowLeft + ',scrollbars=' + a_bool_scrollbars + ',resizable=' + a_bool_resizable + ',menubar=' + a_bool_menubar + ',toolbar=' + a_bool_toolbar + ',location=' + a_bool_addressbar + ',statusbar=' + a_bool_statusbar + ',fullscreen=' + a_bool_fullscreen + '';
  var obj_window = window.open(a_str_windowURL, a_str_windowName, str_windowProperties)
    if (parseInt(navigator.appVersion) >= 4) {
      obj_window.window.focus();
    }
}

function leapTo (link) {
var new_url = link;
window.location = new_url;
}


