</div></th>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</body>
</html>
<script language="JavaScript">
var b_finish=false;
var b_showtime=false;
var totalTime =2698;
var hh; //化成小时
var mm=0; //化成
var ss=0; //化成秒
//化成秒
hh=parseInt(totalTime/3600);
mm=parseInt(totalTime%3600/60);
var jjTime =-1;
var jjhh; //化成小时
var jjmm=0; //化成
var jjss=0;
jjhh=parseInt(jjTime/3600);
jjmm=parseInt(jjTime%3600/60);
var isIE=!!window.ActiveXObject;
var isIE6=isIE&&!window.XMLHttpRequest;
var isIE8=isIE&&!!document.documentMode;
var isIE7=isIE&&!isIE6&&!isIE8;
function sort()
{
window.parent.bottomFrame.setclosefalse();
if(b_finish)return;
var d = new Date();
window.parent.leftFrame.location="userpaper.userpaperdoublebmenusort.flow?p_id=4223816916762495&tran_timeex="+d.getTime();
window.parent.bottomFrame.setclosetrue();
}
function reduce()
{
window.parent.bottomFrame.setclosefalse();
if(b_finish)return;
var d = new Date();
window.parent.leftFrame.location="userpaper.userpaperdoublebmenureduce.flow?p_id=4223816916762495&tran_timeex="+d.getTime();
window.parent.bottomFrame.setclosetrue();
}
function refresh()
{
// window.parent.bottomFrame.setclosefalse();
if(b_finish)return;
var d = new Date();
window.parent.mainFrame.location="userpaper.userpaperdoublebex.flow?p_id=4223816916762495&tran_timeex="+d.getTime();
window.parent.bottomFrame.setclosetrue();
}
}
function finishedstate()
{
var d = new Date();
var url="userpaper.userpaperdoublebstatelistsubmit.flow?p_id=4223816916762495&tran_timeex="+d.getTime();
sendRequest(url);
}
function papersendRequestPost(url,form){
//papercallback = run;
if (window.XMLHttpRequest) {
paperajaxRequestObj = new XMLHttpRequest();
}else if (window.ActiveXObject) {
try{
paperajaxRequestObj = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e){
try{
paperajaxRequestObj = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {}
}
}
var content=getRequestBody(form);
//alert(content);
if(paperajaxRequestObj){
paperajaxRequestObj.open("post",url, true);
paperajaxRequestObj.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
paperajaxRequestObj.onreadystatechange = finishedstate;
paperajaxRequestObj.send(content);
}
}
function getRequestBody(oForm) { // 参数oForm是对某个form对象的引用
var aParams = new Array(); // 用来存储“名-值”对的数组
for (var i = 0; i < oForm.elements.length; i++) {
// “名-值”对必须转换成URL编码格式,否则极有可能丢失数据,所
//以调用了javascript内建的encodeURIComponent函数
if (oForm.elements.name!='')
{
if (oForm.elements.type=='select-one')
{
element_value=e.options[oForm.elements.selectedIndex].value;
}
else if (oForm.elements.type=='checkbox' || oForm.elements.type=='radio')
{
if (oForm.elements.checked==false){
continue;
}
element_value=oForm.elements.value;
}
else if (oForm.elements.type=='textarea')
{
}
else {
element_value=oForm.elements.value;
}
}
var sParam = encodeURIComponent(oForm.elements.name);
sParam += "=";
sParam += encodeURIComponent(element_value);
aParams.push(sParam);
}
return aParams.join("&");
}
function finishedtime()
{
if(b_finish)return;
try{
window.parent.mainFrame.paperfinish(2);
b_finish=true;
}catch(ex)
{
window.parent.location="userpaper.userpaperfinishex.flow?sid=4223816916762495&p_id=4223816916762495&submittype=2";
b_finish=true;
}
}
function showstate()
{
if(b_finish)return;
var d = new Date();
var url="userpaper.userpaperdoublebstatelist.flow?p_id=4223816916762495&tran_timeex="+d.getTime();
sendRequest(url);
}
function complete(ajaxRequestObj){
var str= ajaxRequestObj.responseText;
if(null != str && "" != str){
window.parent.mainFrame.tckTypeDiv.innerHTML=str;
window.parent.mainFrame.showstatediv();
}
}
function close(){
window.parent.mainFrame.tckTypeDiv.style.display="none";
}
var close_try=0;//离开次数
var close_count=0;//能够离开次数
var close_flag=true;
window.onblur=auto_submit;
function auto_submit(){
}
function try_title()
{
return "允许意外操作造成的切屏!<font color='red'>"+close_count+"</font>次,您已经切出去<font color='red'>"+close_try+"</font>次.</br></br><font color='red' size='5' ><strong> 故意切屏按违纪处理!!!<br>如果超出限制系统将会自动收卷</strong></font>";
}
function try_close()
{
return "您已经切出去"+close_try+"次,系统将会自动收卷!";
}
function otry_title()
{
return "您考试违例了,请不要切出考试页面,否则系统将会自动收卷!";
}
function otry_close()
{
return "您考试违例了,系统将会自动收卷!";
}
function setclosetrue()
{
close_flag=true;
}
function setclosefalse()
{
close_flag=false;
}
function showmodel()
{
if(b_finish)return;
var d = new Date();
var url="userpaper.userpapermodellist.flow?p_id=4223816916762495&u_id=3326666393203512&tran_timeex="+d.getTime();
sendRequest(url);
}
function updatelanflag(lan)
{
window.parent.bottomFrame.location="userpaper.updatelanflagmain.flow?p_id=3223816916762495&u_id=3326666393203512&u_lan="+lan;
}
window.parent.titleFrame.location="/wis18/usermain/paper/repeattitle.jsp";
</script>