<%@ Page Language="C#" AutoEventWireup="true" CodeFile="ChatWindow.aspx.cs" Inherits="ChatWindow" ValidateRequest="false" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>Chat Window</title>
    <%= csRefresh %>

    <script type="text/javascript" src="scripts/functions.js"></script>

    <script language="JavaScript" type="text/javascript">
        function ScrollDown() {
            document.getElementById("panMessage").scrollTop = document.getElementById("panMessage").scrollHeight;
        }

        function playSound(soundURL) {
            document.write("<embed src='" + soundURL + "' hidden='true' autostart='true' loop='false' />");
        }

    </script>

</head>
<body onload="ScrollDown();">
    <form id="form1" runat="server">
    <div>
        <table>
            <tr>
                <td style="width: 434px">
                    <asp:Panel ID="panMessage" runat="server" Height="352px" Width="432px" ScrollBars="Vertical">
                        <asp:Literal ID="litMessage" runat="server"></asp:Literal>
                    </asp:Panel>
                </td>
                <td>
                    <asp:Label ID="lblUsers" runat="server" BackColor="#C0C0FF" BorderColor="Black" BorderStyle="Solid"
                        BorderWidth="1px" Height="356px" Width="112px"></asp:Label>
                </td>
            </tr>
        </table>
    </div>
    </form>
</body>
</html>
