Messenger.MyStatus will show you the current status. OnEvent_MyStatusChange is called before the status is changed that is why the Parameter NewStatus is there. If you replace Messenger.MyStatus with just NewStatus it will be fine
.
Also a few points to note. NewStatus and Messenger.MyStatus are integers not strings... do not put quotes around the values or else it will take more computing cycles to convert it to the proper type.
Also your code could be cleaned up... a lot:
js code:
function OnEvent_MyStatusChange(NewStatus) {
var oStatus = {
2 : 'Appearing Offline',
3 : 'Online',
4 : 'Busy',
5 : 'Be Right Back',
6 : 'Idle',
7 : 'Away',
8 : 'In a Call',
9 : 'Out to Lunch'
}
MsgPlus.DisplayToast('', 'Status: '+oStatus[NewStatus]);
}