<script type="text/javascript">

function getImg(imgid){
var str = document.revForm.imgid.id; 
alter(str);
document.revForm.rcontent.value += "{" + str + "}";
}
</script>
<html:form method="post" name="revForm" action="rev_add.do">
<table width='100%' border='0' align='center' cellpadding='1'
cellspacing='1' class='unnamed1'>
<tr>
<td align='right'>
默u-29788 表u24773 :
</td>
<td>
<c:forEach begin="1" step="1" end="23" var="i">
<c:if test="${i < 10}">
<img src="img/face20${i }.gif" onclick="getImg(document.revForm.face20${i }.id)" id="face20${i }"/>
</c:if>
<c:if test="${i == 13}"><br></c:if>
<c:if test="${i >= 10}">
<img src="img/face2${i }.gif" onclick="getImg(face2${i })" id="face2${i }"/>
</c:if>
</c:forEach>
</td>
</tr>
<tr>
<td align='right' valign='top'>
内u23481 :
</td>
<td>
<html:textarea property="rcontent" cols="80" rows="6"
styleClass="input1"></html:textarea>
<font color="red"><html:errors property="rcontent" />
</font>
<br>
&nbsp;&nbsp;
<html:submit value=" 提交 " styleClass="btn" />
&nbsp;
<br>
</td>
</tr>
</table>
</html:form>