function BxAlrNotifications () {}

BxAlrNotifications.prototype.closeNotification = function(iNotifId, sNotifName) {						
	if(!iNotifId || !sNotifName) return;
	
	var loadComplete = function(oResult) {
		var oRequest = new BxXmlRequest('','','');
		iResultCode = parseInt(oRequest.getRetNodeValue(oResult, 'result'));
		if(iResultCode == 0)
			$('notifPopup_' + iNotifId).style.display = 'none';
	}			
	new BxXmlRequest(aBxConfig['urlRoot'] + "xcontent/alerts/xml_closeNotification/" + sNotifName, loadComplete, true);						
}

var gBxAlrNotifications = new BxAlrNotifications();