function PageRecherche(pagederech)
{
	
  if ((document.forms["Rechercher"].recherche.value == "") || (document.forms["Rechercher"].recherche.value == "Rechercher"))
   { alert("Veuillez entrer un mot à rechercher !!!");
     return;
   }		
		document.forms["Rechercher"].action = pagederech;
		document.forms["Rechercher"].submit();
}

function AfficherSection(baliseId){
if (document.getElementById && document.getElementById(baliseId) != null){
if (document.getElementById(baliseId).style.visibility!='visible'){
document.getElementById(baliseId).style.visibility='visible';
document.getElementById(baliseId).style.display='block';}
else{
document.getElementById(baliseId).style.visibility='hidden';
document.getElementById(baliseId).style.display='none';
}
}}

function CacherSection(baliseId){
if (document.getElementById && document.getElementById(baliseId) != null){
document.getElementById(baliseId).style.visibility='hidden';
document.getElementById(baliseId).style.display='none';}}


function AllerA(page)
  {
  		window.location.href=page;
  }

function OuvrirFenetre(type, page)
   {
	 var hauteur=0;
     var largeur=0;
	 var top=0;
     var left=0;
	switch(type)
	{
		case "1":
			hauteur = 400;
			largeur = 500;
			break;
		case "2":
			hauteur = 160;
			largeur = 165;
			break;
		
	}

	 top=(screen.height-hauteur)/2;
	 left=(screen.width-largeur)/2;
	 
	 window.open(page, "Sélection", "top="+top+", left="+left+", resizable=no, location=no, width="+largeur+", height="+hauteur+", menubar=no, status=no, scrollbars=yes, menubar=no");
   }


function DeplacerDansListe(l1, l2, listedesselect, champcache)
{var i, sel=false, nb;
 
 nb=l1.options.length;
 
  for(i=(nb-1);i>=0;i--)
   {if (l1.options[i].selected)
     {
        sel=true;

 		o=new Option(l1.options[i].text,l1.options[i].value);
		l2.options[l2.options.length]=o;
		l1.options[i]=null;
          
     }
   }

  champcache.value = "";
  for (i=0;i<listedesselect.options.length;i++)
   { 
     champcache.value += listedesselect.options[i].value;
     if (i<listedesselect.options.length-1) {champcache.value +=";";}
   } 
}






