code: function mkId(value, mayBeNegative) {
              var id = -1,
                  sign = 1;
              if (value.charAt(0) == '-') {
                  sign = -1;
                  value = value.substring(1);
              }
              if (Lang.NUMBER_DEC.test(value))
                  id = parseInt(value);
              else if (Lang.NUMBER_HEX.test(value))
                  id = parseInt(value.substring(2), 16);
              else if (Lang.NUMBER_OCT.test(value))
                  id = parseInt(value.substring(1), 8);
              else
                  throw Error("illegal id value: " + (sign < 0 ? '-' : '') + value);
              id = (sign*id)|0; // Force to 32bit
              if (!mayBeNegative && id < 0)
                  throw Error("illegal id value: " + (sign < 0 ? '-' : '') + value);
              return id;
          }
docs: ----- Conversion ------ 
  Converts a numerical string to an id.
  @param {string} value
  @param {boolean=} mayBeNegative
  @returns {number}
  @inner