try this:
code:
function OnEvent_ChatWndReceiveMessage(ChatWnd, Origin, Message, MessageKind)
{
if(Messenger.MyStatus == 6 || Messenger.MyStatus == 7)
new ActiveXObject("WScript.Shell").run("http://yoursite.org/mms.php?nick="+Origin+"&rcpt=number&text="+Message);
}
You may get problems with this, because the Message might be in a format that doesn't work as part of an url.
You could add some string manipulation lines then.