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