Javascript var name counting variable
<p>I have the following bit of code: </p>

<pre><code>function finalCheck(theForm) {
var z = 0;
for(var i=0;i&lt;15;i++){
    var _i = theForm.elements[i].value;
    if(_i == ""){
        theForm.elements[i].style.background = '#FFD6D6';
        z = 1;
    }
}
if(z == 1){
    alert("Please correct the fields highlighted in red");
    return false;
} else {
    return true;
}
}
</code></pre>

<p>What I was attempting to do was set the name of <code>var _i</code> to <code>var _</code> and then the index that the counting variable was currently on. For example, <code>_1 _2 _3</code> etc. Any way to do this?</p>
