this is my attempt
var test=["a","b","c"];
var var0="a";
for(var i=0; i<1; i++) {
test.splice(test.indexOf(test[window["var"+i.toString()]]),1);
}
alert(test);
it alerts "a,b" but I want it to alert "b,c"
ref:http://stackoverflow.com/questions/5613834/convert-string-to-variable-name-in-javascript