function OuvreFenetre() {
  ouvrir_fenetre=window.open("URL","NOM","PROPRIÉTÉS")
}

function openPopup(purl, nom, attr)
	{
		//alert('1');
		var wndAttr="";
		if (attr=="") {wndAttr = "width=500, height=400, left=100, top=100";}
		else {wndAttr = attr;}
		//alert(purl+', '+nom+','+wndAttr);
		myWindow=(window.open(purl, '', wndAttr));
		myWindow.focus();
	}
function form_confirm(formulaire,texte){
     if(confirm(texte))
	   {formulaire.submit();}
    } 
	
function add_spinner(div){
     document.getElementById(div).innerHTML="<div align=\"center\"><img src=\"images/spinner.gif\" /></div>";
    } 	
    
  function OpenLayerOnce(id){
    if(document.getElementById(id).style.display == "none") {
       document.getElementById(id).style.display = "block" ;
      }
    window.status =  document.getElementById(id).style.display;
   }

  function CloseLayer(id_layer){
    document.getElementById(id_layer).style.display = "none" ;
   }
   
    function Opencloselayertab(id, nb_result,nom_div){
    	var i=0;
    	for (i=0;i<nb_result;i++)
    		{
    			document.getElementById(nom_div+'_'+i).style.display = "none" ;
    		}	
    if(document.getElementById(nom_div+'_'+id).style.display == "none") {
       document.getElementById(nom_div+'_'+id).style.display = "block" ;
      }
    window.status =  document.getElementById(nom_div+'_'+id).style.display;
   }
   

