<%@ page language="C#" autoeventwireup="true" inherits="Exam_User_Exam_ajax, App_Web_hb0wicqn" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>考试</title>
     <%-- <link href="../css/main.css" rel="stylesheet" type="text/css" />--%>
    <link href="../css/control.css" rel="stylesheet" type="text/css"  />
    <link href="../css/StyleSheet.css" rel="stylesheet" type="text/css" />
    
   <%-- <link href="../css/pager.css" rel="stylesheet" type="text/css" />--%>

    <script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>

    <script src="../jquery-1.5.js" type="text/javascript"></script>


    <script  src="../js/ajaxdroplist.js" type="text/javascript"></script>

    <link href="../alert/jquery.alert.css" rel="stylesheet" type="text/css" />

    <script src="../alert/jquery.easydrag.js" type="text/javascript"></script>

    <script src="../alert/jquery.alert.js" type="text/javascript"></script>
 
</head>
<body marginheight="0" marginwidth="0" onload="if(parent.cen!=null){parent.cen.cols='0,*';parent.centop.rows='0,*,0'};"
    scroll="auto" style="float: left; width: 960px; margin: 0px auto; background: url(../images/bg_body.png) repeat-x;
    background-attachment: fixed;">
   
      <asp:Label ID="Label1"   runat="server" Text=""></asp:Label>
  
       
           <script language="JavaScript" type="text/javascript">   
        var maxtime =<%=minute %>*60-3 //一个小时，按秒计算  
        function CountDown()
        {   
            if(maxtime>=0)
            {   
                minutes = Math.floor(maxtime/60);   
                seconds = Math.floor(maxtime%60);   
                document.all["timer"].innerHTML="计时："+minutes+"分"+seconds+"秒"; 
                if(maxtime == 5*60) alert('注意，距离考试结束还有5分钟！请及时答题，做好交卷准备。');   
                --maxtime;   
            }   
            else
            {   
                clearInterval(timer);   
                alert("考试时间到，强制交卷！");
                submitExam();//交卷
                //window.opener= null;window.open("", "_self");window.close();
            }   
        }   
        setInterval("CountDown()",1000);   
        </script>



<asp:Label ID="l2" runat="server" ></asp:Label>
</body>
</html>
