title: AJAX innerHTML. Change links. Possibly a " or ' problem
body: <p>What I want is a hyperlink More when clicked on runs some javascript function and also changes to a hyperlink Less. Heres what I have which doesnt work. It runs the ajaxpage function fine but not moreToLess. I think its my use  of " and ' in the javascript.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  function moreToLess(){
  document.getElementById('tagLinks').innerHTML = '&lt;a href=# OnClick="ajaxpage('/TagCloud?id=EDI_0009&amp;count=20', 'tagcloud');lessToMore()" &gt;Less&lt;/a&gt;';
  }
  function lessToMore(){
  document.getElementById('tagLinks').innerHTML = '&lt;a href=# OnClick="ajaxpage('/TagCloud?id=EDI_0009&amp;count=50', 'tagcloud');moreToLess()" &gt;More&lt;/a&gt;';
  }
  &lt;/script&gt;
  &lt;span id=tagLinks &gt;&lt;a href=# OnClick="ajaxpage('/TagCloud?id=EDI_0009&amp;count=50', 'tagcloud');moreToLess()" &gt;More&lt;/a&gt;&lt;/span&gt;
  </code></pre>