function window_popup(link) {
  window.open(link,'','toolbar=no,resize=yes,location=no,menubar=no,status=yes,scrollbars=yes');
}
function window_popup_clr(link,wid,hgt) {
  window.open(link,'','width='+wid+',height='+hgt+',toolbar=no,resize=no,location=no,menubar=no,status=yes,scrollbars=yes');
}

// please keep these lines on when you copy the source
// made by: Nicolas - http://www.javascript-page.com

var clockID = 0;

function UpdateClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }

   var tDate = new Date();
//   var tDiff = tDate.getTimezoneOffset();
   var tHour = tDate.getUTCHours() - 7;// - tDiff/60;
   var tMin = tDate.getUTCMinutes();
   var tSec = tDate.getUTCSeconds();
   
   if (tHour < 0){
   	tHour = tHour + 24;
   }
   if (tMin < 10){
   	tMin = "0" + tMin;
   }
   if (tSec < 10){
   	tSec = "0" + tSec;
   }
   document.theClock.theTime.value = "" 
                                   + tHour  + ":" 
                                   + tMin + ":" 
                                   + tSec;
   
   clockID = setTimeout("UpdateClock()", 1000);
}
function StartClock() {
   clockID = setTimeout("UpdateClock()", 500);
}

function KillClock() {
   if(clockID) {
      clearTimeout(clockID);
      clockID  = 0;
   }
}
