Required library edition: Required library file: dhtmlxmenu.js
returns parent's id
var parentId = menu.getParentId(itemId);