<form id="form" name="form" action="xuantido.asp" method="post">
  <table border="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <tr>
      <td width="100%" height="25">单项选题数:<input type="text" name="lefttime" size="20" class="inputborder" readonly></td>
    </tr>
    <tr>
      <td width="100%" height="25"><b><font size="3" color="#000080">一、单项选择题</font></b></td>
    </tr>
  </table>
   <%
sql="select * from tiku where xuan=0 and xiangmuid=1 and leixingid=1"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,3,2
singlecount=rs.recordcount
for i=1 to singlecount
%>
  <table border="0" cellspacing="1" style="border-collapse: collapse" bordercolor="#C0C0C0" width="100%" id="AutoNumber2" cellpadding="0">
    <tr>
      <td width="100%" bgcolor="#EFEFEF" height="20">&nbsp;&nbsp;<input type="checkbox" name="NO<%=rs("id")%>" value="1" onclick="javascript:submitit();"><b><%=i%>、<%=rs("tigan")%></b></td>
    </tr>
    <%
  if rs("text1")<>"" then
  %>
    <tr>
      <td width="100%">&nbsp;&nbsp;&nbsp;&nbsp;A、<%=rs("text1")%></td>
    </tr>
    <%
  end if
  %> <%
  if rs("text2")<>"" then
  %>
    <tr>
      <td width="100%">&nbsp;&nbsp;&nbsp;&nbsp;B、<%=rs("text2")%></td>
    </tr>
    <%
  end if
  %> <%
  if rs("text3")<>"" then
  %>
    <tr>
      <td width="100%">&nbsp;&nbsp;&nbsp;&nbsp;C、<%=rs("text3")%></td>
    </tr>
    <%
  end if
  %> <%
  if rs("text4")<>"" then
  %>
    <tr>
      <td width="100%">&nbsp;&nbsp;&nbsp;&nbsp;D、<%=rs("text4")%></td>
    </tr>
    <%
  end if
  %> <%
  if rs("text5")<>"" then
  %>
    <tr>
      <td width="100%">&nbsp;&nbsp;&nbsp;&nbsp;E、<%=rs("text5")%></td>
    </tr>
    <%
  end if
  %> <%
  if rs("text6")<>"" then
  %>
    <tr>
      <td width="100%">&nbsp;&nbsp;&nbsp;&nbsp;F、<%=rs("text6")%></td>
    </tr>
    <%
  end if
  %>
  </table>
  <%
rs.movenext
next
rs.close
set rs=nothing
%>
<script language="javascript">
var jishu=0;
function submitit()
{
if (document.all.[color=#0000FF]this
.checked==false) 
{
jishu--;
}
else
{
jishu++;
}
document.all.lefttime.value=jishu;

</script>[/color]
以上代码主要是想实现选中每道选择题前的复选框有一个计数,好知道当前已经选取了多少题,当提交前去掉这道题时计数接着减少,但是document.all.this.checked==false 中的这个this变量如何确定始终无法解决。请各位指点。