$(document).ready(function() { 
	$("a").click(function () { 
		if (this.href.indexOf('?')==-1) 
			this.href=this.href+document.location.search; 
		return true; 
	});
});

