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