function cureTime(){
var now = new Date();
var monthnumber = (now.getMonth()+1);
var monthday = now.getDate();
var year = now.getYear();
var weekday = now.getDay();
myArray = new Array(6);
myArray[0] = "星期日";
myArray[1] = "星期一";
myArray[2] = "星期二";
myArray[3] = "星期三";
myArray[4] = "星期四";
myArray[5] = "星期五";
myArray[6] = "星期六";
if(monthnumber<10){
monthnumber= '0'+monthnumber;
}
if(monthday<10){
monthday= '0'+monthday;
}
var timeString = '日期: '+year + '-' + monthnumber + '-' + monthday +' 星期:'+myArray[weekday];
document.getElementById("time").innerHTML=timeString;
}