   /*
       *初始化XMLHTTP
       */
        function getXMLHTTP(){
            var xmlhttp=false;
            try{
                xmlhttp=new XMLHttpRequest();
            }catch(e){
                try{
                    xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
                }catch(e){
                    alert("你的浏览器不支持Ajax");
                }
            }
            return xmlhttp;
        }
        /*收集数据并发送XMLHTTP请求*/
        function xmlsend(){
            var xmlhttp=getXMLHTTP();
            var input_str=document.getElementById("DropDownList2").value;
            if(input_str.length>0){
            var count=10;
            xmlhttp.open("Get","../Ashx/Handler.ashx?input_str="+input_str+"&count=50",true);
            
           
            // document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){
           
            
            if(xmlhttp.readyState==4){
          
           
                  if(xmlhttp.status==200){
                    //  document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){
                    
                     
                  //var json = xmlhttp.responseText.evalJSON(); 
                      var json=JSON.parse(xmlhttp.responseText);      
                   
                      //   var html="<table>"; 
                    //     var ss="";                   
                    //alert(json.student.length)
                   var ddl=  document.getElementById ("ListBox2");
                   
                   ddl.options.length=0
                        for(var i = 0;i<json.student.length;i++)
                    {                   
                        var o = new Option();
                    o.innerText =json.student[i].tea0;
                    o.value =json.student[i].tea1;
                      if (o.innerText!='null')
                     {
                     ddl.appendChild(o);
                      }
                    }
                     
//                        var color = "#f5f5f5";
//                        if(i%2 == 0)
//                            color="#fff"                        
//                        html +="<tr style=\"background-color:" + color + ";\"><td>" + json.student[i].StuId + "</td><td>" + json.student[i].StuItemNo + "</td><td>" + json.student[i].StuPwd + "</td><td>" + json.student[i].StuNo + "</td><td><img src='Image/"+json.student[i].StuFirstName+"' width=\"50px\" height=\"60px\" /></td><td>" + json.student[i].StuName + "</td><td>" + json.student[i].StuSex + "</td><td> <a href=\"#\" onclick=\"dele("+json.student[i].StuNative+")\">删</a> <a href=\"#\" onclick=\"upda("+json.student[i].StuBirthDate+")\">改</a> <a href=\"#\" onclick=\"sele("+json.student[i].StuProperties+")\">查</a> </td></tr>";
                          //  ss+=json.student[i].AAA1;
                  //  }
                    
                   // alert(ss);
                        // html += "</table>";   
                       // var xmldoc=xmlhttp.responseXML.documentElement;   
                     //var jj=xmldoc.getElementById("TextBox1");
                     
                       //var selectnode=xmldoc.getElementById('TextBox1'); 
                      // var  objNodeList ＝ xmldoc.getElementsByTagName('*');
                    //  alert(jj);           　　 
                     //var t=xmldoc.getElementByName('TextBox1');
                     
                    //  var k= xmldoc.getElementsBYID('TextBox1');
                   //  alert(xmlhttp.responseText);  
                      
                   // document.getElementById ("Text3").value =xmlhttp.responseText;
                              }
               }
            }
         }
         xmlhttp.send(null);
         }else{
           // document.getElementById("Select1").innerHTML="";
           // document.getElementById("Select1").style.display="none";
         }
        }
        
        
  //------------------------------------------------------------------
   function xmlsend2(k){
    
            var xmlhttp=getXMLHTTP();
            var input_str=document.getElementById("t_"+k).value;
               var text=  document.getElementById("v_"+k);
        //   alert(input_str)
            if(input_str.length>0){
            var count=10;
            xmlhttp.open("Get","../Ashx/Handler2.ashx?input_str="+encodeURI(input_str)+"&count=1",true);
            
         //  alert(i+"_"+j+"_"+k);
            // document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){
           
            
            if(xmlhttp.readyState==4){
          
           
                  if(xmlhttp.status==200){
                    //  document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){
                    
                   
                 // var json = xmlhttp.responseText.evalJSON(); 
                    //  var json = JSON.parse(xmlhttp.responseText); 
                    var json=JSON.parse(xmlhttp.responseText); 
                    
                   //   alert(xmlhttp.responseText)
                   
                      //   var html="<table>"; 
                    //     var ss="";                   
                    //alert(json.student.length)
                     
                  
                 // showInfo.hideLayer(event,div_111);
                   var ddl=  document.getElementById ("ListBox2");
                 
                 
                    //--------------------------------------------------------------------
                 
                       if (json.student.length>0)
                   {
                   if (json.student.length==1)
               
                 {
                     if (input_str==json.student[0].tea0)
                     {
                 
                        text.value=json.student[0].tea1;
                       
                   }
                   }
               
                   //-------------------------------------------------------------------
             

                     //ddl.options.length=0
                
                        for(var i = 0;i<json.student.length;i++)
                    {                   
                        var o = new Option();
                    o.innerText =json.student[i].tea0;
                    o.value =json.student[i].tea1;
                      if (o.innerText!='null')
                     {
                     ddl.appendChild(o);
                      }
                    }
                 
                    //--------------------------------------------------------------
                                   
                   
                      
                    } 
                    else
                    {
            
                   text.value="";
            
                   
                    }              
                   
                 }
               }
            }
         }
         xmlhttp.send(null);
         }else{
          //alert('为空')
          
          // var text=  document.getElementById ("v_"+i+"_"+j+"_"+k);
          text.value="";
            //ffclose();
         }
}

