Cancel an Ajax call while calling the same function
===

I have a function 

    
function modifydata(what) {

		$.post(somepage.php+"?url="+replacedurl+"&userDesc="+userdesc+"&submitType="+what, {
				}, function(response){
					alert(response)
				});
			}

I call the same fuction on two links link1 ,  link2  .

when the user clicks on link1 and the ajax is still processing, and if the user clicks link2 at the same time which calls the same function but with different values i'd like to shut the first processing to avoid load issues. can it be possible without having the create the same function with a different name . if so how?

thanks,
Jay