JavaScript OOP problem
<p>I create windows like this:</p>

<pre><code>var obj = document.createElement('div'); 
obj.className = 'window';
obj.style.width = 300 + 'px';
obj.style.height = 200 + 'px';
obj.style.left = 30 + 'px';
obj.style.top = 200 + 'px';     

//and so on
</code></pre>

<p>and what I need is to attach some data to each window. The data will be grabbed via Ajax and displayed in the windows. How should I do it so that each window hold its own unique data?</p>

<p>I don't need to display the whole data every time and this data would need be organized before being displayed, so I can't just add it with <code>innerHTML</code>. I need a way to hold it somewhere else where I could easily get it and then display it with <code>innerHTML</code>.</p>
