function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2012高一地理人教版必修1第一章单元测试 下一篇:2012届高考英语专项复习解码资料(24份) '; }