//-----------------------------------------------------------------

   function Get_Data(){
            var xmlhttp=getXMLHTTP();
            var input_str=document.getElementById("banji").value;
            var ter=document.getElementById("xueqi").value;
            var xueqi_name=document.all("xueqi").options[document.all("xueqi").selectedIndex].text;
            var banji_name=document.all("banji").options[document.all("banji").selectedIndex].text;   
            if(input_str.length>0){
            var count=10;
            xmlhttp.open("Get","../Ashx/Handler_data.ashx?input_str="+input_str+"&count="+ter,true);
             document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                      document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){          
                     var tl=document.getElementById("title");
                      tl.innerHTML=xueqi_name+"xxxx学校"+banji_name+"任课表设置"; 
                       tl.style.display="block";        
                        var bottom=document.getElementById("bt5");
                        bottom.style.display="block";                            
                    // alert(xmlhttp.responseText);               
               var ct=document.getElementById("kkk");       
                ct.innerHTML=xmlhttp.responseText;  
                              }
                              else
                              {
                                var tl=document.getElementById("title");
                      tl.innerHTML=xueqi_name+"xxxx学校"+banji_name+"任课表设置";   
                      tl.style.display="none";     
                        var bottom=document.getElementById("bt5");
                        bottom.style.display="none";                            
                               var ct=document.getElementById("kkk");       
                ct.innerHTML="<table class='table' width='100%'><tr><td>抱歉，请先设置学期科目计划，再添加任课信息!!</td></tr></table>";  
                              }
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
         }else{
         
         }
        }

//---------------------------------


function GET_data(recid){


            var xmlhttp=getXMLHTTP();
             
          
            var count=10;
            xmlhttp.open("Get","../Ashx/Get_data.ashx?recid="+recid,true);
            
          
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                   //   document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                              
                              
                        //  alert(xmlhttp.responseText) ;
                    var tl=document.getElementById("div_1");
                   
              tl.innerHTML=xmlhttp.responseText;  
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
   
         
         
}
//-----------------------------------------

function school_dell(recid){


            var xmlhttp=getXMLHTTP();
             
          
            var count=10;
            xmlhttp.open("Get","../Ashx/school_dell.ashx?recid="+recid,true);
            
          
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                   //   document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                              
                              
                       alert(xmlhttp.responseText) ;
                    //var tl=document.getElementById("div_1");
                   
              //tl.innerHTML=xmlhttp.responseText;  
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
   
         
         
}
//-----------------------------------
//加载个人权限
function get_quanxian(){

  document.getElementById("div_1").style.display="none";
            var xmlhttp=getXMLHTTP();
             
               var input_str=document.getElementById("Tea").value;
               if(input_str.length>0){
           
             // alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/quanxian.ashx?recid="+input_str,true);
            
          
             document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                      document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                              
                             
                //       alert(xmlhttp.responseText) ;
              if (input_str!="00")
              {
                var btn=document.getElementById("btn");
              btn.style.display="block";
                    var tl=document.getElementById("div_1");        
              tl.innerHTML=xmlhttp.responseText;  
             tl.style.display="block";
              }
              else 
              {
                var tl=document.getElementById("div_1");        
              tl.innerHTML=xmlhttp.responseText;  
            tl.style.display="block";
              var btn=document.getElementById("btn");
              btn.style.display="none";
              
              }
              
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
   }
 else
   {
   
   }
         
         
}

//--------------------------------------

//加载部门权限
function get_quanxian_Dep(){


  document.getElementById("div_1").style.display="none";
            var xmlhttp=getXMLHTTP();
             
               var input_str=document.getElementById("Dep").value;
               if(input_str.length>0){
           
             // alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/quanxian_Dep.ashx?recid="+input_str,true);
            
          
             document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                      document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                              
                             
                //       alert(xmlhttp.responseText) ;
              if (input_str!="00")
              {
                var btn=document.getElementById("btn");
              btn.style.display="block";
                    var tl=document.getElementById("div_1");        
              tl.innerHTML=xmlhttp.responseText;  
             tl.style.display="block";
              }
              else 
              {
                var tl=document.getElementById("div_1");        
              tl.innerHTML=xmlhttp.responseText;  
            tl.style.display="block";
              var btn=document.getElementById("btn");
              btn.style.display="none";
              
              }
              
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
   }
 else
   {
   
   }
         
         
}
//-----------------------------
//加载部门权限
function get_quanxian_Dep1(depid){

  document.getElementById("div_1").style.display="none";
            var xmlhttp=getXMLHTTP();
             
              // var input_str=document.getElementById("Dep").value;
          
            if (depid!=null)
            {
             // alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/quanxian_Dep.ashx?recid="+depid,true);
            
          
             document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                      document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                              
                             
                //       alert(xmlhttp.responseText) ;
            
                var btn=document.getElementById("btn");
              btn.style.display="block";
                    var tl=document.getElementById("div_1");        
              tl.innerHTML=xmlhttp.responseText;  
             tl.style.display="block";
           
              
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
 }
 else 
 {

 }
         
         
}
//------------------------------

