function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:新课标高三历史高考模拟卷汇总 下一篇:各地高三历史考题精拣测试汇总 '; }