function fecha_getValidYear(){if (this.getYear() < 1000){return 1900+parseInt(this.getYear(),10);}else{return this.getYear();}}
Date.prototype.getValidYear=fecha_getValidYear; 
function eventos (fecha,cadena)
{
finfecha = new Date(fecha);
anno = finfecha.getValidYear();
mes = finfecha.getMonth();
dia = finfecha.getDate();
ahora = new Date();
anno2 = ahora.getValidYear();
mes2 = ahora.getMonth();
dia2 = ahora.getDate();
if (anno2<=anno)
if (mes2==mes)
{
if (dia2<=dia)
document.write(cadena);
}
else
{
if (mes2<mes || anno2<anno)
document.write(cadena);
}
}


function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0');");
}




