function arm()
{
  var u = "pwd=PASSWORDHASH&whichstore=", U, b, i;
  with( top.mainpane.document.forms[0] )
  {
    b = getElementsByTagName('b');
    u += whichstore.value + "&buying=Yep.&whichitem=";;
  }
  for( i=2; i<b.length; i++ )
  {
    U=u+/value=['"]?(\d+)["']?/.exec(b[i].parentNode.parentNode.innerHTML)[1];
    b[i].setAttribute('onclick',
		      'prompt("KoL CLI string:","\\"'+U+'&quantity=QTY\\"")');
  }
}

void arm();

