function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:天津市09-10学年高一上学期历史试卷精选 下一篇:高考地理专题复习课件 '; }