function tick() {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today;
today = new Date();
inhyear = today.getYear()+"-"
intmonth = today.getMonth()+1+"-";
intdate = today.getDate()+"  ";
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
if (intHours == 0) {
hours ="12:";
xfile ="ÎçÒ¹";
} else if (intHours < 12) {
hours = intHours+":";
xfile ="ÉÏÎç";
} else if (intHours == 12) {
hours ="12:";
xfile ="ÕýÎç";
} else if (intHours < 18){
intHours = intHours - 12
hours = intHours + ":";
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 =inhyear+intmonth+intdate+ xfile +hours+minutes+seconds;

Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;