function closeNotification(nodeId, id) {
	dojo.xhrPost({
		url: userUrl + '/notification/close/' + id,
		handleAs: 'json',
		preventCache: true,
		load: function(data) {
			if (data.status == 'OK') {
				dojo.animateProperty({
					node: nodeId,
					duration: 500,
					properties: {
						opacity: 0
					},
					onEnd: function() {
						dojo.destroy(nodeId);
					}
				}).play();
			} else {
				alert(data.error);
			}
		},
		error: function(data) {
			alert('error');
		}
	});
}
