<table id="chat" border="0" width="720" cellspacing="0" cellpadding="0" style="valign:top">
	<tr>
		<td height="20px" width="100%" class="b1"><span>{lang chat}</span></td>
	</tr>
	<tr>
		<td valign="top" class="b3" style="text-align: left" height="1px">
			<div id="chatlist" class="chatlist">
				<!--{loop $chatdata['msg'] $msg}-->
				$msg
				<!--{/loop}-->
			</div>
		</td>
	</tr>
	<tr>
		<td class="b3" height="5"></td>
	</tr>
	<tr>
		<td class="b3" height="35">
			<div>
				<form type="post" id="sendchat" name="sendchat" action="chat.php" onsubmit="return false;" >
					<input type="hidden" id="lastcid" name="lastcid" value="$chatdata['lastcid']">
					<input type="hidden" id="teamID" name="teamID" value="$teamID">
					<input type="hidden" id="sendmode" name="sendmode" value="ref">
					<span id="chattype">
						<select name="chattype" value="2">
							<option value="0" selected>$chatinfo[0]
							<!--{if $teamID}--><option value="1" >$chatinfo[1]<!--{/if}-->
						</select>
					</span>
					<input type="text" id="chatmsg" name="chatmsg" maxlength="60" >
					<input type="button" id="send" onClick="document['sendchat']['sendmode'].value='send';chat('send',$chatrefresh);return false;" value="{lang send}">
					<input type="button" id="ref" onClick="document['sendchat']['sendmode'].value='ref';chat('ref',$chatrefresh);return false;" value="{lang refresh}">
				</form>
			<script type="text/javascript">chat('ref',$chatrefresh);</script>
			</div>
		</td>
	</tr>
</table> 