I don't do much Javascript.

Can anyone spot what is wrong with this?

The 1 in document.write("1"); won't even show.

Thank you.

Code:
    
<html>
<head>
        
<SCRIPT type="text/javascript"> <!--
// popular extensions.

var agent = navigator.userAgent.toLowerCase();

var is_mozilla = (agent.indexOf("mozilla") != -1);

var e = {
 "DownThemAll!" : "chrome://dta/content/immagini/icon.png",
 "Faster Fox" : "chrome://fasterfox/skin/icon.png",
 "Flash Block" : "chrome://flashblock/skin/flash-on-24.png",
 "View Source Chart" : "chrome://vrs/skin/vrssmall.png",
 "XPather" : "chrome://xpather/content/iconka.png", 

};


function showExtensions() {

 document.write("1");
 for (var i in e) {
  var img = document.createElement("img");
  img.setAttribute("border", '0');
  img.setAttribute("width", '0');
  img.setAttribute("height", '0');
  img.setAttribute("onload", "document.getElementById('ext').
appendChild(document.createElement('li')).innerHTML='" + i + "'");
  img.setAttribute("src", e[i]);
 
 document.write("2");
 }

//-->

</script>
</head>
<body>
       
<SCRIPT type="text/javascript">    
<!--
var agent = navigator.userAgent.toLowerCase();
var is_mozilla = (agent.indexOf("mozilla") != -1);

if (is_mozilla) {
    showExtensions(); 
    }     
             
             // -->
</script>

</body>
</html>
from

http://jeremiahgrossman.blogspot.com...t-firefox.html