function ob_OnBeforeNodeDrop(src, dst, copy) { if(ob_t2_getNodeLevel(dst) >= 2) { alert("You are not allow to have more than 2 levels of nodes"); return false; } return true; }