I have the following code attached to an event. When it gets to the 3rd
alert statement, it shows the value to be "undefined" rather than "c".
Does anyone know why this happens?

var p = Array("a","b","c");
alert("p1: " + p[1]);
alert("p2: " + p[2]);
alert("p3: " + p[3]);

Thanks,

JG