//加载角色权限
function get_quanxian_role(roleid){

  document.getElementById("div_1").style.display="none";
            var xmlhttp=getXMLHTTP();
             
              // var input_str=document.getElementById("role").value;
              
              //alert(roleid);
              
           
             // alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/quanxian_role.ashx?recid="+roleid,true);
            
          
             document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                      document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                              
                             
                //       alert(xmlhttp.responseText) ;
//              if (input_str!="00")
//              {
//                var btn=document.getElementById("btn");
//              btn.style.display="block";
                    var tl=document.getElementById("div_1");        
              tl.innerHTML=xmlhttp.responseText;  
             tl.style.display="block";
//              }
//              else 
//              {
//                var tl=document.getElementById("div_1");        
//              tl.innerHTML=xmlhttp.responseText;  
//            tl.style.display="block";
//              var btn=document.getElementById("btn");
//              btn.style.display="none";
//              
//              }
              
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
  
         
         
}

//------------------------保存权限
function save_qx(){


            var xmlhttp=getXMLHTTP();
             
               var input_str=document.getElementById("Tea").value;
               if(input_str.length>0){
               alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/save_qx.ashx?recid="+input_str,true);
            
          
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                   //   document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                              
                              
                      alert(xmlhttp.responseText) ;
                    //var tl=document.getElementById("div_1");
                   
              //tl.innerHTML=xmlhttp.responseText;  
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
   }
 else
   {
   
   }
         
         
}

//----------------------------------------


//----------

 
 function load_man_nav(teaid){

            var xmlhttp=getXMLHTTP();
             
              // var input_str=document.getElementById("Tea").value;
            
             
             //  alert(input_str);
            
            var count=10;
            xmlhttp.open("Get","Ashx/load_man_nav.ashx?recid="+teaid,true);
            
          
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                   //   document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                           
                              
                      //alert(xmlhttp.responseText) ;
                      var  dd=document.getElementById ("nav");
                      dd.innerHTML=xmlhttp.responseText;
 
                      
                   // initinav('系统设置');
                    //var tl=document.getElementById("div_1");
                   
              //tl.innerHTML=xmlhttp.responseText;  
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
  
         
         
}

