/*$(document).ready(function() 
{		
	$('.btn_del a').click(function() //select the 'Delete' link and catch the 'click'
	{
		var answer = confirm('Opravdu smazat?'); //show confirmation
		if(answer==true) //if ok is pressed
		{
			var id = $(this).attr("rel"); //get the student id from the title attribute of the link
		    $.ajax( //ajax request starting
			{
		       url: url_base + "admin/catalog/delete_product/"+parseInt(id), //send the ajax request to student/delete/$id
               type:"POST",//request is a POST request
		       dataType: "json",//expect json as return
		       success: function(result) //trigger this on success
			   {	
					alert(result);
				   if(true==result) //if deletion was successful
				   {
					  $('.product_teaser:has(.btn_del a[rel ="'+id+'"])').fadeOut('slow'); //take away the deleted record from the table with a nice fade out
				   }
			   }
		    });
		 }
  		return false //return false to prevent the link from working
	}); 
});*/