Moodle 1.5.3+ (2005060230)
Windows Server 2003
EasyPHP
PHP
We could not enter text in our chat (js error) on a similar install to yours (using IIS 6 instead of Apache). We uninstalled Moodle 1.5 and installed Moodle v. 1.4 The chat works fine now.
Hope this helps
Ted