Qué raro. Porque ese código funciona bien. Lo tienes en algún servidor, así me pasas la dirección y lo miro.
De todas formas, has cambiado también el contenido en donde pone afoto?
Es decir.
Código:
<td width="32%">
<div align="center">
<a href="#" onClick="afoto('images/wlodlog2.gif');return false">
<img src="images/wlodlog2.gif" width="100" height="73" border="0">
</a>
</div>
</td>
<td width="20%">
<div align="center">
<a href="#" onClick="afoto('images/dirlog1.bmp');return false">
<img src="images/dirlog1.bmp" width="62" height="72" border="0">
</a>
</div>
</td>
<td width="18%">
<div align="center">
<a href="#" onClick="afoto('images/dirlog2.bmp');return false">
<img src="images/dirlog2.bmp" width="54" height="84" border="0">
</a>
</div>
</td>