function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:【图文】名师激励学生的经典技巧 下一篇:浙江省杭州高中2009届高三第三次月考试卷 '; }