function chkdiv(divid){ var chkid=document.getElementById(divid); if(chkid != null){return true; } else {return false; } } if (chkdiv('fy')){ document.getElementById('fy').innerHTML='上一篇:2010届高考历史宝典训练汇总 下一篇:2010届高三物理知识点复习:功与能 '; }