title: Why doesn't this onload function run?
body: <p>Why does the onLoad not get triggered?</p>
  
  <pre><code>      function FULL_IMAGE(fimage){
          document.getElementById("FULL_SRC").onLoad = function(){
            offsetTop = document.getElementById("FULL_SRC").height / 2;
            offsetLeft = document.getElementById("FULL_SRC").width / 2;
            document.getElementById("FULL_SRC").style.marginTop="-"+offsetTop+"px";
            document.getElementById("FULL_SRC").style.marginLeft="-"+offsetLeft+"px";
          }
          document.getElementById("FULL_SRC").src=fimage;
          document.getElementById("FULL_VIEW").style.display="block";
        }
  </code></pre>