function recommandation(page,largeur,hauteur,options) {  //// pop up centr–e
			var top=(screen.height-hauteur)/2;
			var left=(screen.width-largeur)/2;
			window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
		}
function afficheMaxi(chemin) //// pop up des images cliquables
	{
	i1 = new Image;
	i1.src = chemin;
	html = '<HTML><HEAD><TITLE>M&eacute;diatis R&eacute;gion Aquitaine - Yves Parlier - Clic Image To Close</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 onBlur=\'window.close();\'><CENTER><IMG SRC="'+chemin+'" BORDER=0 NAME=imageTest onLoad="window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)" onClick=\"self.close()\"></CENTER></BODY></HTML>';
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
	};
function afficheMaxiCopy(chemin,copyright) //// pop up des images cliquables
	{
	i1 = new Image;
	i1.src = chemin;
	html = "<HTML><HEAD><TITLE>M&eacute;diatis R&eacute;gion Aquitaine - &copy; "+copyright+" - Clic Image To Close</TITLE></HEAD><BODY LEFTMARGIN=0 MARGINWIDTH=0 TOPMARGIN=0 MARGINHEIGHT=0 onBlur=\"window.close();\"><CENTER><IMG SRC=\""+chemin+"\" BORDER=0 NAME=imageTest onLoad=\"window.resizeTo(document.imageTest.width+14,document.imageTest.height+32)\" onClick=\"self.close()\"></CENTER></BODY></HTML>";
	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close()
	};


function OuvreCentre(page,largeur,hauteur,options) {  //// pop up centrée
			var top=(screen.height-hauteur)/2;
			var left=(screen.width-largeur)/2;
			window.open(page,"","top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
		}


function testNomFichier(form)  //// pour les espaces privatifs des partenaires
    {
	taille = form.userfile.value.length;
	if(taille == 0) 
	{
		alert("Vous n'avez pas choisi de fichier.");  
		erreur = false;
	}
	else erreur = true;
	return erreur;
    }
function supprimer_question(id){
if(confirm("Attention ! Supprimer définitivement ?")){
document.location="faq.php?case=supprimer&id="+id
}
}

function supprimer_contribution(id){
if(confirm("Attention ! Supprimer définitivement ?")){
document.location="livredor.php?case=supprimer&id="+id
}
}


function ChargerCourse(numero,lang)//redirection sur la page evenements.php
	{
	if (formulaire.evenement.selectedIndex != 0)
		{
		location.href = "courses.php?lang="+lang+"&=id="+numero
	 	}
}
function ChargerRecord(numero,lang)//redirection sur la page evenements.php
	{
	if (formulaire.evenement.selectedIndex != 0)
		{
		location.href = "records.php?lang="+lang+"&id="+numero
	 	}
}
function ChargerManifestation(numero,lang)//redirection sur la page evenements.php
	{
	if (formulaire.evenement.selectedIndex != 0)
		{
		location.href = "manifestations.php?lang="+lang+"&id="+numero
	 	}
}


 /****************************************************************************** 
      Composant de barre d'attente - jsWait 
      Vincent Fiack - 18/03/2003 
  *******************************************************************************/ 
  document.writeln("<div id=\"jsWaitMessage\" style=\"font-family: Verdana; font-size: 10px; text-align: center; padding: 3px; position: absolute; left: 30%; top: 15%; height: 20px; width: 300px; z-index:3\"></div>"); 
  document.writeln("<div id=\"jsWaitArea\" style=\"display: none; position: absolute; left: 30%; top: 15%; height: 20px; width: 300px; border: 1px black solid; background: #EDEEF1;z-index:2\">"); 
  document.writeln("<div id=\"jsWaitBlock\" style=\"position: relative; left: 0px; height: 20px; width: 50px; background: #1E2E50;z-index:2\"></div>"); 
  document.writeln("</div>"); 
  jsWait_defaultInstance = null; 
  function showWait(message) 
  { 
      jsWait_defaultInstance = new jsWait('jsWait_defaultInstance', message); 
      jsWait_defaultInstance.show(); 
  } 
  function jsWait(name, message) 
  { 
      this.name = name; 
      this.message = message; 
      this.speed = 10; 
      this.direction = 2; 
     
      this.waiting = false; 
     
      this.divMessage = document.getElementById("jsWaitMessage"); 
      this.divArea = document.getElementById("jsWaitArea"); 
      this.divBlock = document.getElementById("jsWaitBlock"); 
  } 
  jsWait.prototype.show = function() 
  { 
      this.divMessage.innerHTML = this.message; 
      this.divMessage.style.display = "block"; 
      this.divArea.style.display = "block"; 
      this.divBlock.style.display = "block"; 
      this.divBlock.style.left = "0px"; 
      this.waiting = true; 
       
      this.loop(); 
  } 
   
  jsWait.prototype.setMessage = function(message) 
  { 
      this.message = message; 
      this.divMessage.innerHTML = this.message; 
  } 
   
  jsWait.prototype.stop = function() 
  { 
      this.waiting = false; 
      this.divMessage.style.display = "none"; 
      this.divArea.style.display = "none"; 
      this.divBlock.style.display = "none"; 
  } 
  jsWait.prototype.loop = function() 
  { 
      myLeft = this.divBlock.style.left; 
      myLeft = myLeft.substring(0, myLeft.length-2); 
      intLeft = parseInt(myLeft); 
     
      if(intLeft >= 250) 
          this.direction = -2; 
      if(intLeft <= 0) 
          this.direction = 2; 
     
      myLeft = "" + (intLeft+this.direction) + "px"; 
      this.divBlock.style.left = myLeft; 
     
      if(this.waiting) 
          setTimeout(this.name + ".loop()", this.speed); 
  } 

////// Fin de la barre de progression