//	Load last requests
AvailabilityRequest.getLastRequests = function (callback, errorCallback) {

	$.ajax({
		type: AvailabilityRequest.serviceCallVerb,
		dataType: AvailabilityRequest.serviceCallDataType,
		contentType: AvailabilityRequest.serviceCallContentType,
		url: AvailabilityRequest.baseServiceUrl + "/GetLastRequests",
		success: callback,
		error: errorCallback
	});
};

//	Perform availability request
AvailabilityRequest.doAvailabilityRequest = function (data, callback, errorCallback) {

	$.ajax({
		type: AvailabilityRequest.serviceCallVerb,
		dataType: AvailabilityRequest.serviceCallDataType,
		data: JSON.stringify(data),
		contentType: AvailabilityRequest.serviceCallContentType,
		url: AvailabilityRequest.baseServiceUrl + "/GetAvailability",
		success: callback,
		error: errorCallback
	});
};