function showtime() {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today, theday;
today = new Date();
var year=today.getFullYear();
var month=today.getMonth()+1;
month	=	((month < 10) ? "0" : "") + month; 
var day=today.getDate();
day	=	((day < 10) ? "0" : "") + day; 
theday = day+" / "+month+" / "+year;
//======================================
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours < 12) {
hours = intHours+" : ";
xfile = "  上午";
} else if (intHours == 12) {
hours = "12 : ";
xfile = "  下午";
} else {
intHours = intHours - 12
hours = intHours + " : ";
xfile = "  下午";
}
if (intMinutes < 10) {
minutes = "0"+intMinutes;//+" : ";
} else {
minutes = intMinutes;//+":";
}
if (intSeconds < 10) {
seconds = "0"+intSeconds+" ";
} else {
seconds = intSeconds+" ";
}
timeString = "&nbsp;&nbsp;"+theday+"&nbsp;&nbsp;&nbsp;&nbsp;"+hours+minutes+xfile;//+seconds;
document.getElementById("liveclock").innerHTML = timeString;
window.setTimeout("showtime();", 1000);
}
window.onload=function (){
showtime();
}