';
nuVorige = '';
while(gevonden<5 && dagdata.length>a)
{
j = dagdata[a].date.substr(0,4);
m = dagdata[a].date.substr(5,2)*1;
d = dagdata[a].date.substr(8,2)*1;
e = new Date();
e.setFullYear(j, m-1, d);
if (dagdata[a].news==1 && dagdata[a].history==0)
{
showdate[gevonden].d = d;
showdate[gevonden].m = m-1;
showdate[gevonden].j = j;
nuNieuw = days[e.getDay()] + ' ' + d + ' ' + maanden[m-1] + ' ' + j;
txt += (nuVorige!=nuNieuw) ? '
' + nuNieuw + '' : '';
nuVorige = nuNieuw;
txt += '
' + dagdata[a].kind.replace('\\','') + '';
txt += (dagdata[a].title!='') ? dagdata[a].title.replace('\\','') + '
' : '';
txt += (dagdata[a].location!='') ? dagdata[a].location.replace('\\','') + '
' : '';
if (dagdata[a].start_time!='00:00:00')
{
txt += dagdata[a].start_time.substr(0,5) + ( (dagdata[a].end_time.substr(0,5)!='00:00') ? " - " + dagdata[a].end_time.substr(0,5) : "" ) + ' uur
';
}
txt += '
';
gevonden++;
}
a++;
}
txt += '
';
return txt;
}