<script language="Javascript">
function prev(preva,prevb,prevc){
// document.getElementById("status").value="prev";
if (prevc==1)
{
document.getElementById("answer").action="examwap_anli.asp?id="+preva+"&i4="+prevb;
//alert(document.getElementById("answer").action);
}
else
{
document.getElementById("answer").action="examwap_pd.asp?id="+preva+"&i3="+prevb;
alert("现在进入判断题最后一题!");}
funtj();
document.answer.submit();
}
function next(nexta,nextb,nextc){
// document.getElementById("status").value="next";
if (nextc==1)
{
document.getElementById("answer").action="examwap_anli.asp?id="+nexta+"&i4="+nextb;
//alert(document.getElementById("answer").action);
}
else
{
document.getElementById("answer").action="examwap_dx.asp?id="+nexta+"&i1="+nextb;
alert("现在进入单选题第一题!");}
funtj();
document.answer.submit();
}
</script>
<script language="javascript">
function funtj(){
<!--jc第一题s-->
iSumA="(1)<br/>"
<%
anwsa=jc_anli.Fields.Item("anwsa").Value
if anwsa>0 and anwsa<>0 then %>
<% for i=1 to anwsa%>
jsxxao<%=i%>=window.self.document.answer.num1<%=i%>A.options(window.self.document.answer.num1<%=i%>A.selectedIndex).value+":"+window.self.document.answer.num1<%=i%>B.options(window.self.document.answer.num1<%=i%>B.selectedIndex).value+":"+window.self.document.all.num1<%=i%>C.value+"<br/>"
iSumA=iSumA+jsxxao<%=i%>;
<%next %>
<%else%>
<% for i=1 to abs(anwsa)%>
jsxxao<%=i%>=window.self.document.all.num1<%=i%>.value+"<br/>"
iSumA=iSumA+jsxxao<%=i%>;
<%next%>
<%end if%>
<!--jc第一题e-->
<!--fg第一题s-->
<%if anwsa=0 then %>
var rusult="";
var check_array=document.getElementsByName("anwsa");
for(var i=0;i<check_array.length;i++)
{
if(check_array[i].checked==true)
{
rusult=rusult+check_array[i].value;
}
}
iSumA="(1)"+rusult+"<br/>";
<%end if%>
<!--fg第一题e-->
</script>
![图片说明](https://img-ask.csdn.net/upload/201605/27/1464336893_850252.png)