--- /dev/null
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
+ "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <head>
+ <title>End Chat</title>
+ <script type="text/javascript" src="prototype.js"></script>
+ <script type="text/javascript">
+ function do_roomchat_unload() {
+ new Ajax.Request(
+ '../chat_exit', {
+ method: 'get'
+ }
+ );
+ }
+ </script>
+ </head>
+ <body onUnload="do_roomchat_unload();">
+ ugly hack to enable an onUnload event
+ </body>
+</html>