Hey Leanne.
This is a Java forum rather than Java<i>script</i>. Believe it or not they are two completely different languages. There's a couple of Javascript forums on this site, where you may get more help:
http://p2p.wrox.com/web-2-0-mashups-other-web-programming-449
In answer to your question, I'd suggest writing your scripts by hand at first, rather than using dreamweaver, at least until you understand what goes on in the javascript. And, yes, the order in which you place instructions and call functions makes a difference.
Control within a block (i.e. a function, loop, if block, etc.) goes from top to bottom within that block.
Cheers
--
Don't Stand on your head - you'll get footprints in your hair
http://charlieharvey.org.uk
http://charlieharvey.com