  // JavaScript Document
  function getTime(){
    var oNow = new Date();
    var aWeek = new Array('星期日', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六');
    var sNow = oNow.getYear() + "-" + format(oNow.getMonth() + 1) + "-" + format(oNow.getDate()) + " " + format(oNow.getHours()) + ":" + format(oNow.getMinutes()) + ":" + format(oNow.getSeconds()) + " " + aWeek[oNow.getDay()];
    return sNow;
  }

  function format(s){
    s = "0" + s;
    s = s.substring(s.length-2, s.length);
    return s;
  }