var counter=2010; try { var obj = document.getElementById('myblog_counter'); obj.innerHTML = counter; } catch(e) { }