function add_basket(lang)
	{
	badd=document.getElementById('product_id').value;
	bdb=document.getElementById('tobasket_db').value;	
	loadXMLDoc("/pkcore/shop-basket-status.php","id="+badd+"&db="+bdb+"&cmd=add&lang="+lang,"basket_info",17,"");	
	}

function chpay()
	{
	rrx = document.getElementById('paymode').value
	
	loadXMLDoc("/pkcore/shop-ch-paymode.php","id="+rrx,"btemp",17,"");
	}

function del_basket(id,price)
	{
	// bsk_value=bsk_value-price;
	
	// document.getElementById('basket_total_value').innerHTML=bsk_value;
	// post_calc();
	
	// obj=document.getElementById('bsk'+id);
	// obj.parentNode.removeChild(obj);
	loadXMLDoc("/pkcore/shop-basket-delete.php","id="+id,"btemp",17,"");
	}

function basket2(lang)
	{
	loadXMLDoc("/pkcore/shop-basket.php","go_on=x&lang="+lang,"basket_container",15,"");	
	}

function basket3(lang)
	{
	rem=document.getElementById('remark').value;
	loadXMLDoc("/pkcore/shop-basket.php","sendit=x&lang="+lang+"&remark="+rem,"basket_container",15,"");	
	}

function post_calc()
	{
	price=parseFloat(document.getElementById('basket_total_value').innerHTML);
	postprice=0;
	for(i=0;i<tcnt;i++)
		{		
		if(price>=arr_post[i][0]) postprice=arr_post[i][1];
		}
	document.getElementById('basket_post').innerHTML=postprice;
	document.getElementById('basket_total_pay').innerHTML=postprice+price;
	
	}