var Cars = new function() {

    this.init = function() {
        if ($("div.usedCarsContainer").length > 0) {
            //Cars.getUsedCarsList();
        }
    };

    this.getUsedCarsList = function() {
        var responseDiv = $("div.usedCarsContainer");

		$.ajax({
			type: "GET",
			url: "/ajax.php?mode=requestUsedCarsList",
			cache: false,
			beforeSend: function() {
                $("form.reparationStatus div.loading").show();
			},
			success: function(response) {
                $("form.reparationStatus div.loading").hide();
                responseDiv.html(response);
			}
		});

        return false;
    };
};
