function GetTime() {
var dt = new Date();
var wahaha = dt.getYear();
var def = dt.getTimezoneOffset()/60;
var gmt = (dt.getHours() + def);
var year = dt.getFullYear();
var month = dt.getMonth()+1;
var year2 = dt.getFullYear()-1;
//中国
document.clock.local.value = (dt.getDate() + "-" +  month + "-" +  year + " " +  IfZero(dt.getHours()) + ":" + IfZero(dt.getMinutes()) + ":" + IfZero(dt.getSeconds()));

//alert ("a");
var ending = ":" + IfZero(dt.getMinutes()) + ":" +  IfZero(dt.getSeconds());

var rome =check24(((gmt + 1) > 24) ? ((gmt + 1) - 24) : (gmt + 1));
//德国
if (dt.getMonth()==1 && dt.getDate()==1 && IfZero(dt.getHours())>=0 && IfZero(dt.getHours())<6 )
{
document.clock.rome.value = (dt.getDate() + "-" +  month + "-" +  year2 + " " + IfZero(rome) + ending);
}
else {
document.clock.rome.value = (dt.getDate() + "-" +  month + "-" +  year + " " + IfZero(rome) + ending);
}
setTimeout("GetTime()", 1000);
}
function IfZero(num) {
return ((num <= 9) ? ("0" + num) : num);
}
function check24(hour) {
return (hour >= 24) ? hour - 24 : hour;
}

