Cannot get length in array
<p>I could not even get the alert prompt. What wrong did I done on IE9?</p>

<pre><code>&lt;script type="text/javascript"&gt;
    var countrieslist=document.sc.s1
    var subjlist=document.sc.s2

    var subj=new Array()
    subj[0]=""
    subj[1]=["New York|newyorkvalue", "Los Angeles|loangelesvalue", "Chicago|chicagovalue", "Houston|houstonvalue", "Austin|austinvalue"]
    subj[2]=["Vancouver|vancouvervalue", "Tonronto|torontovalue", "Montreal|montrealvalue", "Calgary|calgaryvalue"]
    subj[3]=["London|londonvalue", "Glasgow|glasgowsvalue", "Manchester|manchestervalue", "Edinburgh|edinburghvalue", "Birmingham|birminghamvalue"]

function updateSubj(selectsubj) {
    if (selectsubj&gt;0){
        for (i=0; i&lt;subj[selectsubj].length; i++) {
        alert("ss");
            //s2.options[subjlist.options.length]=new Option(subj[selectsubj][i].split("|")[0], subj[selectsubj][i].split("|")[1])
        }
    }
}
&lt;/script&gt;
</code></pre>
