// SELECT PERSONNALISE
function permuteSelect(sSelect) {
	sObject = document.getElementById(sSelect);
  Effect.toggle(sSelect, 'blind', {duration:0.4});
  //sObject.style.display = (sObject.style.display == 'none') ? 'block' : 'none';
}
function colorThis(obj){
	obj.style.background = '#EC681E';
	obj.style.color		 = '#ffffff';
}
function decolorThis(obj){
	obj.style.background = '#ffffff';
	obj.style.color		 = '#3d220f';
}
function validAndCache(sSelect, sDiv, sFormValue, txt2, sNameForm){
	document.getElementById(sNameForm).value = sFormValue;
	Effect.BlindUp(sDiv, {duration:0.5});
	document.getElementById(sSelect).innerHTML = txt2;
}
// SELECT PERSONNALISE


function HauteurDiv(sDivLeft,sDivRight) {
  iDivRightHeight = document.getElementById(sDivRight).offsetHeight; // Récupération de la hauteur de la colonne de droite
  iDivLeftHeight = document.getElementById(sDivLeft).offsetHeight; //Récupération de la hauteur de la colonne de gauche
  if (iDivLeftHeight < iDivRightHeight) {
    document.getElementById(sDivLeft).style.height = iDivRightHeight; // Application de la nouvelle hauteur à droite
  }
}
 
    function ajaxWait(elm)
    {
        
        var img = document.createElement("img");
        img.alt = 'Patientez...';
        img.src = '/images/loading-small.gif';
        
        elm.parentNode.insertBefore(img,elm);
        elm.style.display='none';
    }
