var container = document.getElementById("gpViewCount"); if(container){ container.innerHTML = "10837"; }else{ document.write("10837"); }