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