var obj = null; obj = document.getElementById('hitsmonth'); if(obj) obj.innerText='4'; obj = document.getElementById('hitstotal'); if(obj) obj.innerText='6'; obj = document.getElementById('userpoints'); if(obj) obj.innerText='3';