function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:备战2013届高考:地理高频考点(8) 下一篇:备战2013届高考:地理高频考点(10) '; }