// JavaScript Document

currentDate = new Date();
with( currentDate ) {
	day   = getDay();
	month = getMonth() + 1;
	str_nyr = (getYear()<1000 ? getYear()+1900:getYear()) + '年' + month + '月' + getDate() + '日';
}

var str_week = '星期';
if( day==1 ) {
	str_week += '一';
} else if( day==2 ) {
	str_week += '二';
} else if( day==3 ) {
	str_week += '三';
} else if( day==4 ) {
	str_week += '四';
} else if( day==5 ) {
	str_week += '五';
} else if( day==6 ) {
	str_week += '六';
} else if( day==0 ) {
	str_week += '日';
}
