var obj = null; obj = document.getElementById('hitsmonth'); if(obj) obj.innerText='2'; obj = document.getElementById('hitstotal'); if(obj) obj.innerText='618'; obj = document.getElementById('userpoints'); if(obj) obj.innerText='0';