/**
* Find protoype for Array object.
* Search on the first field of every row. (Changed by elhoyos)
*
* Taken from Dzone Snippets
* http://snippets.dzone.com/posts/show/3631
* 
* This prototype extends the Array object to allow for searches
* within the Array. It will return false if nothing is found. If
* item(s) are found you'll get an array of indexes back which matched
* your search request. It accepts strings, numbers, and regular expressions as search
* criteria. 35 is different than '35' and vice-versa.
*/
Array.prototype.find = function(searchStr) {
  var returnArray = false;
  for (i=0; i<this.length; i++) {
    if (typeof(searchStr) == 'function') {
      if (searchStr.test(this[i][0])) {
        if (!returnArray) { returnArray = [] }
        returnArray.push(i);
      }
    } else {
      if (this[i][0]===searchStr) {
        if (!returnArray) { returnArray = [] }
        returnArray.push(i);
      }
    }
  }
  return returnArray;
}