fires after the control has been clicked
button.attachEvent("onItemClick", function(id, e){ // code });