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