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年高考地理热点荟萃 '; }