
/* ************************************************************* */   
function DepublieCommentaire(IdCom,Ean)
{
	if(confirm('Voulez-vous réellement dépublier ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_ouvrage.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,EAN:Ean,ACT:2}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESOUVRAGE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */   
function PublieCommentaire(IdCom,Ean)
{
	if(confirm('Voulez-vous réellement publier ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_ouvrage.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,EAN:Ean,ACT:1}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESOUVRAGE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */   
function DetruitCommentaire(IdCom,Ean)
{
	if(confirm('Voulez-vous réellement supprimer ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_ouvrage.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,EAN:Ean,ACT:3}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESOUVRAGE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */   
function DepublieCommentaireSerie(IdCom,CodeS)
{
	if(confirm('Voulez-vous réellement dépublier ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_serie.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,CODES:CodeS,ACT:2}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESSERIE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */   
function PublieCommentaireSerie(IdCom,CodeS)
{
	if(confirm('Voulez-vous réellement publier ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_serie.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,CODES:CodeS,ACT:1}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESSERIE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */   
function DetruitCommentaireSerie(IdCom,CodeS)
{
	if(confirm('Voulez-vous réellement supprimer ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_serie.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,CODES:CodeS,ACT:3}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESSERIE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */   
function DepublieCommentaireMinisite(IdCom,CodeS)
{
	if(confirm('Voulez-vous réellement dépublier ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_minisite.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,CODES:CodeS,ACT:2}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESMINISITE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */   
function PublieCommentaireMinisite(IdCom,CodeS)
{
	if(confirm('Voulez-vous réellement publier ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_minisite.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,CODES:CodeS,ACT:1}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESMINISITE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */   
function DetruitCommentaireMinisite(IdCom,CodeS)
{
	if(confirm('Voulez-vous réellement supprimer ce commentaire ?'))
	{
		$(document).ready(function () 
		{			
			$.ajax({
			  url: "prepare_modifie_commentaire_minisite.php",
			  cache: false,
			  type: "POST",
	      data: ({IDCO:IdCom,CODES:CodeS,ACT:3}),
	      dataType: "text",
			  success: function(uneData){
			    $("#DIVCOMMENTAIRESMINISITE").html(uneData);
			  }
			});
		});
	}
}

/* ************************************************************* */        
