The following doesn't work but I include it to try and explain my blunder 
I wish to output the value of a variable, in the followig case it should print <B>main</B> but it's important that it gets that value indirectly from the variable: sect
---
var page = 'main';
var sect = 'page';
document.write('<B>'+toString(sect)+'</B>');
---
----------
I'm willing to trade custom scripts for... [see profile]
I wish to output the value of a variable, in the followig case it should print <B>main</B> but it's important that it gets that value indirectly from the variable: sect
---
var page = 'main';
var sect = 'page';
document.write('<B>'+toString(sect)+'</B>');
---
----------
I'm willing to trade custom scripts for... [see profile]