
var uncop=0

function Carrito(key,ref,ori,sql,enu,col,tal) {

	//alert(tal+"-"+col)
 
	var xmlhttp;

 
    //alert(key);
	if (window.XMLHttpRequest)
	  {  xmlhttp=new XMLHttpRequest(); }
	else if (window.ActiveXObject) { xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); }
	else { alert("Tu navegador no soporta XMLHTTP!:"+window.XMLHttpRequest); }
	xmlhttp.onreadystatechange=function()
	{
	// en proceso
	if(xmlhttp.readyState!=4)
	{
	  txtHTML="<div style='width:80;height:81px;'><div style='padding:40px 0 0 20px'><img src='images/ajax-loader.gif'></div></div>"
	  document.getElementById("HOME_cabecera_derecha").innerHTML=txtHTML;
	}
	// finalizado 
	if(xmlhttp.readyState==4)
	  {
	  document.getElementById("HOME_cabecera_derecha").innerHTML=xmlhttp.responseText;
	  //if (uncop==0)
	  {
			  //uncop=1;
		  	  setTimeout('muestra_oculta("carroVOLAN")',10000);

	  }

	  }
	}
	xmlhttp.open("GET","kart.asp?item="+ref+"&sql="+sql+"&tal="+tal+"&col="+col+"&rnd="+Math.random(),true);
	xmlhttp.send(null);
	if (ori=="index" && sql=="add")
	{
	window.location.href="#ShowKart"
	}

}



