A Function Defined in the Wrong Place

Yes, we know you saw an error message saying "function1() is not defined" when you opened this page...
That's because the function is called in a script before the script in which function1() is defined.


<SCRIPT>

function1();

</SCRIPT>

<SCRIPT>

function function1() {
     alert("This is function1 running.");
}

</SCRIPT>