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