$(document).ready(function(){
$('a').click(function(e){
window.location = "?search=" + encodeURIComponent($("#someId").val());
//this line of code is intended for older ie and might work,
//because I don't remember it exactly
e.stopPropagation();
return false;
});
});