Searching for array title

I have five arrays outside of a function. What I am trying to achieve is when itemDetail is
concatenated it will give me the name of that array and I will be able to access the elements
but how do I call an array when the var is a string if I itemDetail[2] it will goto the letter in the
string? thanks


itemA = new Array(a,b,c);
itemB = new Array(a,b,c);
itemC = new Array(a,b,c);
itemD = new Array(a,b,c);
itemE = new Array(a,b,c);

function arrayFind (itemVar){

			var itemDetail = "item"+itemVar;
			alert(itemDetail);
                         // get these elements
}
arrayFind ('C');

One option with a slightly different approach:

        
     <script type="text/javascript">
            var items = [];
            items['A'] = [1,2,3];
            items['B'] = [4,5,6];
            items['C'] = [7,8,9];

            function arrayFind(itemVar){
                var str='';
                for(i=0; i<items[itemVar].length; i++){
                    str += items[itemVar][i]+"\
";
                }
                alert(str);
            }

            arrayFind('B');  //outputs 4,5,6

        </script>

thanks

I did not know how powerful the code was until I started playing i with it thanks again