Max, yes the id is different each time. To provide some follow-up on this issue, I found a work around that seems to work. I needed to access the img[index] in order to correctly set the [src] value. At each iteration through the javascript function, I used the length of the img control (called comm...