currentDate = new Date()

w_oldyear = 0
w_oldmonth = 0
w_olddate = 0
with (currentDate) {
	w_thisyear = getFullYear()
	w_thismonth = getMonth() + 1
	w_thisdate = getDate()
}
for (i=0;i<date_entry.length;++i) {
	if (a_year[i] < w_thisyear) continue
	if (a_year[i] == w_thisyear && a_month[i] < w_thismonth) continue
	if ((a_year[i] == w_thisyear) && (a_month[i] == w_thismonth) && (a_date[i] < w_thisdate)) continue
	w_dispyear = a_year[i]
	w_dispmonth = a_month[i]
	w_dispdate = a_date[i]
	if (w_olddate != w_dispdate || w_oldmonth != w_dispmonth || w_oldyear != w_dispyear) {
		document.writeln("</TABLE>")
		document.writeln("<H2 ALIGN=CENTER><FONT COLOR='#FF0000'>" + a_day[i] + " " + a_date[i] + " " + w_mname[a_month[i]] + "</FONT></H2>")
		document.writeln("<TABLE ALIGN=CENTER COLS=3>")
		document.writeln("<TH WIDTH=90><TH WIDTH=240><TH WIDTH=290>") 
		w_olddate = w_dispdate
		w_oldmonth = w_dispmonth
		w_oldyear = w_dispyear
	}
	document.writeln(date_entry[i])
}
