function init(){
  var elem;
    //printJS
    if(elem=document.getElementById("printJS")){
      //Events sur l'element Lien Tabulation
      elem.onfocus=function(){document.getElementById("print").style.marginLeft="0px"};
      elem.onblur=function(){document.getElementById("print").style.marginLeft="-1000px"};
      //Events sur l'element UL (Affichage) Souris
      elem.onmouseover=function(){document.getElementById("print").style.marginLeft="0px"};
      elem.onmouseout=function(){document.getElementById("print").style.marginLeft="-1000px"};
    }
    //vitrineJS
    if(elem=document.getElementById("vitrineJS")){
      //Events sur l'element Lien Tabulation
      elem.onfocus=function(){document.getElementById("vitrine").style.marginLeft="0px"};
      elem.onblur=function(){document.getElementById("vitrine").style.marginLeft="-1000px"};
      //Events sur l'element UL (Affichage) Souris
      elem.onmouseover=function(){document.getElementById("vitrine").style.marginLeft="0px"};
      elem.onmouseout=function(){document.getElementById("vitrine").style.marginLeft="-1000px"};
    }
    //dynamiqueJS
    if(elem=document.getElementById("dynamiqueJS")){
      //Events sur l'element Lien Tabulation
      elem.onfocus=function(){document.getElementById("dynamique").style.marginLeft="0px"};
      elem.onblur=function(){document.getElementById("dynamique").style.marginLeft="-1000px"};
      //Events sur l'element UL (Affichage) Souris
      elem.onmouseover=function(){document.getElementById("dynamique").style.marginLeft="0px"};
      elem.onmouseout=function(){document.getElementById("dynamique").style.marginLeft="-1000px"};
    }
    //applicationJS
    if(elem=document.getElementById("applicationJS")){
      //Events sur l'element Lien Tabulation
      elem.onfocus=function(){document.getElementById("application").style.marginLeft="0px"};
      elem.onblur=function(){document.getElementById("application").style.marginLeft="-1000px"};
      //Events sur l'element UL (Affichage) Souris
      elem.onmouseover=function(){document.getElementById("application").style.marginLeft="0px"};
      elem.onmouseout=function(){document.getElementById("application").style.marginLeft="-1000px"};
    }
    //evenementielJS
    if(elem=document.getElementById("evenementielJS")){
      //Events sur l'element Lien Tabulation
      elem.onfocus=function(){document.getElementById("evenementiel").style.marginLeft="0px"};
      elem.onblur=function(){document.getElementById("evenementiel").style.marginLeft="-1000px"};
      //Events sur l'element UL (Affichage) Souris
      elem.onmouseover=function(){document.getElementById("evenementiel").style.marginLeft="0px"};
      elem.onmouseout=function(){document.getElementById("evenementiel").style.marginLeft="-1000px"};
    }					
    //chaplink
    if(elem=document.getElementById("chaplink")){
      //Events sur l'element Lien Tabulation
      elem.onfocus=function(){document.getElementById("chapeau").style.background="url(images/chapeau_4.gif)"};
      elem.onblur=function(){document.getElementById("chapeau").style.background="url(images/chapeau.gif)"};
      //Events sur l'element UL (Affichage) Souris
      elem.onmouseover=function(){document.getElementById("chapeau").style.background="url(images/chapeau_4.gif)"};
      elem.onmouseout=function(){document.getElementById("chapeau").style.background="url(images/chapeau.gif)";document.getElementById("chapeau").style.backgroundPosition="0 bottom";document.getElementById("chapeau").style.backgroundRepeat="no-repeat" };
   }                                                       
}
/*--------- depliemen/repliement texte --------*/
function show(ancre){
    document.getElementById("main").style.display="none";
    document.getElementById(ancre).style.marginTop="0px";      
}
function hide(ancre){
    document.getElementById(ancre).style.marginTop="-1000px";
    document.getElementById("main").style.display="block";    
}
/*--------- Verification formulaire --------*/
function verif_form(car,idFieldset,idSubmit,idForm){
  var msgTxt="";
  target=document.getElementById(idFieldset);
  //Verif des champs obligatoires
  for(i=0;i<target.childNodes.length;i++){
    if(target.childNodes[i].nodeName=="LABEL"){
      if(target.childNodes[i].firstChild.nodeValue.indexOf(car)>0){
        if(target.childNodes[i+1].value==""){
          msgTxt+=target.childNodes[i].firstChild.nodeValue+" est obligatoire\n";
        }
      }
    }
  }
  (msgTxt.length>1)?alert(msgTxt):submit_form(document.getElementById(idSubmit),document.getElementById(idForm));  
}
function submit_form(idSubmit,idForm){
  idSubmit.disabled=true;
  idSubmit.value="patientez...";
  idForm.submit();  
}
