        // Create global javascript array to store names
var arrNames = new Array()
/*var arrValues = new Array()*/
// Function to loop through array of names and add each name to grid

function LetterOnClick(strSelectedLetter) {

  var strFullName, strFirstLetter;
  var showNames=[];

  // Find the names that begin with the selected letter
  for (var i = 1; i <= arrNames.length - 1; i++) {

   // Get the name from the array
   strFullName = arrNames[i];

   // Get the first letter of the name
   strFirstLetter = strFullName.substr(0,1);

   // If letters matche, add name to array
   if (strFirstLetter == strSelectedLetter) showNames.push(strFullName);
  }

 
if(showNames.length)document.getElementById("theNames").innerHTML=showNames.join("<br />");

}


          function PopulateArray(intCount,strFullName) {
             // Add each name from the database to the array 
            arrNames[intCount] = strFullName
            /*arrValues[intCount] = strValue*/
            
            strFirstLetter = strFullName.substr(0,1)
            // If the first letter matches the letter selected, add name to select control 
        
          //  if (strFirstLetter == "W") {
          //  frm.MemberName.options[i] = new Option(strFullName, strValue)
       // }
           }





