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