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