```javascriptfunction ShowDateFile() {
if (document.forms.selectNewsDate.Year.selectedIndex === 0) {
alert("请选择年份");
return false;
}
if (document.forms.selectNewsDate.Month.selectedIndex === 0) {
alert("请选择月份");
return false;
}
if (document.forms.selectNewsDate.Day.selectedIndex === 0) {
alert("请选择日期");
return false;
}
const year = document.forms.selectNewsDate.Year.value;
const month = document.forms.selectNewsDate.Month.value;
const day = document.forms.selectNewsDate.Day.value;
if (year === "2000" && month < "12" && day < "18") {
alert("各栏目往日新闻是从2000年12月18日开始的");
return false;
}
document.location = `http://www.dbw.cn/system/${year}/${month}/${day}/0_${year}${month}${day}.shtml`;
return false;
}
```