function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:高考作文立意创新招术 下一篇:考场点拨:修辞让作文语言靓起来 '; }