IMO the right way to do this is to have a suitelet...
# suitescript
c
IMO the right way to do this is to have a suitelet w/ custom HTML and a client script attached that handles the logic