var FileCallAggCarrello = "/Carrello/AJAX_Carrello.asp"
function AggiornaCarrello(ContenutoNCARR)
{

	 $.ajax({

			   type: "POST",
			   data : { 
						ActionType:'C' ,
						Contenuto:ContenutoNCARR                  
					  },
			   url: FileCallAggCarrello,
			   success: function(ritorno)
			   {   	
			  	 	
				  	$("#ResultCarrello").html(ritorno);

			   },
			   
			   error: function()
				{
				 alert("errore"); 
				}

				}); 
	 
				$(document).ready(function() { $("#LoadCarrello").show(); $("#ResultCarrello").hide();});	 
				
			   	$("#LoadCarrello").ajaxStart(function () { $("#LoadCarrello").show(); }).ajaxStop( function () { $("#LoadCarrello").hide();});
			   
			   	$("#ResultCarrello").ajaxStart(function () { $("#ResultCarrello").hide(); }).ajaxStop( function () { $("#ResultCarrello").show();});
				
}



var FileCallInsCarrello = "/Carrello/AJAX_INS_Carrello.asp"

function CompilaCarrello(ContenutoN,ContenutoL)
{
	
elemento = document.getElementById(ContenutoN),
elementoL = document.getElementById(ContenutoL),

	 $.ajax({

			   type: "POST",
			   data : { 
						ActionType:'C' ,
						Contenuto:ContenutoN                  
					  },
			   url: FileCallInsCarrello,
			   success: function(ritorno)
			   {   
				   $(elemento).html(ritorno);
			   },
			   
			   error: function()
				{
				 alert("errore"); 
				}

				}); 
				
				$(document).ready(function() { $(elementoL).show(); });				
				
			   	$(elementoL).ajaxStart(function () { $(elementoL).show(); }).ajaxStop( function () { $(elementoL).hide();});
			   
			   	$(elemento).ajaxStart(function () { $(elemento).hide(); }).ajaxStop( function () { $(elemento).show();});
				
}

function chiudi(codice)
{
elemento2 = document.getElementById(codice);
elemento2.style.display = "none";
}


var FileCallMisure = "/Prodotti/AJAX_Misure.asp"

function CompilaMisure(ContenutoN,ContenutoL)
{
	
var  strMisure;
var  strMisureLoad;

strMisure		= "Misure" + ContenutoN
strMisureLoad	= "Misure" + ContenutoL

elemento = document.getElementById(strMisure),
elementoL = document.getElementById(strMisureLoad),

	 $.ajax({

			   type: "POST",
			   data : { 
						ActionType:'C' ,
						Contenuto:ContenutoN                  
					  },
			   url: FileCallMisure,
			   success: function(ritorno)
			   {   
				   $(elemento).html(ritorno);
			   },
			   
			   error: function()
				{
				 alert("errore"); 
				}

				}); 
				
				$(document).ready(function() { $(elementoL).show(); });				
				
			   	$(elementoL).ajaxStart(function () { $(elementoL).show(); }).ajaxStop( function () { $(elementoL).hide();});
			   
			   	$(elemento).ajaxStart(function () { $(elemento).hide(); }).ajaxStop( function () { $(elemento).show();});
				
}

function chiudi(codice)
{
elemento2 = document.getElementById(codice);
elemento2.style.display = "none";
}
