Calling javascript variable parameters from global function on the <a href > onclick even
<p>The I wrote in the &lt;a href='javascript:newsdatainfo(document.xmldoc,...see below.  But it still does not work.</p>

<pre><code>var dataxml = unescape(xml);    
var xmldoc = getDomAdapter().parseXml(dataxml);
var rootnode = xmldoc.getElementsByTagName('result_set')[0];
var newsresult = rootnode.getElementsByTagName('item');
var pages = Math.round(newsresult.length / 10);

var pagesref;
for (var p=1; p &lt;= pages;p++){
    if (p==1)
        pagesref = pagesref+"&lt;a href='javascript:newsdatainfo(document.xmldoc,document.newsresult,6,10)' &gt;"+p+"&lt;/a&gt; | ";
</code></pre>
