changeImgVis(index, layer); changeImgVis(1, 3);
findImg(index).layer = layer; findImg(1).layer = 3; //or with (findImg(1)) { layer = 3; }