[VE][64] An "img" in a javascrpit function

I can't see any mistake here :

<h3 id="Fabian"> Fabian <script type="text/javascript">courriel("<img 
src='images/img-menu/mail.gif' alt='mail' 
/>","flanguy","infonie.be")</script> | <a style="font-size:0.8em" 
href="equipe-folle.php#Fabian">  L'autre description</a></h3>

Where the javascript function is
function courriel(texte,alias,serveur) {
    document.write('<a href="mailto:' + alias + '@' + serveur + '">' + 
texte +'</a>');
}

Validating http://www.webkot.be/~kapnord/equipe.php
Error [64]: "document type does not allow element X here"

Received on Wednesday, 27 December 2006 16:50:33 UTC