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