			    
function exportUserResources( sort ) {
	jQuery.ajax({
        url: "/AloeView/ajax/resourcesExport",
        type: 'get',  // get is the default type
        data: {
            exportType: "userResources",
            sortCriterion: sort
		},
		success: function( data, textStatus, jqXHR ) {
			// do nothing
		},
		error: function( jqXHR, textStatus, errorThrown ) {
			// do nothing
		}
	});
}

function exportGroupResources( groupId, groupName, sort ) {
	jQuery.ajax({
        url: "/AloeView/ajax/resourcesExport",
        type: 'get',  // get is the default type
        data: {
            exportType: "groupResources",
    	    groupId: groupId,
    	    groupName: groupName,
            sortCriterion: sort
		},
		success: function( data, textStatus, jqXHR ) {
			// do nothing
		},
		error: function( jqXHR, textStatus, errorThrown ) {
			// do nothing
		}
	});
}

function exportSearchResourcesResult( query, sort, titleFlag, tagsFlag, descriptionFlag, creatorsFlag ) {
	jQuery.ajax({
	        url: "/AloeView/ajax/resourcesExport",
	        type: 'get',  // get is the default type
	        data: {
		    exportType: "searchResourcesResult",
		    searchString: query,
		    sortCriterion: sort,
		    searchTitle: titleFlag,
		    searchTags: tagsFlag,
		    searchDescription: descriptionFlag,
		    searchCreators: creatorsFlag
		},
		success: function( data, textStatus, jqXHR ) {
			// do nothing
		},
		error: function( jqXHR, textStatus, errorThrown ) {
			// do nothing
		}
	});
}

function exportSearchGroupResourcesResult( query, groupId, groupName, sort, titleFlag, tagsFlag, descriptionFlag, creatorsFlag ) {
	jQuery.ajax({
        url: "/AloeView/ajax/resourcesExport",
        type: 'get',  // get is the default type
        data: {
		    exportType: "searchGroupResourcesResult",
		    searchString: query,
		    groupId: groupId,
		    groupName: groupName,
		    sortCriterion: sort,
		    searchTitle: titleFlag,
		    searchTags: tagsFlag,
		    searchDescription: descriptionFlag,
		    searchCreators: creatorsFlag
	    },
		success: function( data, textStatus, jqXHR ) {
			// do nothing
		},
		error: function( jqXHR, textStatus, errorThrown ) {
			// do nothing
		}
	});
}


