Hi
You can set the mode for every opration like when user select the Report the set one hidden property and assing the value report to it , if user select the edit the change its value to edit , in
java script you can check the value of that hidden prpoerty and call the appropreate action for this
eg. if user press edit the
document.form.mode.value ='edit
when user click on Report then
document.form.mode.value ='edit
In java Script
Function OnSubmit(Mode)
{
if mode == 'EDIT'
form.action = edit.jsp
else
if mode = 'REPORT'
from.action = report
.....
and so on you can do this
Regards
Santosh
}