<Script language=javascript>
function SendMSNMessage(name)
{
//Send a message through MSN , only for IE
//and you must have installed MSN or Window Message
MsgrObj.InstantMessage(name);
}
function AddMSNContact(name)
{
//Add a people to MSN , only for IE
//and you must have installed MSN or Window Message
MsgrObj.AddContact(0, name);
}
</script>
<object id="MsgrObj" classid="clsid:B69003B3-C55E-4B48-836C-BC5946FC3B28" codetype="application/x-
oleobject" width="0" height="0"></object>
<input type=button value="Send a message to XXXX@hotmail.com" οnclick="SendMSNMessage
('XXXX@hotmail.com')" />
<input type=button value="Add XXXX@hotmail.com to MSN" οnclick="AddMSNContact('XXXX@hotmail.com')" />