function tiaozhuan(id){
	document.gold_buy.action = "gold-SpainBuyinfo-" + id + ".html";
	document.gold_buy.submit();
}
function changePrice(num,price,sign,rate){
	var total = ForDight(num*price/rate,2);
	document.getElementById("ajax").innerHTML = sign + total;
}

//四舍五入函数
function  ForDight(Dight,How)     
{     
   Dight  =  Math.round  (Dight*Math.pow(10,How))/Math.pow(10,How);     
   return  Dight;     
} 
