function tiaozhuan(id){
	document.items_buy.action = "items-SpainBuyinfo-" + id + ".html";
	document.items_buy.submit();
}

function changePrice(num,price,id){
	var total = ForDight(num*price,2);
	var ajax = "ajax" + id;
	document.getElementById(ajax).innerText = "$" + total;
}

//四舍五入函数
function  ForDight(Dight,How)     
{     
   Dight  =  Math.round  (Dight*Math.pow(10,How))/Math.pow(10,How);     
   return  Dight;     
} 
