function DoInstantMessage(person,screen)
{
	if (MsgrObj)
	{
		//Check if person has messenger installed
		try{MsgrObj.classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28";}
		catch(e){if(!(e.number && 2148139390) == 2148139390)return;}

		//Check if you are logged in
		if(MsgrObj.MyStatus == 1)
		{
			alert("Vous n'êtes pas connecté à Messenger.\nVous devez vous connecter avent de continuer.");
			return;
		}

		//Check if person is already in contact list
		try{var contact = MsgrObj.GetContact(person,"");}
		catch(e)
		{
			if((e.number && 2164261642) == 2164261642) //MSGR_E_USER_NOT_FOUND
			{
				if(confirm("Ajouter "+screen+" à votre liste de contacts?")==true)MsgrObj.AddContact(0,person);
			}
		}

		//Ask to send an instant message
		if(confirm("Envoyer "+screen+" un message instantané?")==true)MsgrObj.InstantMessage(person);
	}
}
