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