You can easily change the onclick event of an element with jQuery without running the new function with:
$("#id").attr("onclick","new_function_name()");
By writing this line you actually change the onclick attribute of #id.
You can also use:
document.getElementById("id").attribute("onclick","new_function_name()");