is valid?      

Text formatted with Texy:


"; document.write(odkaz); }

Generated HTML code:

<script
type="text/javascript">
var x = document.getElementsByTagName('h2');
for (i=0;x &amp;&amp; i &lt; x.length; i++)
	{
	var odkaz = "&lt;a href=\"#"+ x[i].id +"\"&gt;"+ x[i].innerHTML +"</script><br>
"; document.write(odkaz); }

Verze Texy: 3.2.3 (konfigurace)