

/* function infobulle */
var infoBulleUid = 0;

function InfoBulle(jsObject, caption, cssClass) {
 if (jsObject!=null) {
   var currentUID = infoBulleUid++;

   document.write('<SPAN Id="IB' + currentUID + '" Class="' + cssClass
      + '" Style="display:none; position: absolute;">'
      + caption + '</SPAN>');

   jsObject.infoBulle = document.getElementById("IB" + currentUID);

   jsObject.onmouseout = function InfoBulle_onMouseOut() {
       this.infoBulle.style.display = "none";
   }

   jsObject.onmouseover = function InfoBulle_onMouseOver() {
       this.infoBulle.style.display = "block";
   }

   jsObject.onmousemove = function InfoBulle_onMouseMove(evt) {

       var top = (document.all ? window.event.y : e.clientY); 
       var left = (document.all ? window.event.x : e.clientX);
       var width = (document.all ? this.infoBulle.clientWidth : this.infoBulle.offsetWidth);

       this.infoBulle.style.left =  left + document.body.scrollLeft - width/2;
       this.infoBulle.style.top  = top + document.body.scrollTop + 20;
   }
 }
}


function GereControle(Controleur, Controle, Masquer) {
var objControleur = document.getElementById(Controleur);
var objControle = document.getElementById(Controle);
	if (Masquer=='1')
		objControle.style.visibility=(objControleur.checked==true)?'visible':'hidden';
	else
		objControle.disabled=(objControleur.checked==true)?false:true;
	return true;
}

function HideSelect() 
{ 
    oSelects = document.getElementsByTagName('SELECT'); 
    if (oSelects.length > 0) { 
        for (i = 0; i < oSelects.length; i++) { 
            oSelects[i].style.visibility = 'hidden'; 
        } 
    } 
} 
function ShowSelect()
{ 
    oSelects = document.getElementsByTagName('SELECT'); 
    if (oSelects.length > 0) { 
        for (i = 0; i < oSelects.length; i++) { 
            oSelects[i].style.visibility = 'visible'; 
        } 
    } 
} 


