posta le funzioni MsgrObj.InstantMessage e MsgrObj.AddContact che hai nei tag head perchè non esistono predefinite