<%@ page language="C#" autoeventwireup="true" inherits="Exam_AddExamSet, App_Web_t61aasr1" stylesheettheme="Themes" theme="Themes" %>

<!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 id="Head1" runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
<link rel="stylesheet" href="../css/form-field-tooltip.css" media="screen" type="text/css">
	<script type="text/javascript" src="../js/rounded-corners.js"></script>
	<script type="text/javascript" src="../js/form-field-tooltip.js"></script>
    <script src="../js/calendar.js" type="text/javascript"></script>

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

    <script type="text/javascript" src="../Js/jquery.pngFix.pack.js"></script>

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

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

    <script type="text/javascript" src="../Js/Common.js"></script>
 <script src="../js/artDialog3/artDialog.min.js"></script>
      <script>          (function($) { var d = $.dialog.defaults; d.skin = ['chrome']; })(art);</script>



    <style>
        html
        {
            overflow-x: hidden;
        }
        .style5
        {
            width: 160px;
        }
    </style>
</head>
<body>

    <form id="form1" runat="server">
    <asp:HiddenField runat="server" ID="hidden"></asp:HiddenField>
   <table id="tableTitle" visible="false" runat="server" cellpadding="0" cellspacing="0" class="table_box">
        <tr>
            <td class="right_bg">
                <span class="right_title">
                    <img src="../Images/homen.gif" class="img_style" />
                    您的当前位置：课程考试设置</span>
            </td>
        </tr>
        </table>
        <table width="100%" cellpadding="5" cellspacing="0" bgcolor="white" class="table_box box">
            <tr valign="middle">
                <td align="center" valign="top">
                    <asp:ImageButton ID="ibrnStepOne" runat="server" ImageUrl="~/Images/btn01.gif" OnClick="ibrnStepOne_Click" />
                    <asp:Image ID="ibtnOne" runat="server" ImageUrl="~/Images/5.gif" />
                    <asp:ImageButton ID="ibtnStepTwo" runat="server" ImageUrl="~/Images/btn02.gif" OnClick="ibtnStepTwo_Click" />
                    <asp:Image ID="ibtnTwo" runat="server" ImageUrl="~/Images/5.gif" Visible="false" />
                    <asp:ImageButton ID="ibrnStepThree" runat="server" ImageUrl="~/Images/btn03.gif"
                        OnClick="ibrnStepOne0_Click" Visible="False" />
                    <asp:Image ID="ibtnThree" runat="server" ImageUrl="~/Images/5.gif" />
                    <asp:ImageButton ID="btnAdd" runat="server" OnClick="btnAdd_Click" ImageUrl="~/Images/btn04.gif" />
                </td>
                <td align="right">
                    <asp:Button ID="btnReturn" runat="server" OnClick="btnReturn_Click" Text="返 回" 
                        Visible="False" />
                </td>
            </tr>
        </table>
    <asp:Panel ID="PanelStepOne" runat="server" Height="100%" CssClass="table_box">
        <table width="100%" cellpadding="5" cellspacing="1" border="0" class="table_notitle">
            <tr>
                <td align="right" class="td01" style="width: 238px">
                    课程名称：
                </td>
                <td align="left" class="style5">
                    <asp:DropDownList ID="ddlSubject" runat="server" AppendDataBoundItems="True" 
                        AutoPostBack="True" OnSelectedIndexChanged="ddlSubject_SelectedIndexChanged">
                        <asp:ListItem Value="0">请选择</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td align="left">
                    <asp:Label ID="lblBt" runat="server" Text="*" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right"  class="td01" style="width: 238px">
                    考试时间：
                </td>
                <td align="left" class="style5">
                    <asp:TextBox ID="txtTime" runat="server" Width="30" MaxLength="3" Text="120"  onClick="javascript:this.focus();this.select();"
                        onkeyup="isDigit1('txtTime')"></asp:TextBox>
                    <asp:Label ID="lblTime" runat="server" ForeColor="Red" Text="(分钟)"></asp:Label>
                    <asp:Image ID="Image2" runat="server" Height="16px" 
                        ImageUrl="../images/helpnew.gif" tooltipText="提示：默认考试时间为120分钟！如考试无时间限制，请填写0"
                        Width="16px" />
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="td01" style="width: 238px">
                    考试合格分数:
                </td>
                <td align="left" class="style5">
                    <asp:TextBox ID="txtPassMark" runat="server" MaxLength="3" onClick="javascript:this.focus();this.select();" 
                        onkeyup="isDigit1('txtPassMark')" Width="30">60</asp:TextBox>
                    <asp:Label ID="lblReT" runat="server" ForeColor="Red" Text="(分)"></asp:Label>
                     <asp:Image ID="Image1" runat="server" Height="16px" 
                        ImageUrl="../images/helpnew.gif" tooltipText="提示：系统中考试均折算为百分制，合格分数范围1~100。"
                        Width="16px" />
                    
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="td01" style="width: 238px">
                    分数设置方式:
                </td>
                <td align="left" class="style5">
                    <asp:DropDownList ID="ddlSetMarkType" runat="server" Width="100px" AutoPostBack="True" 
                        OnSelectedIndexChanged="ddlSetMarkType_SelectedIndexChanged">
                        <asp:ListItem Value="1">统一设置分数</asp:ListItem>
                        <asp:ListItem Value="2">单独设置分数</asp:ListItem>
                    </asp:DropDownList>
                    <asp:Image ID="Image3" runat="server" Height="16px" 
                        ImageUrl="../images/helpnew.gif" tooltipText="提示：统一设置分数指系统自动平均为各题目采用相同分数！单独设置分数指不同题型设置不同的分数！"
                        Width="16px" />
                    <asp:DropDownList ID="ddlGetType" runat="server" Enabled="false"  tooltipText="提示：随机生成学员每次考试将采用不同的试题！统一试题该考试所有学员采用相同的试题！"
                        Visible="False" Width="80px">
                        <asp:ListItem Value="1">随机生成</asp:ListItem>
                        <asp:ListItem Value="2">统一试题</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="td01" style="width: 238px">
                    是否可以重考：
                </td>
                <td align="left" class="style5">
                    <asp:DropDownList ID="ddlType" runat="server" Width="60px">
                        <asp:ListItem Value="1">允许</asp:ListItem>
                        <asp:ListItem Value="2">不允许</asp:ListItem>
                    </asp:DropDownList>
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right" class="td01" style="width: 238px">
                    <asp:Label ID="lblReExam" runat="server" Text="重考次数："></asp:Label>
                </td>
                <td align="left" class="style5">
                    <asp:TextBox ID="txtReExam" runat="server" Width="30" MaxLength="3" onkeyup="isDigit1('txtReExam')"
                    
                        onClick="javascript:this.focus();this.select();">0</asp:TextBox>
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
           <tr>
                <td align="right"  class="td01" style="width: 238px">
                    考试结束是否显示错题：
                </td>
                <td align="left" class="style5">
                    是<asp:RadioButton ID="rbtnYes" runat="server" GroupName="team"  />
                    否<asp:RadioButton ID="rbtnNo" runat="server" GroupName="team" Checked="True" />
                    <asp:Image ID="Image4" runat="server" Height="16px" 
                        ImageUrl="../images/helpnew.gif" 
                        tooltipText="提示：学员在考试结束后是否可以查看做错的题目！"  Width="16px" />
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right"  class="td01" style="width: 238px">
                    是否允许练习：
                </td>
                <td align="left" class="style5">
                    是<asp:RadioButton ID="rbtnY" runat="server" GroupName="exam"  />
                    否<asp:RadioButton ID="rbtnN" runat="server" GroupName="exam" Checked="True" />
                    <asp:Image ID="Image5" runat="server" Height="16px" 
                        ImageUrl="../images/helpnew.gif" tooltipText="提示：学员在学习过程中是否可以做练习题目！"  
                        Width="16px" />
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="right"  class="td01" style="width: 238px">
                 <%--   选修课考试时限：--%>
                </td>
                <td align="left" class="style5">
                    <asp:TextBox ID="txtDate" runat="server" MaxLength="4" onClick="javascript:this.focus();this.select();"
                        onkeyup="isDigit1('txtDate')" Width="40px" Visible="false"  >0</asp:TextBox>
                    <asp:Label ID="lblDay" runat="server" ForeColor="Red" Text="(天)" Visible="false"></asp:Label>
                     <asp:Image ID="Image6" runat="server" Height="16px"  Visible="false"
                        ImageUrl="../images/helpnew.gif" tooltipText="提示：此项可以设置学员选修此课程多少时间才能参加考试！0表示无时间限制。"  
                        Width="16px" />
                    <asp:Button ID="btnSaveBase" runat="server" SkinID="big_btn" Text="保存考试基本信息" 
                        onclick="btn_Click" Visible="False" />
                </td>
                <td align="left">
                    &nbsp;</td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="PanelStepTwo" runat="server" Visible="false" CssClass="table_box" Height="100%">
        <%--<table width="100%" border="0" cellpadding="5" cellspacing="1" class="table_notitle">
            <tr>
                <td align="center" height="22" colspan="5" class="td02">
                    题库中题量信息
                </td>
            </tr>
            <tr>
                <td align="center"  class="td01">
                    题型
                </td>
                <td align="center"  class="td01">
                    容易题数量
                </td>
                <td align="center"  class="td01">
                    中等题数量
                </td>
                <td align="center"  class="td01">
                    困难题数量
                </td>
                <td align="center"  class="td01">
                    合计
                </td>
            </tr>
            <tr>
                <td align="center"  class="td01">
                    单选题：
                </td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center"  class="td01">
                    多选题：
                </td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center"  class="td01">
                    判断题：
                </td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center" >
                    &nbsp;</td>
                <td align="center" >
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" class="td01">
                    问答题：</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center" class="td01">
                    填空题：</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
                <td align="center">
                    &nbsp;</td>
            </tr>
            <tr>
                <td align="center"  class="td01">
                    总计：
                </td>
                <td align="center" >
                    &nbsp;
                </td>
                <td align="center" >
                    &nbsp;
                </td>
                <td align="center" >
                    &nbsp;
                </td>
                <td align="center" >
                    &nbsp;</td>
            </tr>
        </table>--%>
        <table width="100%" cellpadding="1" cellspacing="1" class="table_notitle">
            <tr>
                <td align="center" height="22" colspan="8" class="td02">
                    考试题量设置</tr>
            <tr>
                <td align="right" class="td01">
                    单选数量：
                <td >
                    <asp:TextBox ID="txtRadioButtons" runat="server" Width="30" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" Height="17px" 
                         SkinID="myline">0</asp:TextBox>
                    /<asp:Label ID="lbl4" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    其中—&gt; 容易：
                </td>
                <td >
                    <asp:TextBox ID="txtRadioEasy"  runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtRadioEasy',1,1)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl1" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    中等：
                </td>
                <td >
                    <asp:TextBox ID="txtRadioCommonly" runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtRadioCommonly',1,2)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl2" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    困难：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtRadioHard" runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtRadioHard',1,3)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl3" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" class="td01">
                    多选数量：
                </td>
                <td >
                    <asp:TextBox ID="txtCheckBoxs" runat="server" MaxLength="3" Width="30" 
                        onClick="javascript:this.focus();this.select();" SkinID="myline" >0</asp:TextBox>
                    /<asp:Label ID="lbl8" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    其中—&gt; 容易：
                </td>
                <td >
                    <asp:TextBox ID="txtCheckEasy" runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtCheckEasy',2,1)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl5" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    中等：
                </td>
                <td >
                    <asp:TextBox ID="txtCheckCommonly" runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtCheckCommonly',2,2)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl6" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    困难：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCheckHard" runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtCheckHard',2,3)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl7" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" class="td01">
                    判断数量：
                </td>
                <td >
                    <asp:TextBox ID="txtOpinions" runat="server" MaxLength="3" Width="30" 
                        onClick="javascript:this.focus();this.select();" SkinID="myline" >0</asp:TextBox>
                    /<asp:Label ID="lbl12" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    其中—&gt; 容易：
                </td>
                <td >
                    <asp:TextBox ID="txtOpinionsEasy" runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtOpinionsEasy',3,1)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl9" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    中等：
                </td>
                <td >
                    <asp:TextBox ID="txtOpinionsCommonly" runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtOpinionsCommonly',3,2)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl10" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    困难：
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOpinionsHard" runat="server" MaxLength="3" Width="30" onkeyup="keydown('txtOpinionsHard',3,3)"
                        onClick="javascript:this.focus();this.select();" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl11" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" class="td01">
                    问答数量：</td>
                <td>
                    <asp:TextBox ID="txtAnswer" runat="server" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" 
                         Width="30" SkinID="myline" Height="19px" >0</asp:TextBox>
                    /<asp:Label ID="lbl17" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    其中—&gt; 容易：</td>
                <td>
                    <asp:TextBox ID="txtAnswerEasy" runat="server" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" 
                        onkeyup="keydown('txtAnswerEasy',4,1)" Width="30" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl14" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    中等：</td>
                <td>
                    <asp:TextBox ID="txtAnswerCommonly" runat="server" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" 
                        onkeyup="keydown('txtAnswerCommonly',4,2)" Width="30" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl15" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    困难：</td>
                <td align="left">
                    <asp:TextBox ID="txtAnswerHard" runat="server" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" 
                        onkeyup="keydown('txtAnswerHard',4,3)" Width="30" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lbl16" runat="server" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="right" class="td01">
                    填空数量：</td>
                <td>
                    <asp:TextBox ID="txtCloze" runat="server" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" 
                         Width="30" SkinID="myline" >0</asp:TextBox>
                    /<asp:Label ID="lblClozeSum" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    其中—&gt; 容易：</td>
                <td>
                    <asp:TextBox ID="txtClozeEasy" runat="server" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" 
                        onkeyup="keydown('txtClozeEasy',5,1)" Width="30" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lblClozeEasy" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    中等：</td>
                <td>
                    <asp:TextBox ID="txtClozeCommon" runat="server" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" 
                        onkeyup="keydown('txtClozeCommon',5,2)" Width="30" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lblClozeCommon" runat="server" ForeColor="Red"></asp:Label>
                </td>
                <td align="right" class="td01">
                    困难：</td>
                <td align="left">
                    <asp:TextBox ID="txtClozeHard" runat="server" MaxLength="3" 
                        onClick="javascript:this.focus();this.select();" 
                        onkeyup="keydown('txtClozeHard',5,3)" Width="30" SkinID="mytext">0</asp:TextBox>
                    /<asp:Label ID="lblClozeHard" runat="server" ForeColor="Red"></asp:Label>
                    <asp:Label ID="lbl13" runat="server" ForeColor="Red" Visible="False"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center" class="td01" colspan="8">
                    <asp:Button ID="btnSaveQuestion" runat="server" SkinID="big_btn" Text="保存试题设置" 
                        onclick="btn_Click" Visible="False" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="PanelStepThree" runat="server" Visible="false" CssClass="table_box" Height="100%">
        <table width="100%" cellpadding="1" cellspacing="1" class="table_notitle">
            <tr>
                <td align="left" colspan="4" style="height:20px; padding:0px; margin:0px; padding-top:15px;">
                <div class="title_bigfont" style="float:left; width:80px;">分数设置</div>
                <div class="warning" style="width: 300px;">
                    <font>各题分数和必须为100分！</font>
                </div>
            </td>
            </tr>
            <tr>
                <td align="right" class="td01" width="80">
                    单选题数:
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNum1" runat="server" Width="150px" Enabled="False"></asp:TextBox>
                </td>
                <td align="right" class="td01" >
                    每道单选分数:
                </td>
                <td>
                    <asp:TextBox ID="txtRadio" runat="server" Width="150px" onClick="javascript:this.focus();this.select();"
                        onkeyup="isDigit1('txtRadio')">0</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="td01" width="80">
                    多选题数:
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNum2" runat="server" Width="150px" Enabled="False"></asp:TextBox>
                </td>
                <td align="right" class="td01">
                    每道多选分数:
                </td>
                <td align="left">
                    <asp:TextBox ID="txtCheck" runat="server" Width="150px" onClick="javascript:this.focus();this.select();"
                        onkeyup="isDigit1('txtCheck')">0</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="td01" width="80">
                    判断题数:
                </td>
                <td align="left">
                    <asp:TextBox ID="txtNum3" runat="server" Width="150px" Enabled="False"></asp:TextBox>
                </td>
                <td align="right" class="td01">
                    每道判断分数:
                </td>
                <td align="left">
                    <asp:TextBox ID="txtOptions" runat="server" Width="150px" onClick="javascript:this.focus();this.select();"
                        onkeyup="isDigit1('txtOptions')">0</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="td01" width="80">
                    问答题数：</td>
                <td align="left">
                    <asp:TextBox ID="txtNum4" runat="server" Enabled="False" Width="150px"></asp:TextBox>
                </td>
                <td align="right" class="td01">
                    每道问答分数：</td>
                <td align="left">
                    <asp:TextBox ID="txtAnswers" runat="server" 
                        onClick="javascript:this.focus();this.select();" 
                        onkeyup="isDigit1('txtAnswers')" Width="150px">0</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="right" class="td01" width="80">
                    填空题数：</td>
                <td align="left">
                    <asp:TextBox ID="txtNum5" runat="server" Enabled="False" Width="150px"></asp:TextBox>
                </td>
                <td align="right" class="td01">
                    每道填空分数：</td>
                <td align="left">
                    <asp:TextBox ID="txtClozes" runat="server" 
                        onClick="javascript:this.focus();this.select();" 
                        onkeyup="isDigit1('txtClozes')" Width="150px">0</asp:TextBox>
                </td>
            </tr>
            <tr>
                <td align="center" class="td01" colspan="4">
                    <asp:Button ID="btnSaveMark" runat="server" SkinID="big_btn" Text="保存分数设置" 
                        onclick="btn_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
    <asp:Panel ID="PanelStepFour" runat="server" Visible="false" CssClass="table_box" Height="100%">
    </asp:Panel>
    </form>

