var SN = "ToKnow";function killErr(){return true;} window.onerror=killErr;function getCookie(aName){	var sSearch=aName+"=";	var acookie=window.document.cookie+";"	acookie=acookie.replace(/\&/g,';');	if(acookie.length>0){		var iOffset=acookie.indexOf(sSearch);		if(iOffset!=-1){			iOffset+=sSearch.length;			var iEnd=acookie.indexOf(";",iOffset);			if(iEnd==-1){iEnd=acookie.length;}			var s=acookie.substring(iOffset,iEnd);			return s;					}	}	return null;}function getLoginName(){	return getCookie(SN + "Md5Name");}//idname: 页面元素的ID//v: 0隐藏，1显示function show_hidden(idname, v){	var obj = $(idname);	if (!obj){ return false;}		if (v == 0) {		if (obj.style.display != "none") { obj.style.display = "none";}		return true;	}	else if (v == 1) {		if (obj.style.display == "none") { obj.style.display = ""; }		return true;	}	return false;}//更新记录后关闭子窗口并刷新父窗口的JS function RefreshParent(CloseSub) {	//window.parent.location.reload();	window.opener.location.href = window.opener.location.href;	if (window.opener.progressWindow) window.opener.progressWindow.close();	if (CloseSub) window.close();}function IsNumeric(s){	var r,re;	re = /\d*/i; //\d表示数字,*表示匹配多个数字	r = s.match(re);	return (r==s)?true:false;}function ShowErr(msg, act, aurl){	document.write("<center>"+msg+"</center>");	if(act=="close"){		window.parent.dialogBoxClose.click();		if(msg.length>0)alert(msg);	}else if(act=="back"){		if(msg.length>0)alert(msg);		history.back();	}else if(act=="goto" && aurl.length>0){		if(msg.length>0)alert(msg);		window.top.location=aurl;	}else{		if(msg.length>0)alert(msg);	}}function check_replyform(aform){	if(!aform.co.value)		{alert("回答内容不能为空！"); return false; }	else if(aform.co.value.length>3000)		{alert("回答内容的长度不能超过 3000"); return false; }	else		return true;}