function resizePopUp(monImage, monTitre)
    {
	w = window.open('','chargement','width=10,height=10');
	w.document.write( "<html><head><title>"+monTitre+"</title>\n" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "IE5=NN4=NN6=false;\n");
	w.document.write( "if(document.all)IE5=true;\n");
	w.document.write( "else if(document.getElementById)NN6=true;\n");
	w.document.write( "else if(document.layers)NN4=true;\n");
	w.document.write( "function autoSize() {\n");
	w.document.write( "if(IE5) self.resizeTo(document.images[0].width+10,document.images[0].height+31);\n");
	w.document.write( "else if(NN6) self.sizeToContent();\n");
	w.document.write( "else window.resizeTo(document.images[0].width,document.images[0].height+20);\n");
	w.document.write( "self.focus();\n");
	w.document.write( "}\n</scri");
	w.document.write( "pt>\n");
	w.document.write( "</head><body leftmargin=0 topmargin=0 marginwidth=0 marginheight=0 onLoad='javascript:autoSize();'>" );
	w.document.write( "<a href='javascript:window.close();'><img src='"+monImage+"' border=0 alt='"+monTitre+"'></a>" );
	w.document.write( "</body></html>" );
	w.document.close();
	}



	function popup(img, popX, popY)
	{	
	var top=(screen.height-popY)/2;
	var left=(screen.width-popX)/2;	
  str='<html><head><title> Zoom Produit</title></head>';
  str+='<BODY BGCOLOR="#FFFFFF" LEFTMARGIN="0" MARGINHEIGHT="0" MARGINWIDTH="0" RIGHTMARGIN="0" TOPMARGIN="0" BOTTOMMARGIN="0">';
  str+='<table border="0" cellspacing="0" cellpadding="0" align="center" height="100%"><tr><td align="center">';
  str+='<img src="'+img+'">';
  str+='</td></tr></table>';
  str+='</body></html>';
  winzoom=window.open('','winzoom','top='+top+',left='+left+',toolbar=0,location=0,directories=0,menuBar=0,scrollbars=0,resizable=0,width='+popX+',height='+popY);
  winzoom.document.open();
  winzoom.document.write(str);
	}

	
	/***************************************************************
	/* fonction qui permet de regler le probleme de transparence sous pour les png
	/***************************************************************/
	
		function correctPNG() 
   {
 		  for(var i=0; i<document.images.length; i++)
      {
	  			var img = document.images[i]
					var imgName = img.src.toUpperCase()
	  			if (imgName.substring(imgName.length-1, imgName.length) == "0")
	     		{
					 		var imgID = (img.id) ? "id='" + img.id + "' " : ""
		 					var imgClass = (img.className) ? "class='" + img.className + "' " : ""
		 					var imgTitle = (img.title) ? "title='" + img.title + "' " : "title='" + img.alt + "' "
							 var imgStyle = "display:inline-block;" + img.style.cssText 
							 if (img.align == "left") imgStyle = "float:left;" + imgStyle
							 if (img.align == "right") imgStyle = "float:right;" + imgStyle
							 if (img.parentElement.href) imgStyle = "cursor:hand;" + imgStyle		
							 var strNewHTML = "<span " + imgID + imgClass + imgTitle
						 		+ " style=\"" + "width:" + img.width + "px; height:" + img.height + "px;" + imgStyle + ";"
					     	+ "filter:progid:DXImageTransform.Microsoft.AlphaImageLoader"
								+ "(src=\'" + img.src + "\', sizingMethod='scale');\"></span>" 
							 img.outerHTML = strNewHTML
							 i = i-1
	    		 }
      }
   }
   
	 
	