// Affichage dynamique de la date et de l'heure
function dateheure(obj,type) {
	var Digital=new Date();
	var hours=Digital.getHours();
	var minutes=Digital.getMinutes();
	var seconds=Digital.getSeconds();
	var day=Digital.getDate();
	var month=(Digital.getMonth())+1;
	var year=Digital.getFullYear();
	var myElem = document.getElementById(obj);
	var lheure = "";

	if (hours==0) hours=12;
	if (minutes<=9) minutes="0"+minutes;
	if (seconds<=9) seconds="0"+seconds;
	if (type&1) lheure=day+ "/" +month+ "/" +year;
	if (type&1 && type&2) lheure=lheure+ " <BR> ";
	if (type&2) lheure=lheure +hours+ ":" +minutes+ ":" +seconds;
	myElem.innerHTML = lheure;
	cpt=(setTimeout("dateheure(\""+obj+"\","+type+")",1000));
}
var new_win;
new_win=true;

function Aff(lien)
 {
 test(new_win)
 new_win=open(lien,"ot_fen","location=no,menubar=no,scrollbars=yes,toolbar=no,resizable=no,width=600,height=600,left=200,top=200");
 new_win.focus();
 }
 
 function test(fenetre)
  {
  if (fenetre.open)
   {
   parent.focus ();
   fenetre.close();
   }
 }