<!-- 删除购物车内商品 -->
function vc_cart_remove(cart_id)
{
    if (confirm('你确定将该商品移除购物车？'))
	{
	   X.get( WEB_ROOT + '/team/cart.php?step=cart_remove&del_id='+cart_id );
	   location.href = WEB_ROOT + '/team/cart.php';
	}
}
<!--购物车商品数量改变-->
function cart_quantity_change(i,id){
	var num=parseInt(jQuery('#deal-buy-quantity-input-'+i).attr('value'),10);//输入的商品数量
	var per=parseInt(jQuery('#deal-per-number-'+i).attr('value'),10);        //商品的限买个数
	if(num>per&&per>0){num=per}
	num=isNaN(num)?'':num;jQuery('#deal-buy-quantity-input-'+i).attr('value',num);
	var price=parseFloat(jQuery('#deal-buy-price-'+i).html(),10);            //商品的价格
	X.get( WEB_ROOT + "/cart/changenum.php?proid="+id+"&num=" +num);//更改购物车内商品数量
	price=isNaN(price)?0:price;num=isNaN(num)?0:num;var total=num*price;     //商品的总价
	jQuery('#deal-buy-total-'+i).html(total.toFixed(2));                     <!--显示单个商品的总价-->
    cart_totalprice_change();
}
<!--购物车商品总价改变-->
function cart_totalprice_change(){
    var type_total = parseInt(jQuery('#cart-number-total').attr('value'),10);//得到商品种类的个数
	var price_total=0;  //所有商品的总价格
	var twnum=718;
	var sub_total  =0;  //所有商品的总个数
	for(i=0;i<type_total;i++){
	    price_total += parseFloat(jQuery('#deal-buy-total-'+i).html(),10);
		sub_total   += parseInt(jQuery('#deal-buy-quantity-input-'+i).attr('value'),10);
	}
	price_total = isNaN(price_total) ? 0 : price_total;
	jQuery('#deal-buy-total-money').html(price_total.toFixed(2));       //显示订单总金额
}
<!--购物车快递及运费设置-->
function cart_express_change(e_price){
	var sub_totalmoneys = 0;
	dengyou = e_price;
	sub_totalmoneys = parseFloat(totalmoneys) + parseFloat(e_price);
	jQuery('#deal-buy-total-ff').html(e_price);   //显示运费金额
	jQuery('#deal-buy-total-tf').html(sub_totalmoneys);//添加运费金额
}
function checkshoppingcart(){
				location.href = WEB_ROOT + "/cart/orderinfo.php?" + + Math.random(100);//确认购买
}

	function  clearcart()
	{
    if (confirm('你确定清除已经选入购物车的全部商品？'))
	{
				location.href = WEB_ROOT + "/cart/clearcart.php";//清空购物车内商品

	}
}
	function  oldadress(type0)
	{
		
		divnoShow('bbtboxBody') ; 
		cart_express_change(type0)
	}
	function  newadress(money1)
	{
		
		divShow('bbtboxBody') ; 
		cart_express_change(money1)
	}

