variable value to use as javascript code
<p>I have following code...</p>

<pre><code>&lt;script type="text/javascript"&gt;

var arr= new Array('10');


arr[0]='Need For Guru';
arr[1]='Qualities of a Guru';
arr[2]='Living Guru';
arr[3]='Who is a Satguru?';
arr[4]='Guru and Spiritual master';
arr[5]='Definition of discipleship';
arr[6]='Power of Faith';
arr[7]='Bad mouthing a Guru';
arr[8]='Fake Guru Shishya';
arr[9]='Pitfalls in the path of liberation';


var text='['+arr[0]+',\''+arr[1]+'\','+arr[2]+',\''+arr[3]+'\','+arr[4]+',\''+arr[5]+'\','+arr[6]+',\''+arr[7]+'\','+arr[8]+',\''+arr[9]+'\']';
document.write(text);

activatables('section', text );

&lt;/script&gt;
</code></pre>

<p>My problem is that I want to use <code>value</code> of <code>text</code> as part of javascript code in line ---
<code>activatables('section', text );</code> .. so that code becomes like below</p>

<pre><code>    activatables('section', ['Need For Guru','Qualities of a Guru',...]);
</code></pre>

<p>But I am not able to do the same.. .can anyone help in this?</p>
