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