just use onclick with 2 functions on the button..