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