/**
 * 分页时，处理输入的页数时，带入非法字符，直接设置为空
 * @return
 */
function checkPageNum(){		
	var obj = document.getElementById("pageNo");
	if (obj != null) {
		var pattern = /^[1-9]\d*$/;
		if (!pattern.test(obj.value)) {
			obj.value = "";
		}
	}
}

/**
 * 根据试卷编号显示试卷详情
 * @param paperId	试卷编号
 * @return
 */
function show_exam_detail(paperId) {
	
//	var paperListURL = "/my/exam/paperCenter/paperDetail.htm?paperId=" + paperId + "&ts=" + new Date().getTime(); 
//	YAHOO.staticFrame.open('popdiv', '试卷详情', paperListURL, 600, 745);
	var dw=766,dh=550;

	var clientToolbarHeight=screen.availHeight-document.documentElement.clientHeight-25;//浏览器工具栏高度
 	var params = "dialogTop:"+((document.documentElement.clientHeight-dh)/2+clientToolbarHeight)+"px;dialogLeft:"+(screen.width-dw)/2+"px;dialogHeight:"+dh+"px;dialogWidth:"+dw+"px;scroll:no";	
	var examDetailURL = "/my/exam/paperCenter/paperDetail.htm?paperId=" + paperId + "&ts=" + new Date().getTime();        	
	window.showModalDialog(examDetailURL+"&newwin", null, params);
}


