returns (and reserves) next unique ID for any purposes
var data = {}; data[window.dhx.newId()] = { param: "value", param2: "value2" };