Move the code on lines 5-9 down below the server side code that ends on line 45. Some server side code has to be above any html output and you have script and link tags above the server code.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.