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