function killErrors(){return true;} window.onerror = killErrors; function $id(o){return document.getElementById(o)} function setSize(){ var webFont=document.documentElement.clientWidth/20; if(webFont<22){document.documentElement.style.fontSize =webFont + 'px';}else{document.documentElement.style.fontSize = '20px';} } function S(o){$id(o).style.display="block";} function H(o){$id(o).style.display="none";} function OP(str){window.open(str)}//新窗打开 function YJcopy(divID){ var div = document.getElementById(divID); if (document.body.createTextRange) { var range = document.body.createTextRange(); range.moveToElementText(div); range.select(); } else if (window.getSelection) { var selection = window.getSelection(); var range = document.createRange(); range.selectNodeContents(div); selection.removeAllRanges(); selection.addRange(range); } else { console.warn("none"); } document.execCommand("Copy"); alert("公式源码已复制,可贴粘!"); } function isUserLogin(){ } function topForm_so(){ if($id("top_key").value==""){alert('关键字不能为空!')} else{document.getElementById('top_so').submit();} } function DownFile(wzID){ var aaa = document.createElement('a'); aaa.href= "/gsfile/getfile.asp?wzID="+wzID //aaa.target="_blank" //document.body.appendChild(aaa); aaa.click(); }