function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2013高考地理必备考点汇总 下一篇:2013高考地理考试重点汇总 '; }