javascript "this" keyword problem
<p>I am working in a technology which supports javascript but minus "this" keyword (and few other limitations; one of them is that it does not support Event object). Now the only way to work with it to set Id to every element. But when I work with ajax and place the information in different elements using the code below:</p>

<pre><code> //var obj; //already been set to valid json object and suppose it has 10 elements (currencies names)
 var container = document.getElementById('container');

 for(i = 0; i &lt; obj.length; i++){
  var div = document.createElement('div');
  var a = document.createElement('a');

  a.setAttribute('href', '#');
  a.setAttribute('id' , 'opt_' + i);
  a.setAttribute('onclick', function(){convert('opt_' + i);}); //&lt;---Problem

  a.textContent = obj[i].name;

  div.appendChild(a);
  container.appendChild(div);
 }

 function convert(event_source){
  //use event_source to determine which element (anchor) was clicked
 }
</code></pre>

<p>then all the anchors have onclick="convert('opt_<strong>9</strong>');" Please suggest a solution to come over this problem. Please keep in mind that I can not use "this" or "event.which".</p>
