function GetTime() { 
  var dt = new Date();
  var def = dt.getTimezoneOffset()/60;
  var gmt = (dt.getHours() + def);
  var ending = ":" + IfZero(dt.getMinutes()) // + ":" +  IfZero(dt.getSeconds()); //
  var heureEte = 0;
  
  // Teste heure d'été en France et ŕ NewYork
  var curMonth = dt.getMonth();
  if ( curMonth >= 3 && curMonth <= 9) heureEte = 1;
  
  document.heure.local.value = (IfZero(dt.getHours()) + ending);
  
  var paris = check24(((gmt + 1 + heureEte) > 24) ? ((gmt + 1 + heureEte) - 24) : (gmt + 1 + heureEte));
  document.heure.paris.value = (IfZero(paris) + ending);
  
  var tky = check24(((gmt + 9) > 24) ? ((gmt + 9) - 24) : (gmt + 9));
  document.heure.tky.value = (IfZero(tky) + ending);

  var ny = check24(((gmt + (24-5 + heureEte)) > 24) ? ((gmt + (24-5 + heureEte)) - 24) : (gmt + (24-5 + heureEte)));
  document.heure.ny.value = (IfZero(ny) + ending);
  
  setTimeout("GetTime()", 1000);
}

function IfZero(num) {
  return ((num <= 9) ? ("0" + num) : num);
}

function check24(hour) {
  return (hour >= 24) ? hour - 24 : hour;
}

// popHappyNewYear = window.open('/media/newYear/newYear.html', 'popupHappyNewYear', 'top=20,left=20,width=400,height=120,menubar=no,scrollbars=no,toolbar=no,location=no,status=no');
