﻿function ShowTime()
{
  var strTime=""
  //设定时区差
  
  nhr=new Array(5)
  nhr[0]="<img src=\"../images/flag_icon_01.png\" width=\"13\" height=\"13\" class=\"pic\" /> 悉尼："//悉尼2
  nhr[1]="<img src=\"../images/flag_icon_02.png\" width=\"13\" height=\"13\" class=\"pic\" /> 香港："//香港0
  nhr[2]="<img src=\"../images/flag_icon_03.png\" width=\"13\" height=\"13\" class=\"pic\" /> 伦敦："//伦敦-8
  nhr[3]="<img src=\"../images/flag_icon_04.png\" width=\"13\" height=\"13\" class=\"pic\" /> 纽约："//纽约-13
  //nhr[4]="悉尼："
  
  
  

  tmpDate=new Date();
  tmpHrs=tmpDate.getHours();
  dhr=new Array(4)
  dhr[0]=2
  dhr[1]=0
  dhr[2]=-8
  dhr[3]=-13
  //dhr[4]=2
  

  
  strTime=strTime+" <table width=460 border=0 cellspacing=1 cellpadding=1><tr align=center>"
  for (var i=0;i<4;i++)
  {
    strTime=strTime+"<td height=20 align=center><font color=#000000>"+nhr[i]+" "
    //alert (tmpDate)
    tmpDate=new Date();
    
    tmpHrs=tmpDate.getHours();
    dhr[i]=tmpHrs+dhr[i]
    tmpDate.setHours(dhr[i]);
    date=tmpDate.getDate();
    month=tmpDate.getMonth()+1 ;
    year=tmpDate.getFullYear();
    hrs=tmpDate.getHours();
    mins=tmpDate.getMinutes();
    secs=tmpDate.getSeconds();
    if(hrs<10)
    hrs="0"+hrs;
    if(mins<10)
    mins="0"+mins;
    if(secs<10)
    secs="0"+secs;
    
    //strTime=strTime+(month);
    //strTime=strTime+("月");
    //strTime=strTime+(date);
    //strTime=strTime+("日 ");
    strTime=strTime+(hrs);
    strTime=strTime+(":");
    strTime=strTime+(mins);
    strTime=strTime+(":");
    strTime=strTime+(secs);
    strTime=strTime+"</font></td>";
  }
  strTime=strTime+"</tr></table>"  
  SpanTimeZone.innerHTML=strTime
  setTimeout('ShowTime()',1000);
}

