4 functionaliities use 1 function now

Hi,
Now submitduplicate, submitbug, submittbpl & updatestatus uses a single function instead of 4 different functions. Please review.
Thank You
is there a way to make this simpler?  it is close to the irght thing, but we have where id=%s on all cases, and update alerts set for all :)