var today = new Date();    
var strDate = "";    
if (today.getYear() < 2000)     
{    
yearnow=1900+today.getYear();    
strDate = ( yearnow + "年" + (today.getMonth() + 1) + "月" + today.getDate() + "日");    
}    
else{    
 strDate = ( today.getYear() + "年" + (today.getMonth() + 1) + "月" + today.getDate() + "日");    
	    
}    
var n_day = today.getDay();    
switch (n_day)    
{    
case 0:{    
strDate = strDate + "星期日"    
}break;    
	case 1:{    
	strDate = strDate + "星期一"    
	}break;    
	case 2:{    
	strDate = strDate + "星期二"    
	}break;    
	case 3:{    
	strDate = strDate + "星期三"    
	}break;     
	case 4:{    
	strDate = strDate + "星期四"    
	}break;    
	case 5:{    
	strDate = strDate + "星期五"    
	}break;    
	case 6:{    
	strDate = strDate + "星期六"    
	}break;    
	case 7:{    
	strDate = strDate + "星期日"    
	}break;    
	}    
        strDate="<font color=#ffffff>"+strDate+"</font>"    
	document.write(strDate); 