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