i think what macsig means is his arrays are like var a =[array a] var b = [array b]
if thats the case you might want to do var arrays = { 'a' : [array a], 'b' : [array b] } then when select changes and you get the value you can get your array with var myArray = arrays[val];