
function resizePopUp(monImage, DeletePics, monImageVide, monTitre)
    {
    var DELNAME, IMAGESRC;
    var Recherche, MonTablo;
    DELNAME = DeletePics;
    IMAGESRC=monImage;
    IMAGESRC=IMAGESRC.toLowerCase();
    eval('Recherche = /'+DELNAME+'/;');
    MonTablo = Recherche.exec(IMAGESRC);
    if (MonTablo != null) {
    	monImage=monImageVide
    }
	w = window.open('','chargement','resizable=0,width=20,height=20');
	w.document.write( "<html><head><title>"+monTitre+"</title>\n" );
	w.document.write( "<script language='JavaScript'>\n");
	w.document.write( "var temp=self.location.href.split('?');\n");
	w.document.write( "var NS = (navigator.appName=='Netscape')?true:false;\n");
	w.document.write( "function fitPic() {\n");
	w.document.write( "iWidth = (NS)?window.innerWidth:document.body.clientWidth;\n");
	w.document.write( "iHeight = (NS)?window.innerHeight:document.body.clientHeight;\n");
	w.document.write( "iWidth = document.images[0].width - iWidth;\n");
	w.document.write( "iHeight = document.images[0].height - iHeight;\n");
	w.document.write( "window.resizeBy(iWidth, iHeight-1);\n");
	w.document.write( "self.focus();\n");
	w.document.write( "};\n</scri");
	w.document.write( "pt>\n");
	w.document.write( "</head><body bgcolor='#FFFFFF' leftmargin='0' topmargin='0' marginwidth='0' marginheight='0' onLoad='javascript:fitPic();'>" );
	w.document.write( "<a href='javascript:window.close();'><img src='"+monImage+"' border=0 title='Fermer "+monTitre+"'>" );
	w.document.write( "</body></html>" );
	w.document.close();
}

