currentDate=new Date();
with (currentDate){
	year=getYear();
	day=getDay();
	month=getMonth()+1;

	if(year >= 2000)
		document.write(getYear()+'<font color=red>年</font>'+month+'<font color=red>月</font>'+getDate()+'<font color=red>日</font>');
	if(year <= 99)
		document.write('19'+getYear()+'<font color=red>年</font>'+month+'<font color=red>月</font>'+getDate()+'<font color=red>日</font>');
	if(year >= 100 && year < 2000){
		year=year-100+2000;
		document.write(year+'<font color=red>年</font>'+month+'<font color=red>月</font>'+getDate()+'<font color=red>日</font>');}
	
	if(day==1){document.write('&nbsp;星期一');}
	else if(day==2){document.write('&nbsp;星期二');}
	else if(day==3){document.write('&nbsp;星期三');}
	else if(day==4){document.write('&nbsp;星期四');}
	else if(day==5){document.write('&nbsp;星期五');}
	else if(day==6){document.write('&nbsp;<font color=red>星期六</font>');}
	else{document.write('&nbsp;<font color=red>星期日</font>');}
}
