Using one funnction instead of many functions
<p>I have a lot of images that are individually updating a drop down selection box. I've been using the following: (changing the replaceContent(number) and a different selectIndex = (number) inside a separate function for each image). </p>

<pre><code>function replaceContent9() {
     document.getElementById("ecwid-productoption-8840317-Backgrounds")
             .selectedIndex = 0 ; } 
</code></pre>

<p>I call the function like this:</p>

<pre><code>javascript:replaceContent9
</code></pre>

<p>How would I do this with an array so that I might have just one function that is used for all the images. So far not so good at figuring out arrays. Maybe someone could point me in the right direction or suggest a code to try. </p>
