You could call the following as an URL, but then you end up on the ICQ page. To have it so that your page stays put when your message is sent do the following:
Get the function sendToHost from:
http://www.faqts.com/knowledge_base/view.phtml/aid/12039/fid/51
Lets say the ICQ number you are sending to is 123456789.
Example of useage:
sendToHost("web.icq.com",POST,"/whitepages/page_me/1,,,00.html","to=123456789&from=Fred&fromemail=fred@hotmail.com&body=Hello",FALSE);
Note:You'll have to use urlencode() for the body if you want more than one word. This will take care of spaces and special characters.
-E