echo '<a href=javascript:popImage("fotos/$res[ARCHIVO]","$res[NOMBRE]") target="_blank"><img src="fotos/$res[ARCHIVO]"/></a>';