$(document).ready(function(){

var confirm;

$(".cancel").click(function() {

  confirm = window.confirm('Element wirklich entfernen?');
  
  if (confirm == true) {
  
	  if( $("#auswahl li").size() > 1 ) {
		  $(this).parent().fadeOut("slow", function() {
			// Animation complete.
			$(this).remove();
		  });
	  } else {
		alert("Das letzte Element kann nicht entfernt werden.");
	  }
	  
  }
  
});

});

