  
function impression()
{
stats="toolbar=no,location=no,scrollbars=yes,directories=no,status=no,menubar=yes,resizable=yes";
contenu=document.getElementById("ZonePrint").innerHTML
contenu = replaceAll(contenu,"IMG/env.gif","IMG/espace2.gif");
contenu = replaceAll(contenu,"IMG/pdf.gif","IMG/espace2.gif");
contenu = replaceAll(contenu,"Télécharger le CV","");
contenu = replaceAll(contenu,"Ecrire &nbsp;&nbsp;&nbsp;","");

win=window.open("about:blank", "", stats);

win.document.open();
win.document.write('<html><head><title>Impression</title>');
win.document.write('<link rel="stylesheet" type="text/css" href="design/print.css">');
win.document.write('</head>');

win.document.write('<body marginheight="0" marginwidth="0">');

if (document.getElementById)  

win.document.write(contenu);

else  

  if (document.all && !window.print)   /* IE 4 */
    win.document.write(document.all["ZonePrint"].innerHTML);
	
  else	
    {
      win.close();
      alert("Cette fonctionnalité ne fonctionne pas avec cette version de navigateur.");
    }
  
win.document.write('</body></html>');
win.document.close();
win.window.print() ;
win.close();
}

function replaceAll(oldStr,findStr,repStr) 
{
  var srchNdx = 0;  // srchNdx will keep track of where in the whole line
                    // of oldStr are we searching.
  var newStr = "";  // newStr will hold the altered version of oldStr.
  while (oldStr.indexOf(findStr,srchNdx) != -1)  
                    // As long as there are strings to replace, this loop
                    // will run. 
  {
    newStr += oldStr.substring(srchNdx,oldStr.indexOf(findStr,srchNdx));
                    // Put it all the unaltered text from one findStr to
                    // the next findStr into newStr.
    newStr += repStr;
                    // Instead of putting the old string, put in the
                    // new string instead. 
    srchNdx = (oldStr.indexOf(findStr,srchNdx) + findStr.length);
                    // Now jump to the next chunk of text till the next findStr.           
  }
  newStr += oldStr.substring(srchNdx,oldStr.length);
                    // Put whatever's left into newStr.             
  return newStr;
}
