<%@ Page Language="c#" %>	
<html>
	<head>
		<title>包哥的理想聊天室</title>
		<meta name="vs_targetSchema" content="http://schemas.microsoft.com/intellisense/ie5">
		<script language="JavaScript" src="chat.js"></script>
	</head>
	<body onload="init()">
		<div id="service" style="behavior:url(webservice.htc)" onresult="onmyresult()">
		</div>
		
		<h3>
		<p><a href="http://suyuan.verylead.cn">包哥的理想聊天室</a></p>
		</h3>
			<!--<a href="service1.asmx">click here</a> to see the reference.<p>-->
			<b>昵称:</b>
			<table border="0" cellpadding="0" cellspacing="1">
				<tr>
					<td valign="bottom">
						<input id="NickName" type="text" style="width=385;">
					</td>
					<td valign="bottom">
						<input type="submit" value="连接" onclick="SelectName();" ID="bnSelectName" style="width=90;" NAME="bnSelectName"><input type="button" value="退出" onclick="DoLogout();" id="bnLogout" disabled style="visible=false;display=none;width=90;" NAME="bnLogout">
					</td>
				</tr>
				<tr>
					<td valign="bottom">
						<select id="RoomList" onchange="ChangeRoom();" style="width=295" NAME="RoomList" disabled="true"></select><input id="NewRoom" type="text" style="width=90" disabled="true">
					</td>
					<td valign="top">
						<input type="button" value="创建房间" ID="bnCreateRoom" onclick="CreateRoom();" style="width=90;" disabled="true">
					</td>
				</tr>
				<tr>
					<td valign="top">
						<textarea readonly id="ChatMsgs" style="width=385;height=215" NAME="ChatMsgs"></textarea>
					</td>
					<td valign="top">
						<select disabled="true" id="PersonList" onchange="GetPerson();" size="15" style="width=90;height=215" NAME="PersonList"></select>
					</td>
				</tr>
				<tr>
					<td valign="top">
						<input id="UserInput1" style="visible=true;display=inline;width=385;" disabled="true">
						<textarea id="UserInput2" style="visible=false;display=none;width=385;height=40" disabled="true"></textarea>
					</td>
					<td valign="top">
						<input type="submit" value="发送信息" onclick="SendMsg();" ID="bnSendMsg" style="width=90;" disabled="true" NAME="bnSendMsg">
					</td>
				</tr>
				<tr>
					<td valign="top" colspan="2">
						<input type="checkbox" id="IsAlerted" checked disabled>发送信息方式 
						&nbsp;&nbsp;&nbsp; <select disabled onchange="ChangeMessageOption();" style="width=192" ID="MessageOptionList" NAME="OptionList"><option value="0" selected>单行消息发送<option value="1">多行消息发送</option></select>
					</td>
				</tr>
			</table>
		<!--<p>
			<b>Sites linked by AyloChat Cluster:</b>
			<br>
			<textarea readonly id="Textarea1" style="width=475;height=50" NAME="daservers"></textarea>-->
	</body>
</html>
