I have put in-class demo example onto resources page of course web site -- also you will find there a simple explanation of why we may want to put javascript into head section -- also read text carefully on page 37 which refers to declaring user-defined functions -- also note that we will discuss functions in greater detail in chapters 4 and 8.

Jerry Ross