function getNotification(targetId, notificationType, displayType, displayPage){
	var sc = document.createElement("script");
	sc.setAttribute("type","text/javascript");
	sc.setAttribute("src", notification_appPath + 'GetNotification.htm?notificationType=' + notificationType + '&displayType=' + displayType + '&displayPage=' + displayPage + '&targetId=' + targetId + '&t=' + new Date().getTime());
	document.getElementsByTagName("body").item(0).appendChild(sc);
}

function setNotification(notificationList){
	try{
		if(notificationList.html && notificationList.html != ''){
			document.getElementById(notificationList.targetId).innerHTML = notificationList.html;
		} else {
			document.getElementById(notificationList.targetId).style.display = 'none';
		}
	}
	catch(e){
	}
}

function loadNotification(pageNo, notificationType, displayType){
	var paramsObj = new Object;
	eval('paramsObj.displayType = \'' + displayType + '\'');
	eval('paramsObj.pageNo = \'' + pageNo + '\'');
	eval('paramsObj.notificationType = \'' + notificationType + '\'');
	new Ajax.Updater('notificationList', 'GetNotification.htm' , {method:"post", asynchronous:false, parameters:paramsObj});
}