turn javascript local variable into global variable
<p>I have a javascript function to generate a var. That function is activated by an onclick button event.</p>

<p>After that var is generated, I need to use it as a global var so that other js processes can use that var.</p>

<p>How do I do it?</p>
