JavaScript messes up validator

When the following code is passed through it catches the </object> tag, 
but doesn't see that one is opened.  Since the code was fine before it 
was put into a javascript, I think it might be a bug.

<script type="text/javascript" language="JavaScript"><!--
	var browserName = navigator.appName;
	var l1splash = '<object type="application/x-shockwave-flash" 
data="/gfx/splash.swf" width="391" height="127">'
	var l2splash = '<img src="noflash.gif" width="200" height="100" alt="" />'
	var l3splash = '<param name="movie" value="/gfx/splash.swf" /></object>'
	browserVer = parseInt ( navigator.appVersion );
	if ( browserName == "Netscape" && browserVer < 5 ) 
{document.write(l1splash + l3splash);
	} else {
		document.write(l1splash + l2splash + l3splash);
	}
// --></script>

-- 
Robert J. Accettura
robert@accettura.com <mailto:robert@accettura.com>

Received on Saturday, 4 January 2003 23:19:58 UTC