function hideshow(which,title)
{
if (!document.getElementById|document.all)
   return
else {
   if (document.getElementById) {
      oWhich = eval ("document.getElementById('" + which + "')");
      oTitle = eval ("document.getElementById('" + title + "')");
   } else {
      oWhich = eval ("document.all." + which);
      oTitle = eval ("document.all." + title);
   }

   window.focus();

   if (oWhich.style.display=="none") {
      oWhich.style.display="";
      oTitle.className="exheadingopened";
   } else {
      oWhich.style.display="none";
      oTitle.className="exheadingclosed";
   }
}
}

function hideshowmenu(which)
{
if (!document.getElementById|document.all)
   return
else {
   if (document.getElementById) {
      oWhich = eval ("document.getElementById('" + which + "')");
   } else {
      oWhich = eval ("document.all." + which);
   }

   window.focus();

   if (oWhich.style.display=="none") {
      oWhich.style.display="";
   } else {
      oWhich.style.display="none";
   }
}
}

//-----------------------------------------------------

function hideshowicon(which,title)
{
if (!document.getElementById|document.all)
   return
else {
   if (document.getElementById) {
      oWhich = eval ("document.getElementById('" + which + "')");
      oTitle = eval ("document.getElementById('" + title + "')");
   } else {
      oWhich = eval ("document.all." + which);
      oTitle = eval ("document.all." + title);
   }

   window.focus();

   if (oWhich.style.display=="none") {
      oWhich.style.display="";
      oTitle.className="folderopened";
   } else {
      oWhich.style.display="none";
      oTitle.className="folderclosed";
   }
}
}

//-----------------------------------------------------

function summary(which,nbr)
{
  if (!document.getElementById|document.all)
    return
  else {
    if (document.getElementById) oWhich = eval ("document.getElementById('det_" + which + "')");
    else oWhich = eval ("document.all." + which);

    window.focus();

    if (oWhich.style.display=="none") oWhich.style.display="";
    else oWhich.style.display="none";
  }
}

//-----------------------------------------------------
    function getfocus(item)
    {
      obj=document.getElementById(item.name);
      if(item.value==obj.defaultValue) {
        obj.value='';
        obj.style.color='#000000';
      }
    }

    function getblur(item)
    {
      obj=document.getElementById(item.name);
      if(!item.value) {
        obj.value=obj.defaultValue;
        obj.style.color='#B0B0B0';
      }
    }

//-----------------------------------------------------

    function popup(url,longueur,hauteur)
    {
      dest = open(url,"fenetre_" + hauteur+ "_" + longueur ,"personalbar=0,toolbar=0,directories=0,menubar=0,scrollbars=1,status=0,resizable=0,width="+ longueur +",height="+ hauteur +"");
      dest.focus();
    }