</body>

<script type="text/javascript">
    function isNull() {
        if (document.getElementById("ddlSubject").value == 0) {
            //alert('请选择课程！');
            art.dialog({ content: '请选择课程！', lock: true, icon: 'alert', width: '200px' }, function() { return true; });
            return false;
        } else {
            return true;
        }
    }
    function mylosefocus() {
        var txt = document.getElementById("txtOpinions").value;
        var num = document.getElementById("lbl12").value;
        if (num < txt) {
            //alert("判断题数量不足");
            art.dialog({ content: '判断题数量不足！', lock: true, icon: 'alert', width: '200px' }, function() { return true; });
            return false;
        }
        else {
            return true;
        }
    }
    function CheckAll() {
        var cked = false;
        cked = document.getElementById("chkSelAll").checked;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
            var e = document.getElementsByTagName("*")[i];
            try {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                    e.checked = cked;
                }
            }
            catch (exception) {
            }
        }
    }
    function CheckSelect() {
        var count = 0;
        for (var i = 0; i < document.getElementsByTagName("*").length; i++) {
            var e = document.getElementsByTagName("*")[i];
            try {
                if (e.name.substring(e.name.length - 6, e.name.length) == "chkSel") {
                    if (e.checked == true) {
                        count++;
                    }
                }
            }
            catch (exception) {
            }
        }
        if (count == 0) {
            //alert("请选择您要删除的项！");
            art.dialog({ content: '请选择您要删除的项！', lock: true, icon: 'alert', width: '200px' }, function() { return true; });
            return false;
        }
        else {
            return confirm('您确定要删除所选项吗?');
        }
    }
    var id;
    function keydown(ID, type, difficulty) {

        var pars = '';
        id = ID;
        var num = document.getElementById(ID).value;
        if (!isDigit(num)) {
            //alert('请输入数字！');
            art.dialog({ content: '请输入数字！', lock: true, icon: 'alert', width: '200px' }, function() { return true; });
            document.getElementById(id).value = 0;
            return;
        }

        

        // hidden       var CourseID = document.getElementById("ddlSubject").value;
        var CourseID = document.getElementById("hidden").value;
        var Type = type;
        pars += 'Num=' + num;
        pars += '&CourseID=' + CourseID;
        pars += '&Type=' + Type;
        pars += '&Difficult=' + difficulty;

       //alert(pars);
        sendAJAX("QuestionNumCheck.aspx", pars, "get", onComplete, true, false);
    }
    function onComplete(result) {
        if (result < 0) {//<0为题库数量不足
            //alert('该类型题题库中不足，请重新设计');
            art.dialog({ content: '该类型题题库中不足，请重新设计', lock: true, icon: 'alert', width: '200px' }, function() { return true; });
            document.getElementById(id).value = 0;

        }
        //2011-3-20 杨丹增加各类试题总数自动求和的功能，如单选=单选容易+单选中等+单选困难
        document.getElementById("txtRadioButtons").value = parseInt(document.getElementById("txtRadioEasy").value) + parseInt(document.getElementById("txtRadioCommonly").value) + parseInt(document.getElementById("txtRadioHard").value);
        document.getElementById("txtCheckBoxs").value = parseInt(document.getElementById("txtCheckEasy").value) + parseInt(document.getElementById("txtCheckCommonly").value) + parseInt(document.getElementById("txtCheckHard").value);
        document.getElementById("txtOpinions").value = parseInt(document.getElementById("txtOpinionsEasy").value) + parseInt(document.getElementById("txtOpinionsCommonly").value) + parseInt(document.getElementById("txtOpinionsHard").value);
        document.getElementById("txtAnswer").value = parseInt(document.getElementById("txtAnswerEasy").value) + parseInt(document.getElementById("txtAnswerCommonly").value) + parseInt(document.getElementById("txtAnswerHard").value);
        document.getElementById("txtCloze").value = parseInt(document.getElementById("txtClozeEasy").value) + parseInt(document.getElementById("txtClozeCommon").value) + parseInt(document.getElementById("txtClozeHard").value);
    }
    function isDigit(s) {
        var patrn = /^[0-9]{1,20}$/;
        if (!patrn.exec(s)) return false
        return true
    }

    function isDigit1(s) {

        var v = document.getElementById(s).value;
        //alert(v);
        var patrn = /^[0-9]{1,20}$/;
        if (!patrn.exec(v)) {
            //alert('请输入数字。');
            art.dialog({ content: '请输入数字!', lock: true, icon: 'alert', width: '200px' }, function() { return true; });
            document.getElementById(s).value = 0;
            return;

        }
        return true
    }
</script>

    <script type="text/javascript">
	
　　           var tooltipObj = new DHTMLgoodies_formTooltip();
           tooltipObj.setTooltipWidth('240');
           tooltipObj.setTooltipPosition('right');
           tooltipObj.setPageBgColor('#EEE');
           tooltipObj.setCloseMessage('');
           tooltipObj.initFormFieldTooltip();

　　</script>
</html>
