Simple JavaScript not working
<p>Can somebody tell me what I am doing wrong?</p>

<pre><code>window.onload = initForm;
function initForm() {
    var allTags = document.getElementsByTagName("*");
    for(i=0; i&lt;allTags.length; i++) {
        if (allTags[i].className.indexOf("textbox") &gt; -1) {
            allTags[i].onFocus = fieldSelect;
            allTags[i].onBlur = fieldDeSelect;          
        }
    }
}
function fieldSelect() {
    this.style.backgroundImage = "url('inputBackSelected.png')";
}

function fieldDeSelect() {
    this.style.backgroundImage = "url('inputBack.png')";
}
</code></pre>

<p>I am a beginner at JavaScript so I am not used to debugging code yet.</p>

<p>Thanks</p>

<p>Luke</p>
