Custom script for dialog window in Sales order

I wanted to write a custom script in dialog window update items to change to workflow state Review after update button is clicked.

Can anyone please help me to do this.