Check out freeVBCode.com. In the past couple months there has been a number of implementations of chat applications, some with custom interfaces. Simply cut and paste the sub procedures and functions from the VB interface and update it to use your ASP/HTML interface.
Here is an ASP chat I found by searching FreeVBCode.com for "chat".
Managing Technical Editor