error messages-onPageUnload is not defined, etc..?
<p>onPageUnload is not defined<br>
unterminated string literal<br>
unterminated string literal</p>

<p>new to javascript, no experience in it, so please bare with me....get the 3 above error messages, not sure how to fix. JS  code is below, thank you for any help in advance.  Im not sure what the problem is, but anxious to learn it.</p>

<h2>thanks!</h2>

<p>// Created by iWeb 3.0.3 local-build-20110325</p>

<pre><code>function writeMovie1()
{detectBrowser();if(windowsInternetExplorer)
{document.write('&lt;object id="id3" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" width="150" height="16" style="height: 0px; left: 160px; position: absolute; top: 150px; width: 150px; z-index: 1; "&gt;&lt;param name="src" value="musicfiles/VenusStereo.m4a" /&gt;&lt;param name="controller" value="false" /&gt;&lt;param name="autoplay" value="true" /&gt;&lt;param name="scale" value="tofit" /&gt;&lt;param name="volume" value="100" /&gt;&lt;param name="loop" value="true" /&gt;&lt;/object&gt;');}
else if(isiPhone)
{document.write('&lt;object id="id3" type="video/quicktime" width="150" height="16" style="height: 0px; left: 160px; position: absolute; top: 150px; width: 150px; z-index: 1; "&gt;&lt;param name="src" value="musicfiles/VenusStereo.m4a"/&gt;&lt;param name="controller" value="false"/&gt;&lt;param name="scale" value="tofit"/&gt;&lt;/object&gt;');}
else
{document.write('&lt;object id="id3" type="video/quicktime" width="150" height="16" data="musicfiles/VenusStereo.m4a" style="height: 0px; left: 160px; position: absolute; top: 150px; width: 150px; z-index: 1; "&gt;&lt;param name="src" value="musicfiles/VenusStereo.m4a"/&gt;&lt;param name="controller" value="false"/&gt;&lt;param name="autoplay" value="true"/&gt;&lt;param name="scale" value="tofit"/&gt;&lt;param name="volume" value="100"/&gt;&lt;param name="loop" value="true"/&gt;&lt;/object&gt;');}}
setTransparentGifURL('Media/transparent.gif');function applyEffects()
{var registry=IWCreateEffectRegistry();registry.registerEffects({stroke_0:new IWStrokeParts([{rect:new IWRect(-5,5,10,467),url:'Welcome_files/stroke.png'},{rect:new IWRect(-5,-5,10,10),url:'Welcome_files/stroke_1.png'},{rect:new IWRect(5,-5,705,10),url:'Welcome_files/stroke_2.png'},{rect:new IWRect(710,-5,11,10),url:'Welcome_files/stroke_3.png'},{rect:new IWRect(710,5,11,467),url:'Welcome_files/stroke_4.png'},{rect:new IWRect(710,472,11,10),url:'Welcome_files/stroke_5.png'},{rect:new IWRect(5,472,705,10),url:'Welcome_files/stroke_6.png'},{rect:new IWRect(-5,472,10,10),url:'Welcome_files/stroke_7.png'}],new IWSize(716,477))});registry.applyEffects();}
function hostedOnDM()
{return true;}
function onPageLoad()
{loadMozillaCSS('Welcome_files/WelcomeMoz.css')
adjustLineHeightIfTooBig('id1');adjustFontSizeIfTooBig('id1');adjustLineHeightIfTooBig('id2');adjustFontSizeIfTooBig('id2');Widget.onload();fixupAllIEPNGBGs();fixAllIEPNGs('Media/transparent.gif');applyEffects()}
function onPageUnload()
{Widget.onunload();}
</code></pre>