//---------------
 function Get_date(){
            var xmlhttp=getXMLHTTP();
               var input_str=document.getElementById("h_value").value;
            // alert(input_str)
             var type=document.getElementById("TidType").value;
         var chuti_type=document.getElementById("h_chuti").value;
       var tid=document.getElementById("modify").value;
            var count=10;
            xmlhttp.open("Get","../Ashx/OnLinetest_Getdate.ashx?id="+input_str+"&type="+type+"&chuti="+encodeURI(chuti_type)+"&tid="+tid,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                   //   document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                      var s=xmlhttp.responseText;
                     // alert(s)
                      var  easy_num=document.getElementById ("easy_num");
                       var  middle_num=document.getElementById ("middle_num");
                         var  high_num=document.getElementById ("high_num");
                            var  h_easy=document.getElementById ("h_easy");
                               var  h_middle=document.getElementById ("h_middle");
                                  var  h_high=document.getElementById ("h_high");
                      var strs= new Array(); //定义一数组
                      strs=s.split("|"); //字符分割    
                      easy_num.innerHTML=strs[0];
                         middle_num.innerHTML=strs[1];
                            high_num.innerHTML=strs[2];
                                    h_easy.value=strs[0];            
                                    h_middle.value=strs[1];    
                                    h_high.value=strs[2];
                   // initinav('系统设置');
                    //var tl=document.getElementById("div_1");
                   
              //tl.innerHTML=xmlhttp.responseText;  
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
  
         
         
}
//-------------------------------------------------------
function getArgs(strParame) {
         var args = new Object();
         var query = location.search.substring(1); // Get query string
         var pairs = query.split("&"); // Break at ampersand
         for (var i = 0; i < pairs.length; i++) {
             var pos = pairs[i].indexOf('='); // Look for "name=value"
             if (pos == -1) continue; // If not found, skip
             var argname = pairs[i].substring(0, pos); // Extract the name
             var value = pairs[i].substring(pos + 1); // Extract the value
             value = decodeURIComponent(value); // Decode it, if needed
             args[argname] = value; // Store as a property
         }
         return args[strParame]; // Return the object
     }



function submitExam(){


            var xmlhttp=getXMLHTTP();
             
          
            var count=10;
            xmlhttp.open("Get","../Ashx/submitExam.ashx?user="+ getArgs("user")+"&planid="+getArgs("planid")+"&pid="+getArgs("pid"),true);
            
          
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                   //   document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                                 
//                                alert(getArgs("point"));
//                                alert(getArgs("passpoint"));
//                                alert(getArgs("pid"));
//                                alert(getArgs("return"));
//                                alert(getArgs("examkey"));
                                
                       // alert(xmlhttp.responseText) ;
              if (xmlhttp.responseText=="1")
              {
              
              //alert('添加成功!!');
             // alert(getArgs("look"))
              if (getArgs("look")=="")
              {
      location.replace(location.href="tbl_answer_result.aspx?time="+getArgs("time")+ "&planid=" + getArgs("planid") + "&point=" + getArgs("point") + "&passpoint=" + getArgs("passpoint") + "&examkey=" + getArgs("examkey") + "&return=tbl_mytest.aspx&page=" + getArgs("page"));
     // event.returnValue=false;
              }
              else 
              {
                location.replace(location.href="tbl_mytest.aspx?page="+getArgs("page"));
              
              }
              
              }
              else
              {
              alert('考试提交失败!!!');
              
              }
              
                 //   var tl=document.getElementById("div_1");
                   
             // tl.innerHTML=xmlhttp.responseText;  
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
   
         
         
}


//---------------
function submitExam_Practice(){
            var xmlhttp=getXMLHTTP();
            var count=10;
            xmlhttp.open("Get","../Ashx/submitExam_Practice.ashx?user="+ getArgs("user")+"&planid="+getArgs("planid")+"&pid="+getArgs("pid"),true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                   //   document.getElementById ("message").style.display="none";
                       if(xmlhttp.responseText!=""){  
                       
                               
                                //alert(getArgs("point"));
                                //alert(getArgs("passpoint"));
                                //alert(getArgs("pid"));
                                //alert(getArgs("return"));
                               //alert(getArgs("examkey"));
                                
                        //alert(xmlhttp.responseText) ;
              if (xmlhttp.responseText=="1")
              {
              
             // alert('添加成功!!');
             // alert(getArgs("look"))
//              if (getArgs("look")=="")
//              {
      location.replace(location.href="tbl_Practice_result.aspx?time="+getArgs("time")+ "&planid=" + getArgs("planid") + "&point=" + getArgs("point") + "&passpoint=" + getArgs("passpoint") + "&examkey=" + getArgs("examkey") + "&return=tbl_myPractice.aspx&page=" + getArgs("page"));
     // event.returnValue=false;
//              }
//              else 
//              {
//                location.replace(location.href="tbl_mytest.aspx?page="+getArgs("page"));
//              
//              }
              
              }
              else
              {
              alert('考试提交失败!!!');
              
              }
              
                 //   var tl=document.getElementById("div_1");
                   
             // tl.innerHTML=xmlhttp.responseText;  
                              }
                          
                              
                              
                              
               }
            }
         }
         xmlhttp.send(null);
   
         
         
}
//----------------------------------------------------------------------------------
function sing_choose1(answer,topid,userid,pageid,exa_cishu,planid,top_defen){
            var xmlhttp=getXMLHTTP();
           // alert(answer+"_"+topid+"_"+userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/sing_choose.ashx?answer="+answer+"&topid="+topid+"&userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid+"&score="+top_defen,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                     // alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}
//------------------------------------------------------------
function mulit_choose1(answer,topid,userid,pageid,exa_cishu,planid,top_defen){
            var xmlhttp=getXMLHTTP();
            //alert(answer+"_"+topid+"_"+userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/mulit_choose1.ashx?answer="+answer+"&topid="+topid+"&userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid+"&score="+top_defen,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                  //   alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}
//------------------------------------------------------
function fill_answer1(answer,topid,userid,pageid,exa_cishu,planid,top_defen,f_count){
            var xmlhttp=getXMLHTTP();
            //alert(answer+"_"+topid+"_"+userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(f_count);
            var count=10;
            xmlhttp.open("Get","../Ashx/fill_answer1.ashx?answer="+answer+"&topid="+topid+"&userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid+"&score="+top_defen+"&fcount="+f_count,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                  //   alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}
//--------------------------
function jianda_answer1(answer,topid,userid,pageid,exa_cishu,planid,top_defen){
            var xmlhttp=getXMLHTTP();
           // alert(answer+"_"+topid+"_"+userid+"_"+pageid+"_"+exa_cishu+"--"+planid+"--"+top_defen)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            // alert(unescape(answer))
          
            var count=10;
            xmlhttp.open("Get","../Ashx/jianda_answer1.ashx?answer="+answer+"&topid="+topid+"&userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid+"&score="+top_defen,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                   //alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}
//------------------------------------------
//-------------------------------------------------------------------------------
function sing_choose(topid,pageid,userid,Ans_cishu,planid,top_defen)
{
var div=document.getElementById("AnswerDiv"+topid) ;
   var b_type=document.getElementById ("AnswerDiv"+topid).getElementsByTagName ("input");
   if (b_type!=null)
   {
       var choose="";
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].type=="radio")
        {
       if (b_type[i].checked==true)
       {
       
        choose=b_type[i].value
      //alert(b_type[i].value +topid+userid+plaid+escape(Ans_cishu));
           sing_choose1(choose,topid,userid,pageid,escape(Ans_cishu),planid,top_defen);
       
         break;
       
       }
       }
      }
  }
}
//----------------------------------------------------------------------
function mulit_choose(topid,pageid,userid,Ans_cishu,planid,top_defen)
{
var div=document.getElementById("AnswerDiv"+topid) ;
   var b_type=document.getElementById ("AnswerDiv"+topid).getElementsByTagName ("input");
   if (b_type!=null)
   {
       var choose="";
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].type=="checkbox")
        {
       if (b_type[i].checked==true)
       {
       
        choose+=b_type[i].value+",";
  
         //  sing_choose1(choose,topid,userid,pageid,escape(Ans_cishu),planid);
       }
       
       }
      }
    
      mulit_choose1(choose,topid,userid,pageid,escape(Ans_cishu),planid,top_defen);
         // alert(choose +topid+userid+pageid+escape(Ans_cishu)+planid);
  }
}
//-------------------------------------------------------------------------
function fill_answer(topid,pageid,userid,Ans_cishu,planid,top_defen,f_count)
{
var div=document.getElementById("AnswerDiv"+topid) ;
   var b_type=document.getElementById ("AnswerDiv"+topid).getElementsByTagName ("input");
   if (b_type!=null)
   {
       var fill="";
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].type=="text")
        {
      // if (b_type[i].value!="")
       //{
       
        fill+=b_type[i].value+"^";
  
      // }
       }
      }
     
         fill_answer1(escape(fill),topid,userid,pageid,escape(Ans_cishu),planid,top_defen,f_count);
        
  }
}
//-----------------------------------------------------------------------------
function jianda_answer(topid,pageid,userid,Ans_cishu,planid,top_defen)
{
var answer=document.getElementById("D_"+topid) ;
    var fill="";
  if (answer!=null)
  {
 // alert(answer.value+"-"+top_defen+"_"+Ans_cishu)
   jianda_answer1(escape(answer.value),topid,userid,pageid,escape(Ans_cishu),planid,top_defen);
  }
}
//------------------------

    function btnClick(typeid,typename)
    {
  // var ctrl=document.getElementById ("ctrl");
   //ctrl.value=typeid;
   
   var btt=document.getElementById  ("TypeListBottom").getElementsByTagName ("input");
   if (btt!=null)
   {
        for(var i = 0; i < btt.length; i++) 
        { 
        if (btt[i].id=="btnbottom"+typeid && btt[i].type=="button")
        {
        btt[i].className="button_r";
        
        }
        else 
        {
          btt[i].className="button_b";
        }
   
      }
  }
   var b_type=document.getElementById  ("TypeList").getElementsByTagName ("input");
   if (b_type!=null)
   {
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].id=="btn"+typeid && b_type[i].type=="button")
        {
        b_type[i].className="button_r";
        
        }
        else 
        {
          b_type[i].className="button_b";
        }
   
      }
  }
     var div=document.getElementById  ("ExamBody").getElementsByTagName ("div");
   if (div!=null)
   {
 
        for(var i = 0; i < div.length; i++) 
        { 
        
        if (div[i].id=="QType"+typeid && div[i].className=="QType" )
        {
        
        div[i].style.display="block";
        
        }
        else if( div[i].className=="QType")
        {
       
         div[i].style.display="none";
        }
   
      }
  }
   
    document.documentElement.scrollTop=0;

    }
    //-----------------------------------------检查答案


