// JavaScript Document
function PopupImage(url) {
	w=open("",'image','width=400,height=400,toolbar=no,scrollbars=no,resizable=yes');	
	w.document.write("<HTML><HEAD><style type=\"text/css\">body {overflow: hidden;}</style><TITLE></TITLE></HEAD>");
	w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+150); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
	w.document.write("<BODY onload='checksize();' leftMargin=0 topMargin=0 marginwidth=0 marginheight=0><a href='javascript:window.close();'><IMG src='"+url+"' border=0></a><br><div align='center'><a href='javascript:window.print();'>Imprimer</a></div>");
	w.document.write("");
	w.document.write("</BODY></HTML>");
	w.document.close();
}
function fnInsertPrint()
{
   // Création d'un lien
   var oA = document.createElement('a');
   oA.setAttribute('href', '#');
   var oTxtA = document.createTextNode('Imprimer');
   oA.appendChild(oTxtA);

   // Affectation de la méthode print() au clic sur le lien
   oA.onclick = function() { window.print(); return false; }
	
   // Positionnement du lien dans la page
   var oCont = document.getElementById('conteneur');
   if(!oCont) return;
   oCont.appendChild(oA);
}