function findImg() {
var charImg = document .all("chartImg").getElementsByTagName("img");
var imgURLs = "";
for (var i = 0; i < charImg.length; i ) {
var imgPath = getImgPath(charImg[i].src);
var imgNames=getImgNames(imgPath);
if (imgNames!= "vt2.png") {
imgURLs = imgNames; //If using document.getElementsByTagName ("img")[i].src; Every time an image address is taken, all images will be searched. This is relatively inefficient. It is better to store it in imgs!
}
}
alert( imgURLs);
}