var onComplete = this.options.onComplete || Prototype.emptyFunction;
this.options.onComplete = (
function(request)
{
//add anything you want to do extra here
alert(‘running extra codes’);
onComplete(request);
}
).bind(this);

That will run the alert then runs the original onComplete().

This technic helps not to copy paste the whole code of original function into the new function.