function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2011步步高二轮复习语文配套课件 下一篇:2011届高考语文二轮专题训练 '; }