rem: param.title = c.title; param.value = c._id; if (c._id == chosen) param.checked = " checked"; else param.checked = ""; res.write(c.renderSkinAsString("main", param)); res.write("\n"); 
add: param.title = choice.title; param.value = choice._id; param.checked = ""; if (choice == vote) param.checked = " checked=\"checked\""; res.write(choice.renderSkinAsString("main", param)); 
context: function choices_macro(param) {   if (param.as == "editor") {      var max = res.data.choices;      for (var i=0; i<max; i++) {         res.write(param.prefix.replace(re, i+1));         var param2 = this.createInputParam("choice", param);         if (req.data.choice) {            if (req.data.choice_array) {               if (req.data.choice_array.length > i)                  param2.value = req.data.choice_array[i];            }            else               param2.value = req.data.choice;         }          renderInputText(param2);         res.write("\n");      }   }   else {      var chosen = -1;      if (session.user)         chosen = this.votes.get(session.user.name);      for (var i=0; i<this.size(); i++) {         var c = this.get(i);         param.name = "choice";         param.title = c.title;         param.value = c._id;         if (c._id == chosen)            param.checked = " checked";         else            param.checked = "";         res.write(c.renderSkinAsString("main", param));         res.write("\n");      }   }}
meta: 993	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/993/dfae05854db5b34b5c20f2187da557fa128c3ffe/macros.js/buggy/code/Poll/macros.js