function montrer(id)
{
  if (id)
  {
    document.getElementById(id).style.visibility="visible";
  }
}

function cacher(id)
{
  if (id)
  {
    document.getElementById(id).style.visibility="hidden";
  }
}

function afficher(id)
{
  if (id)
  {
    document.getElementById(id).style.display="";
  }
}

function masquer(id)
{
  if (id)
  {
    document.getElementById(id).style.display="none";
  }
}

function ClipClap(id)
{
  if (document.getElementById(id).style.display=='none')document.getElementById(id).style.display='';
  else document.getElementById(id).style.display='none';
}

function getnom(chemin)
{
	sNomFichier_l = chemin.substring(chemin.lastIndexOf('/')+1,(chemin.indexOf(".")!=-1)?chemin.indexOf(".") :chemin.length)
	return(sNomFichier_l);
}

function getextension(chemin)
{
	sExtension_l = chemin;
	sExtension_l = sExtension_l.split('.');
	sExtension_l = sExtension_l[sExtension_l.length-1];
	return(sExtension_l.toLowerCase());
}