document.getelementById can be omitted in all major browsers, inclunding IE6+. This is non-standard, but all of them save the elements ids as globals.
<div id="myId"></div>
<script>
alert(myId.id); // --> myId
alert(window.myId.id); // --> myId
</script>