/*function accountActivate() {
	$('#acc2_activate').click(function(){
	curtrs=$('#activate table tbody tr').clone().filter(
		function(index) {
		return $('input', this)[0].checked == true;
		}).each(function(){
		$('td.inp', this).remove();
		$('td.status', this).remove();	
		if($('td.owner', this).text() != '') {
			alert('ok !');
			$('#dialog .asup').remove();
			$('#dialog table.active').remove();
			$('#dialog div.center').remove();
			$('#dialog .pasup').append('<strong>Aucune carte à activée.</strong>');
		};
		});
	$('#dialog_activate tbody tr').remove();
	$('#dialog_activate tbody').prepend(curtrs);
	});
}*/

/*function accountActivate() {
                        $('#acc2_activate').click(function(){
                                cardsChecked = $('#CartesEnAttente table tbody tr td.inp input:checkbox:checked');
                                if (cardsChecked.length > 0) {
                                        curtrs=$('#CartesEnAttente table tbody tr').clone().filter(
                                                function(index) {
                                                return $('input', this)[0].checked == true;
                                                }).each(function(){
                                                $('td.inp', this).remove();
                                                $('td.status', this).remove();
                                                });
                                        $('#dialog_activate tbody tr').remove();
										$('#phrase1').css('display','');
                                        $('#dialog_activate tbody').prepend(curtrs);
                                        $('#dialog_activate').css('display','');
                                        $('#no_card').css('display','none');
                                } else {
                                        $('#dialog_activate').css('display','none');
										$('#phrase1').css('display','none');
										$('#no_card').css('display','');
                                }
                        });
}*/

function accountActivate() {
                        $('#acc2_activate').click(function(){
                                cardsChecked = $('#CartesEnAttente table tbody tr td.inp input:checkbox:checked');
                                if (cardsChecked.length > 0) {
                                        curtrs=$('#CartesEnAttente table tbody tr').clone().each(function(){
                                                $('td.inp', this).remove();
                                                $('td.status', this).remove();
                                                });
                                        $('#dialog_activate tbody tr').remove();
										$('#phrase1').css('display','');
                                        $('#dialog_activate tbody').prepend(curtrs);
                                        $('#dialog_activate').css('display','');
                                        $('#no_card').css('display','none');
                                } else {
                                        $('#dialog_activate').css('display','none');
										$('#phrase1').css('display','none');
										$('#no_card').css('display','');
                                }
                        });
}


