function montre (cur_div)

{var current=document.getElementById(cur_div);
 current.style.visibility ="visible";
}

function layer_image(cur_div)
{ var current=document.getElementById(cur_div);
    
  if(current.style.visibility=="hidden")
    {
      current.style.visibility ="visible";
    }
  else
   {
     current.style.visibility ="hidden";
   }
}

function grandir(id,height,zindex,border,marginleft,margintop,right)

{obj= document.getElementById(id);
    obj.style.height=height;
    obj.style.marginLeft=marginleft;
    obj.style.marginTop=margintop;  
    obj.style.right=right;
    obj.style.zIndex=zindex;
    obj.style.border=border;
}


function getid(id,id_form, id_div)

{
var current=document.getElementById(id_div);
 

document.getElementById(id_form).value = id;
 

alert("Vous êtes sur d'ajouter cette images?");

current.style.visibility ="hidden";



}

function annuleimagereference()
{
document.reference.image_gauche.value="";
}

function annulephotoreference()
{
document.reference.image_droite.value="";
}


function resize(id,max)

{obj = document.getElementById(id);
 
 if (obj.height >obj.width)
 { obj.style.height=max;}
 else if  (obj.width >obj.height)
 {obj.style.width=max;}
 else
 {obj.style.width=max;}
}

 function popup(page) {
 

  window.open(page,'', 'left:0,right:0;width=800, height=800, resizable=yes, toolbar=no, scrollbars=yes, status=yes');

 }

 
 function fermer()
 {
   alert("Vous allez fermer la fenetre");
   window.close(self);
 } 

function change_textbandeau(text_bandeau) {
 obj = document.getElementById("text_bandeau");
 obj.innerHTML=text_bandeau;
}
