function showPict(larg, haut, pathPict, caption)
{
chemin = pathPict;
var t = ""; 

var w = 480, h = 340;
if (document.all || document.layers) {
   w = screen.availWidth;
   h = screen.availHeight;
}

var pWidth = larg-30, pHeight = haut-40;

if (caption != "") {
	var pWidth = pWidth-30;
	var pHeight = pHeight-40;
}

var popW = larg, popH = haut;
var leftPos = (w-popW)/2, topPos = (h-popH)/2;

var theWindow;
theWindow = window.open("","top","bar=no,toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,width="+larg+",height="+haut+",screenX=0,left="+leftPos+",screenY=0,top="+topPos);

t += "<HTML>\n";
t += "<HEAD>\n";
t += "<TITLE>Photo Gallery</TITLE>\n";
t += "</HEAD>\n";
t += " <BODY BGCOLOR=\"black\">\n";
t += "  <TABLE BORDER=\"0\" CELLPADDING=\"0\" CELLSPACING=\"0\" WIDTH=\"100%\" HEIGHT=\"100%\"BGCOLOR=\"white\">\n";
t += "   <TR>\n";
t += "    <TD ALIGN=\"CENTER\" VALIGN=\"MIDDLE\">";
t += "      <TABLE BORDER=\"0\" CELLPADDING=\"5\" CELLSPACING=\"0\" BGCOLOR=\"white\">\n";
t += "        <TR>\n";
t += "          <TD>\n";
t += "          <P ALIGN=\"center\"><A HREF=\"javascript:self.close()\" onmouseover=\"window.status='close'\; return true\">\n";
t += "          <IMG width=\"" + (pWidth) + "\" height=\"" + (pHeight) + "\" SRC=\"" + chemin + "\" BORDER=0 TITLE=\"Click on the picture to close the window.\"></A></TD>\n";
t += "        </TR>\n";
t += "      </TABLE>\n";
if (caption != "") {
t += "      <font face=\"verdana\" size=\"1\" color=\"black\">" + caption + "</font>\n";
}
t += "    </TD>\n";
t += "   </TR>\n";
t += "  </TABLE>\n";
t += " </BODY>\n";
t += "</HTML>\n";
theWindow.document.clear();
theWindow.document.write(t);
}