function check_answer(userid,pageid,exa_cishu,planid){
            var xmlhttp=getXMLHTTP();
            //alert(userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            // alert(unescape(answer))
            var count=10;
            xmlhttp.open("Get","../Ashx/check_answer.ashx?userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                    alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}

//---------------
    //-----------------------------------------提交答案


function sub_answer(userid,pageid,exa_cishu,planid){
            var xmlhttp=getXMLHTTP();
            //alert(userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            // alert(unescape(answer))
            var count=10;
            xmlhttp.open("Get","../Ashx/sub_answer.ashx?userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                  //  alert(xmlhttp.responseText) ;
                    
                    jConfirm(xmlhttp.responseText +",是否要交卷?", "确认对话框", function(r){ if (r==true){submitExam(); };});
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}

//-------------------单卷分页
 function page(act)
    {
    var count=document.getElementById ("num").value;
    var page_index=document.getElementById ("index_num");
    var div= document.getElementById ("ExamBody").getElementsByTagName ("div");
    if (div!=null)
    {
    if (act=="first")
    {
          page_index.value=0;
          
          
          for(var i = 0; i < div.length; i++) 
        { 
        if (div[i].id=="QType"+page_index.value && div[i].className=="QType" )
        {
         div[i].style.display="block";
        }
        else if( div[i].className=="QType")
        {
           div[i].style.display="none";
        }
      }
            if (parseInt(page_index.value)==0)
      {
      document.getElementById("first").setAttribute('disabled','disabled');
      document.getElementById("prent").setAttribute('disabled','disabled');
      document.getElementById("first").className="button_h" ;
      document.getElementById("prent").className="button_h" ;
      document.getElementById("next").removeAttribute('disabled');
      document.getElementById("last").removeAttribute('disabled');
      document.getElementById("next").className="button_r" ;
      document.getElementById("last").className="button_g" ;
      }
      else if (parseInt(page_index.value)>0&& parseInt(page_index.value)<parseInt(count))
      {
       document.getElementById("first").removeAttribute('disabled');
       document.getElementById("prent").removeAttribute('disabled');
       document.getElementById("next").removeAttribute('disabled');
       document.getElementById("last").removeAttribute('disabled');
       document.getElementById("first").className="button_g" ;
       document.getElementById("prent").className="button_r" ;
       document.getElementById("next").className="button_r" ;
       document.getElementById("last").className="button_g" ;
      }
      else if (parseInt(page_index.value)==parseInt(count) )
      {
      document.getElementById("next").setAttribute('disabled','disabled');
      document.getElementById("last").setAttribute('disabled','disabled');
      document.getElementById("next").className="button_h" ;
      document.getElementById("last").className="button_h" ;
      document.getElementById("first").removeAttribute('disabled');
      document.getElementById("prent").removeAttribute('disabled');
      document.getElementById("first").className="button_g" ;
      document.getElementById("prent").className="button_r" ;
      
      }
          
    }
    else if ( act=="prent")
    {
    if (parseInt(page_index.value)<=0)
    {
    page_index.value=0;
    
    }
    else 
    {
     page_index.value=parseInt(page_index.value)-1;
    }
     for(var i = 0; i < div.length; i++) 
        { 
        if (div[i].id=="QType"+page_index.value && div[i].className=="QType" )
        {
         div[i].style.display="block";
        }
        else if( div[i].className=="QType")
        {
           div[i].style.display="none";
        }
   
      }
         if (parseInt(page_index.value)==0)
      {
      document.getElementById("first").setAttribute('disabled','disabled');
      document.getElementById("prent").setAttribute('disabled','disabled');
      document.getElementById("first").className="button_h" ;
      document.getElementById("prent").className="button_h" ;
      document.getElementById("next").removeAttribute('disabled');
      document.getElementById("last").removeAttribute('disabled');
      document.getElementById("next").className="button_r" ;
      document.getElementById("last").className="button_g" ;
      }
      else if (parseInt(page_index.value)>0&& parseInt(page_index.value)<parseInt(count))
      {
       document.getElementById("first").removeAttribute('disabled');
       document.getElementById("prent").removeAttribute('disabled');
       document.getElementById("next").removeAttribute('disabled');
       document.getElementById("last").removeAttribute('disabled');
       document.getElementById("first").className="button_g" ;
       document.getElementById("prent").className="button_r" ;
       document.getElementById("next").className="button_r" ;
       document.getElementById("last").className="button_g" ;
      }
      else if (parseInt(page_index.value)==parseInt(count) )
      {
      document.getElementById("next").setAttribute('disabled','disabled');
      document.getElementById("last").setAttribute('disabled','disabled');
      document.getElementById("next").className="button_h" ;
      document.getElementById("last").className="button_h" ;
      document.getElementById("first").removeAttribute('disabled');
      document.getElementById("prent").removeAttribute('disabled');
      document.getElementById("first").className="button_g" ;
      document.getElementById("prent").className="button_r" ;
      
      }
      
    }
    else if( act=="next")
    {
       if (parseInt(page_index.value)>=parseInt(count))
    {
    page_index.value=count;
    
    }
    else 
    {
     page_index.value=parseInt(page_index.value)+1;
    }
     for(var i = 0; i < div.length; i++) 
        { 
        if (div[i].id=="QType"+page_index.value && div[i].className=="QType" )
        {
         div[i].style.display="block";

        
        }
        else if( div[i].className=="QType")
        {
        
           div[i].style.display="none";
        }
   
      }
           if (parseInt(page_index.value)==0)
      {
      document.getElementById("first").setAttribute('disabled','disabled');
      document.getElementById("prent").setAttribute('disabled','disabled');
      document.getElementById("first").className="button_h" ;
      document.getElementById("prent").className="button_h" ;
      document.getElementById("next").removeAttribute('disabled');
      document.getElementById("last").removeAttribute('disabled');
      document.getElementById("next").className="button_r" ;
      document.getElementById("last").className="button_g" ;
      }
      else if (parseInt(page_index.value)>0&& parseInt(page_index.value)<parseInt(count))
      {
       document.getElementById("first").removeAttribute('disabled');
       document.getElementById("prent").removeAttribute('disabled');
       document.getElementById("next").removeAttribute('disabled');
       document.getElementById("last").removeAttribute('disabled');
       document.getElementById("first").className="button_g" ;
       document.getElementById("prent").className="button_r" ;
       document.getElementById("next").className="button_r" ;
       document.getElementById("last").className="button_g" ;
      }
      else if (parseInt(page_index.value)==parseInt(count) )
      {
      document.getElementById("next").setAttribute('disabled','disabled');
      document.getElementById("last").setAttribute('disabled','disabled');
      document.getElementById("next").className="button_h" ;
      document.getElementById("last").className="button_h" ;
      document.getElementById("first").removeAttribute('disabled');
      document.getElementById("prent").removeAttribute('disabled');
      document.getElementById("first").className="button_g" ;
      document.getElementById("prent").className="button_r" ;
      
      }
      
    }
    else if (act=="last")
    {
     page_index.value=count;
     for(var i = 0; i < div.length; i++) 
        { 
        if (div[i].id=="QType"+page_index.value && div[i].className=="QType" )
        {
         div[i].style.display="block";

        
        }
        else if( div[i].className=="QType")
        {
        
           div[i].style.display="none";
        }
   
      }
    
            if (parseInt(page_index.value)==0)
      {
      document.getElementById("first").setAttribute('disabled','disabled');
      document.getElementById("prent").setAttribute('disabled','disabled');
      document.getElementById("first").className="button_h" ;
      document.getElementById("prent").className="button_h" ;
      document.getElementById("next").removeAttribute('disabled');
      document.getElementById("last").removeAttribute('disabled');
      document.getElementById("next").className="button_r" ;
      document.getElementById("last").className="button_g" ;
      }
      else if (parseInt(page_index.value)>0&& parseInt(page_index.value)<parseInt(count))
      {
       document.getElementById("first").removeAttribute('disabled');
       document.getElementById("prent").removeAttribute('disabled');
       document.getElementById("next").removeAttribute('disabled');
       document.getElementById("last").removeAttribute('disabled');
       document.getElementById("first").className="button_g" ;
       document.getElementById("prent").className="button_r" ;
       document.getElementById("next").className="button_r" ;
       document.getElementById("last").className="button_g" ;
      }
      else if (parseInt(page_index.value)==parseInt(count) )
      {
      document.getElementById("next").setAttribute('disabled','disabled');
      document.getElementById("last").setAttribute('disabled','disabled');
      document.getElementById("next").className="button_h" ;
      document.getElementById("last").className="button_h" ;
      document.getElementById("first").removeAttribute('disabled');
      document.getElementById("prent").removeAttribute('disabled');
      document.getElementById("first").className="button_g" ;
      document.getElementById("prent").className="button_r" ;
      
      }
    
    
    }
   
    }

    }




//================================练习部分

//----------------------------------------------------------------------------------
function Practice_sing_choose1(answer,topid,userid,pageid,exa_cishu,planid,top_defen){
            var xmlhttp=getXMLHTTP();
           // alert(answer+"_"+topid+"_"+userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/Practice_sing_choose.ashx?answer="+answer+"&topid="+topid+"&userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid+"&score="+top_defen,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                     // alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}
//------------------------------------------------------------
function Practice_mulit_choose1(answer,topid,userid,pageid,exa_cishu,planid,top_defen){
            var xmlhttp=getXMLHTTP();
            //alert(answer+"_"+topid+"_"+userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            var count=10;
            xmlhttp.open("Get","../Ashx/Practice_mulit_choose1.ashx?answer="+answer+"&topid="+topid+"&userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid+"&score="+top_defen,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                  //   alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}
//------------------------------------------------------
function Practice_fill_answer1(answer,topid,userid,pageid,exa_cishu,planid,top_defen,f_count){
            var xmlhttp=getXMLHTTP();
            //alert(answer+"_"+topid+"_"+userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(f_count);
            var count=10;
            xmlhttp.open("Get","../Ashx/Practice_fill_answer1.ashx?answer="+answer+"&topid="+topid+"&userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid+"&score="+top_defen+"&fcount="+f_count,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                  //   alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}
//--------------------------
function Practice_jianda_answer1(answer,topid,userid,pageid,exa_cishu,planid,top_defen){
            var xmlhttp=getXMLHTTP();
           // alert(answer+"_"+topid+"_"+userid+"_"+pageid+"_"+exa_cishu+"--"+planid+"--"+top_defen)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            // alert(unescape(answer))
          
            var count=10;
            xmlhttp.open("Get","../Ashx/Practice_jianda_answer1.ashx?answer="+answer+"&topid="+topid+"&userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid+"&score="+top_defen,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                   //alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}
//------------------------------------------
//-------------------------------------------------------------------------------
function Practice_sing_choose(topid,pageid,userid,Ans_cishu,planid,top_defen)
{
var div=document.getElementById("AnswerDiv"+topid) ;
   var b_type=document.getElementById ("AnswerDiv"+topid).getElementsByTagName ("input");
   if (b_type!=null)
   {
       var choose="";
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].type=="radio")
        {
       if (b_type[i].checked==true)
       {
       
        choose=b_type[i].value
      //alert(b_type[i].value +topid+userid+plaid+escape(Ans_cishu));
           Practice_sing_choose1(choose,topid,userid,pageid,escape(Ans_cishu),planid,top_defen);
       
         break;
       
       }
       }
      }
  }
}
//----------------------------------------------------------------------
function Practice_mulit_choose(topid,pageid,userid,Ans_cishu,planid,top_defen)
{
var div=document.getElementById("AnswerDiv"+topid) ;
   var b_type=document.getElementById ("AnswerDiv"+topid).getElementsByTagName ("input");
   if (b_type!=null)
   {
       var choose="";
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].type=="checkbox")
        {
       if (b_type[i].checked==true)
       {
       
        choose+=b_type[i].value+",";
  
         //  sing_choose1(choose,topid,userid,pageid,escape(Ans_cishu),planid);
       }
       
       }
      }
    
      Practice_mulit_choose1(choose,topid,userid,pageid,escape(Ans_cishu),planid,top_defen);
         // alert(choose +topid+userid+pageid+escape(Ans_cishu)+planid);
  }
}
//-------------------------------------------------------------------------
function Practice_fill_answer(topid,pageid,userid,Ans_cishu,planid,top_defen,f_count)
{
var div=document.getElementById("AnswerDiv"+topid) ;
   var b_type=document.getElementById ("AnswerDiv"+topid).getElementsByTagName ("input");
   if (b_type!=null)
   {
       var fill="";
        for(var i = 0; i < b_type.length; i++) 
        { 
        if (b_type[i].type=="text")
        {
      // if (b_type[i].value!="")
       //{
       
        fill+=b_type[i].value+"^";
  
      // }
       }
      }
     
         Practice_fill_answer1(escape(fill),topid,userid,pageid,escape(Ans_cishu),planid,top_defen,f_count);
        
  }
}
//-----------------------------------------------------------------------------
function Practice_jianda_answer(topid,pageid,userid,Ans_cishu,planid,top_defen)
{
var answer=document.getElementById("D_"+topid) ;
    var fill="";
  if (answer!=null)
  {
 // alert(answer.value+"-"+top_defen+"_"+Ans_cishu)
   Practice_jianda_answer1(escape(answer.value),topid,userid,pageid,escape(Ans_cishu),planid,top_defen);
  }
}
//------------------------


    //-----------------------------------------检查答案


function Practice_check_answer(userid,pageid,exa_cishu,planid){
            var xmlhttp=getXMLHTTP();
            //alert(userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            // alert(unescape(answer))
            var count=10;
            xmlhttp.open("Get","../Ashx/Practice_check_answer.ashx?userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                    alert(xmlhttp.responseText) ;
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}

//---------------
    //-----------------------------------------提交答案


function Practice_sub_answer(userid,pageid,exa_cishu,planid){
            var xmlhttp=getXMLHTTP();
            //alert(userid+"_"+pageid+"_"+exa_cishu+"--"+planid)
              // var input_str=document.getElementById("Tea").value;
             //  alert(input_str);
            // alert(unescape(answer))
            var count=10;
            xmlhttp.open("Get","../Ashx/Practice_sub_answer.ashx?userid="+userid+"&pageid="+pageid+"&exa_cishu="+escape(exa_cishu)+"&planid="+planid,true);
           //  document.getElementById ("message").style.display="block";
            xmlhttp.onreadystatechange=function(){              
            if(xmlhttp.readyState==4){  
                  if(xmlhttp.status==200){
                       if(xmlhttp.responseText!=""){  
                    
                
                  //  alert(xmlhttp.responseText) ;
                    
                    jConfirm(xmlhttp.responseText +",是否要交卷?", "确认对话框", function(r){ if (r==true){submitExam_Practice(); };});
                              }            
                              else
                              {
                              
                                  } 
               }
            }
         }
         xmlhttp.send(null);

}


//================================