function sortRequest(sortBy, sortOrder, params) {
	jQuery('#sortloading').html('<img src="/img/catalog/loading.gif" style="margin-bottom:-2px;" alt="" />');
	jQuery.ajax({
		type: "GET",
		url: "/catalog/sort_new.php",
		data: "by=" + sortBy + "&sort=" + sortOrder + "&" + params,
		success: function(response){
			if (jQuery('#prf_by').length) {
				jQuery('#prf_by').attr('value', sortBy);		
			} else {
				jQuery('#prfilter').append('<input type="hidden" name="by" id="prf_by" value="' + sortBy + '" />');
			}
			if (jQuery('#prf_sort').length) {
				jQuery('#prf_sort').attr('value', sortOrder);
			} else {
				jQuery('#prfilter').append('<input type="hidden" name="sort" id="prf_sort" value="' + sortOrder + '" />');
			}				
			jQuery('#sortres').html(response);
		}
	});
	return false;	
}
