<!--
function Onbw(theURL,winName,features, myWidth, myHeight, isCenter) {
  if(window.screen)if(isCenter)if(isCenter=="true"){
    var myLeft = (screen.width-myWidth)/2;
    var myTop = (screen.height-myHeight)/2;
    features+=(features!='')?',':'';
    features+='left='+myLeft+',top='+myTop;
  }
  else{
	features+=(features!='')?',':'';
    features+=isCenter;	  
  }
  window.open(theURL,winName,features+((features!='')?',':'')+'width='+myWidth+',height='+myHeight);
}

function popup_image(chemin){
	i1 = new Image;
	i1.src = chemin;
	var html = '<?phpxml version="1.0" encoding="UTF-8"?>';
	html += '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">';
	html += '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">'
	html += '<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />';
	html += '<meta http-equiv="content-language" content="fr" />';
	html += '<meta http-equiv="content-style-type" content="text/css" />';
	html += '<meta http-equiv="content-script-type" content="text/javascript" />';
	html += '<html>';
	html += '<head>';
	html += '<title>Image</title>';
	html += '<meta http-equiv="imagetoolbar" content="no" />';
	html += '<style type="text/css">';
	html += 'body {';
	html += 'margin : 0px;';
	html += 'text-align : center;';
	html += '}';
	html += 'img { border : none; }';
	html += '</style>';
	html += '</head>';
	html += '<body onload="window.focus()">';
	html += '<a href="#" onclick="self.close();return false;"><img src ="' + chemin + '" onload="window.resizeTo(this.width+14,this.height+32);" alt="Cliquez ici pour fermer" /></a>';
	html += '</body>';
	html += '</html>';

	popupImage = window.open('','_blank','toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=1');
	popupImage.document.open();
	popupImage.document.write(html);
	popupImage.document.close();
}
//-->
