var obj = null; obj = document.getElementById('hitsmonth'); if(obj) obj.innerText='1'; obj = document.getElementById('hitstotal'); if(obj) obj.innerText='8'; obj = document.getElementById('userpoints'); if(obj) obj.innerText='12';