if(document.getElementById('hits')!=null) { var hits = document.getElementById('hits'); hits.innerHTML = '12006'; } if(document.getElementById('comnum')!=null) { var comnum = document.getElementById('comnum'); comnum.innerHTML = '0'; }