Rejection confirmation Pop up after clicking on custom workflow button reject

I have created custom workflow and in that there is reject button . So after clicking on reject button how can i add pop up dialog box in which system will ask user that are you sure you want to reject and same time reason field same should get open where user will enter reason of rejection.