<script language="javascript" type="text/javascript">
<!--
function frmnewmessage_validate(){
	if(document.frmnewmessage.content.value == ""){
		alert("内容不能为空");
		window.document.frmnewmessage.content.focus();
		return false;
	}
}
//-->
</script>
<form name="frmnewmessage" id="frmnewmessage" method="post" onsubmit="return frmnewmessage_validate();">
<input type="hidden" name="action" id="action" value="newmessage" />
<table width="100%" class="grid" cellspacing="1" align="center">
<caption>发送站内信</caption>
	<tr>
		<td class="tdleft" width="100">收件人：</td>
		<td><input type="text" class="text" name="receiver" id="receiver" size="30" maxlength="20" value="{?$receiver?}" /> <span class="red">留空则发送给所有用户</span></td>
	</tr>
	<tr>
		<td class="tdleft">标题：</td>
		<td><input type="text" class="text" name="title" id="title" size="50" maxlength="100" value="{?$title?}" /></td>
	</tr>
	<tr>
		<td class="tdleft">内容：</td>
		<td><textarea class="textarea" name="content" id="content" rows="12" cols="60">{?$content?}</textarea></td>
	</tr>
	<tr>
		<td class="tdleft">&nbsp;</td>
		<td><input type="submit" class="button" name="submit" id="submit" value="发 送" /></td>
	</tr>
</table>
</form>