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