[MX2004] Function

I have a variable **img_total **(total images), which represents an integer from 1 to 999, etc. I need a function to use this number (say img_total=10) and effect all the images from 1-10 (ex. 10-1, 10-2, 10-3, etc up to 10-9). The function I need this to work on is:

function load_thumbs (i_total){
eval(“i_images.i_”+i_total+".img").loadMovie(“t_img/”+eval(“i_”+i_total)+".jpg");
}

where **i_total **is ideally some form of range for 1 up to img_total.

Any help would be great.