<!-- Display time in Hong Kong -->
// Clock Script Generated By Maxx Blade's Clock v2.0
// http://www.maxxblade.co.uk/clock

function tS(){ x=new Date(tN().getUTCFullYear(),tN().getUTCMonth(),tN().getUTCDate(),tN().getUTCHours(),tN().getUTCMinutes(),tN().getUTCSeconds()); x.setTime(x.getTime()+28800000); return x; }
function tN(){ return new Date(); }
function lZ(x){ return (x>9)?x:'0'+x; }
function tH(x){ if(x==0){ x=12; } return (x>12)?x-=12:x; }
function y2(x){ x=(x<500)?x+1900:x; return String(x).substring(2,4) }
function dT(){ if(fr==0){ fr=1; document.write('<font size=2 face=Arial weight=bold><b><span id="tP">'+eval(oT)+'</span></b></font>'); } tP.innerText=eval(oT); setTimeout('dT()',1000); }
function aP(x){ return (x>11)?'pm':'am'; }
var fr=0,oT="lZ((tS().getMonth()+1))+'\'+'/'+lZ(tS().getDate())+'\'+'/'+y2(tS().getYear())+' '+lZ(tH(tS().getHours()))+':'+lZ(tS().getMinutes())+' '+aP(tS().getHours())";

<!-- Show or hide a div tag named 'hideshow' -->
function hidediv() {
  if (document.getElementById) { // DOM3 = IE5, NS6
    document.getElementById('hideshow').style.visibility = 'hidden';
  }
  else {
    if (document.layers) { // Netscape 4
      document.hideshow.visibility = 'hidden';
    }
    else { // IE 4
      document.all.hideshow.style.visibility = 'hidden';
    }
  }
}

function showdiv() {
  if (document.getElementById) { // DOM3 = IE5, NS6
    document.getElementById('hideshow').style.visibility = 'visible';
  }
  else {
    if (document.layers) { // Netscape 4
      document.hideshow.visibility = 'visible';
    }
    else { // IE 4
      document.all.hideshow.style.visibility = 'visible';
    }
  }
} 

<!-- Show or hide a div tag with name passed with function -->
function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}
