//function used by paginator and perpage - ajax
function getPage(url, param, container){
  if ($( "#"+container).length > 0){
	$( "#"+container).addClass("loadResponse");
	$( "#"+container).html("<img src='/statics/img/ajax-loader-big.gif' />");
    $.ajax( {
    type: "GET",
    url: url,
    data: param,
    success: function( response ) {
    	$( "#"+container).removeClass("loadResponse");
		$('#'+container).html( response );
    },
    error: function() {
    $( "#"+container).html("Sorry, your request cannot be proccessed at the moment.")
    }
});
};
};