//Cache control

function DoInstantMessage(person,screen)
{
try{MsgrObj.classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28";}
catch(e){if(!(e.number && 2148139390) == 2148139390)return;}

if(MsgrObj.MyStatus == 1)
{
alert("You are not logged into Messenger.\nYou must login to Messenger before continuing.");
return;
}

try{var contact = MsgrObj.GetContact(person,"");}
catch(e)
{
if((e.number && 2164261642) == 2164261642) //MSGR_E_USER_NOT_FOUND
{
if(confirm("Add "+screen+" to your contact list?")==true)MsgrObj.AddContact(0,person);
}
}

if(confirm("Send "+screen+" an instant message?")==true)MsgrObj.InstantMessage(person);
}
