var today = new Date();
var day; var date; var some;
if (today.getYear() < 1999) {
    some = today.getYear()+1900;
} else {
    some = today.getYear();
}  
if(today.getDay()==0) day = "星期日"
if(today.getDay()==1) day = "星期一"
if(today.getDay()==2) day = "星期二"
if(today.getDay()==3) day = "星期三"
if(today.getDay()==4) day = "星期四"
if(today.getDay()==5) day = "星期五"
if(today.getDay()==6) day = "星期六"
date = (some) + "/" + (today.getMonth() + 1 ) + "/" + today.getDate() + " " + day;
document.write(date);

document.write("&nbsp;<span id='clock'></span>");
var now,hours,minutes,seconds,timeValue;
function showtime(){
    now = new Date();
    hours = now.getHours();
    minutes = now.getMinutes();
    seconds = now.getSeconds();
	timeValue = hours + ":";
    timeValue += ((minutes < 10) ? "0" : "") + minutes;
    document.getElementById("clock").innerHTML = timeValue;
}