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