For a good javascript tut try here.

also look up HTML goodies on http://www.google.com

as far as code for Yahoo I/M.. Visit thier support page. It should be most similar to AIM.

http://hotwired.lycos.com/webmonkey/javascript/tutorials/tutorial1.html
_________________________
My New site OpenEyes