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