code: function ParseCountryCode(number) {
      for (var n = 1; n <= 3; ++n) {
        var cc = number.substr(0,n);
        if (dataBase[cc])
          return cc;
      }
      return null;
    }
docs: Determine the country code a number starts with, or return null if its not a valid country code.