<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="action.asp"-->
<% SetCookies "Correct", "" %>
<html>
<head>
<title>大家来找茬</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<link href="style.css" rel="stylesheet" type="text/css">
<script language="JScript">
var iBugsID  = <%=iCurr%>;
var iBugsTime = 100;
var iBugsCount = <%=iBugsCount%>;
var iBugsRemain = iBugsCount;
var sHTML = '<table align="center" width="400" border="0" cellspacing="1" cellpadding="2" style="background-color:#DCBAC6;font-size:9pt">'
          + '  <tr style="background-color:#ffffff"> '
          + '    <td> <font face="webdings" style="font-size:8pt">8</font><b>大家来找茬</b></td>'
          + '  </tr>'
          + '  <tr style="background-color:#ffffff"> '
          + '    <td>[OUTPUT]</td>'
          + '  </tr>'
          + '  <tr style="background-color:#ffffff"> '
          + '    <td height="5"></td>'
          + '  </tr>'
          + '</table>' ;

function changeTime(){
    iBugsTime--;
    document.all.bugsTime.innerText=iBugsTime;
    if(iBugsTime>0){
        setTimeout("changeTime()",1000)
    }else{
        submitFrame.location.href="";
        var sRepl='很遗憾，你失败了，再试一次？ <a href="showImg.asp">是</a> / <a href="../default.asp" target="_top">否</a>';
        document.write(sHTML.replace("[OUTPUT]",sRepl))
    }
}

function startDebug(){
    with(document.all){
        bugsID.innerText=iBugsID;
        bugsCount.innerText=iBugsRemain;
        changeTime();
	}
}

function clickOK(){
    iBugsRemain--;
    document.all.bugsCount.innerText=iBugsRemain;
    if(iBugsRemain==0){
        <% If CInt(iCurr)=CInt(iBugsTotal) Then %>
        var sRepl = '<p align="right"><a href="showImg.asp">再玩一次?</a></p>';
        <% Else %>
        var sRepl = '你已经顺利过了第 <%=iCurr%> 关，是否进入下一关？ '
                  + '<a href="showImg.asp">是</a> / <a href="../" target="_top">否</a>';
        <% End If %>
        strHTML = sHTML.replace("[OUTPUT]", sRepl);
        setTimeout("document.write(strHTML)", 1500);
    }
}

function askHelp(){
    event.srcElement.disabled=true;
    submitFrame.location.href="checkClick.asp?help";
}
</script>
</head>

<body bgcolor="#FFFFFF" text="#000000" leftmargin="0" topmargin="0" scroll="no" onLoad="startDebug()">
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="table02">
  <form target="submitFrame" action="checkClick.asp" method="post">
    <tr> 
      <td colspan="5" bgcolor="#FFFFFF"> <table border="0" cellspacing="0" cellpadding="0" align="center">
          <tr> 
            <td width="350"><input type="image" src="http://www.ccopus.com/game/debug/img/<%=iCurr%>.jpg" width="350" height="420" onFocus="this.blur();"></td>
            <td width="20"></td>
            <td width="350"><input type="image" src="http://www.ccopus.com/game/debug/img/<%=iCurr%>b.jpg" width="350" height="420" onFocus="this.blur();"></td>
          </tr>
        </table></td>
    </tr>
    <tr bgcolor="#FFFFFF" height="24"> 
      <td width="20%">&nbsp;当前题号：　<span class="bugsCount" id="bugsID"></span></td>
      <td width="20%">&nbsp;总题数：　<span class="bugsCount"><%=iBugsTotal%></span>&nbsp;题</td>
      <td width="20%"> &nbsp;剩余时间：　<span class="bugsCount" id="bugsTime"></span> 
        秒.</td>  
      <td width="20%">&nbsp;错误数：　<span class="bugsCount" id="bugsCount"></span></td>
      <td width="20%" align="center"> <input type="button" value="求助一次" onFocus="this.blur()" onClick="askHelp()"> 
      </td>
    </tr>
  </form>
</table>
<iframe name="submitFrame" id="submitFrame" width="0" height="0"></iframe>
</body>
</html>
