quote:
document.inputform.message.value += quote\r\n;
What is "quote" supposed to be? I don't see any variable by that name defined. Also, \r\n is a string, so it needs to be enclosed in quotation marks. Something like this would probably work...
document.inputform.message.value += username+"\r\n";
quote:
<textarea name='message' rows='10' cols='50'</textarea>
You're missing a ">" in there.