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