		$.messager.alert('Error', err, 'error');
						}
					});
				}
			}
		}

		function nodeExist(p) {
			for (var i=0;i<=idCount;i++) {
				var node = $('#etree').tree('find', i);
				if (node !== null && node.path === p) {
					return node;
				}
			}
			return null;
		}

		function removeNode() {
			var node = $('#etree').tree('getSelected');
			$.messager.confirm('Confirm', 'Remove ' + node.text + '?', function(r){
				if (r){
					$.ajax({
						type: 'POST',
						timeout: timeout,
						url:  serverBa