var ExamineeEmbedHandle={LogExam:{"模拟点击":function(a){if($.browser.msie)$("#golink").attr("href",a).get(0).click();else{window.open(a);return;var b=document.createEvent("MouseEvents");b.initEvent("click",false,false);$("#golink").attr("href",a).get(0).dispatchEvent(b)}},QTip:{Rank:{boxyKey:"ExamineeEmbedHandle-LogExam-QTip-Rank",alert:function(a){Global.Boxy.alert(this.boxyKey,{newTitle:"查看排名",dtHtml:"查看排名失败，请看以下原因：",newMessage:a})},wait:function(a){Global.Boxy.wait(this.boxyKey,{newTitle:"验证",dtHtml:"验证查看排名的权限"});a&&a()},hide:function(){Global.Boxy.hide(this.boxyKey)},redirect:function(a){var b="/Exam/Rank/1?ExamSetID="+a;ExamineeEmbedHandle.LogExam.模拟点击(b)},check:function(b){var a=ExamineeEmbedHandle.LogExam.QTip.Rank;a.wait(function(){$.ajax({url:"/Exam/ISViewRank",type:"POST",data:{"考试设置ID":b},dataType:"json",async:false,success:function(c){if(c.result){a.redirect(b);a.hide()}else a.alert(c.info)}})})}},Answer:{boxyKey:"ExamineeEmbedHandle-LogExam-QTip-Answer",alert:function(a,b){Global.Boxy.alert(this.boxyKey,{newTitle:a+"答卷",dtHtml:a+"答卷失败，请看以下原因：",newMessage:b})},wait:function(a){Global.Boxy.wait(this.boxyKey,{newTitle:"验证",dtHtml:"验证查看或继续答卷的权限"});a&&a()},hide:function(){Global.Boxy.hide(this.boxyKey)},redirect:function(a,b){var c="/Exam/OnlineExam?guid="+a+"&type="+b;ExamineeEmbedHandle.LogExam.模拟点击(c)},check:function(c){var a=ExamineeEmbedHandle.LogExam.QTip.Answer,b=false,d=a.wait(function(){$.ajax({url:"/Exam/ISViewAnswer",type:"POST",data:{"考生做过的试卷ID":c},dataType:"json",async:false,success:function(d){d.info=d.info||{};b=d.info.是否已提交试卷||false;if(d.result){a.redirect(c,b?2:3);a.hide()}else a.alert(b?"查看":"继续",d.info.提示信息||"")},error:function(c,b){alert("错误类型："+b);a.hide()}})})}}}}}