function afficher_heure() {

 var maintenant = new Date();
 var heures = maintenant.getHours();
 // Vancouver
 var heures2 = maintenant.getHours() - 9;
 if (heures2 < 0)  heures2 += 24;
 if (heures2 > 23) heures2 -= 24;
 // Montréal
 var heures3 = maintenant.getHours() - 6;
 if (heures3 < 0)  heures3 += 24;
 if (heures3 > 23) heures3 -= 24;
 
 
 var minutes = maintenant.getMinutes();
 var secondes = maintenant.getSeconds();
 var heure_prec  = ((heures < 10) ? "0" : "");
 var heure_prec2  = ((heures2 < 10) ? "0" : "");
 var heure_prec3  = ((heures3 < 10) ? "0" : "");
 var minutes_prec  = ((minutes < 10) ? ":0" : ":");
 var secondes_prec  = ((secondes < 10) ? ":0" : ":");

 var temps = heure_prec + heures + minutes_prec + minutes + secondes_prec + secondes;
 var temps2 = heure_prec2 + heures2 + minutes_prec + minutes + secondes_prec + secondes;
 var temps3 = heure_prec3 + heures3 + minutes_prec + minutes + secondes_prec + secondes;
 var tout =  "Luxembourg : " + temps + " Montréal : " + temps3 + " Vancouver : " + temps2;

 if(DHTML) {
   if(NS) setCont("id","pendule",null,"<span class=\"pendule\">" + tout + "<\/span>");
   else   setCont("id","pendule",null,tout);
 }
 else return;

 window.setTimeout("afficher_heure()",1000);
}

 function fillContent(index,array,id) {
 if(DHTML) {
   if(NS) setCont("id",id,null,array[index]);
   else   setCont("id",id,null,array[index]);
 }
 else return;
}


function confirmDelete(url){ 
//alert(url);
	if (confirm("Are you sure to delete this item? ")) { 
	     window.location = url;
	} 
}

function showNote(title, message, colorBack, backg, textColor, typeFont, sizeFont) {
  windowNote = window.open('','Note','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,' + 'width=550' + ',height=500');
  text = '<' + 'HTML' + '><' + 'HEAD' + '><' + 'TITLE' + '>' + title + '</' + 'TITLE' + '><link type="text/css" rel="stylesheet" media="all" href="../style/style.css"><' + '/HEAD' + '><' + 'BODY BACKGROUND=' + '"' + backg + '"' + ' BGCOLOR=' + '"' + colorBack + '">';
  text += '<div style="font-family: Arial; font-size: 8pt;padding:5px; border: 1px solid #CCCCEE;width:500px" >';
  text += message + '</div>';
  text += '</' + 'BODY' + '><' + '/HTML' + '>';
  windowNote.document.write(text);
  windowNote.focus();
  windowNote.document.close();
  return false;
}

function showImg(title, img, width, height) {
var windowNote;
var option;
var widthWin = width + 50;
var heightWin = height + 50;

  option = 'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=yes,copyhistory=no,' + 'width=' + widthWin + ',height=' + heightWin;
  windowNote = window.open('','Note',option);
  text = '<' + 'HTML' + '><' + 'HEAD' + '><' + 'TITLE' + '>' + title + '</' + 'TITLE' + '><' + '/HEAD' + '><' + 'BODY' + '>';
  text += '<CENTER>';
  text +='<img src="' + img +'" border="0" width="'+width+'" height="'+height+'" alt="">';
  text += '</CENTER>';
  text += '</' + 'BODY' + '><' + '/HTML' + '>';
  windowNote.document.write(text);
  windowNote.focus();
  windowNote.document.close();
  return false;
}

