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