You have to assign the event to one function, and in that function you choose to call the other functions according to a value.
var a = 1
if a == 1 : function_one()
if a == 2 : function_two()
if you want to change the button's behavior, you just have to change the value of a.