function setWeight(){ var _wSel='' dw(_wSel) } function setPrice(){ if(getid('cost').value!=='0'&&getid('getweight').value!=='0'){ _weightFee=eval(getid('getweight').value.split('_')[1]); _cost=eval(getid('cost').value) price_ins=(_cost<100)?_cost:Math.round(_cost*(1+eval(_iVal/100))*100)/100; price_costNTD=Math.round(price_ins*_currency); price_Final=price_costNTD+_weightFee _note= '商品總價:USD '+_cost+'.-'+ ((_cost<100)?'':'
保險費率:'+_cost+' X 1.0'+_iVal+' = '+price_ins)+ '
匯率轉換:'+price_ins+' X '+_currency+' = '+price_costNTD+ '
國際運費:'+price_costNTD+' + '+_weightFee+' = '+price_Final+ '
'+ '若上述金額總價超過NTD 3,000.-,
則海關可能課徵關稅,
如果有則依相關單據採實報實銷

'; getid('note').innerHTML=_note; getid('price').innerHTML='NTD '+currency(price_Final)+'.-'; } } function shRates(){ var r_table=''+ '' for(w=0;w< shippingRates.length ;w++){ cl=(w%2)? 'odd':'even'; _wVal=shippingRates[w].split('_'); _wPrevLabel=(w>0)?shippingRates[w-1].split('_')[0]:'0'; _wPrevLabel=((_wPrevLabel.split('.')).length>1)?_wPrevLabel:_wPrevLabel+'.' _wPrevLabel=(_wPrevLabel.length<4)?_leftback(_wPrevLabel+'000',4):_wPrevLabel _wLabel=((_wVal[0].split('.')).length>1)?_wVal[0]:_wVal[0]+'.'; _wLabel=(_wLabel.length<4)?_leftback(_wLabel+'000',4):_wLabel _wFee=_wVal[1]; r_table+=''+ ''; } r_table+='
重量金額
'+ _wPrevLabel+' ~ '+_wLabel+' 公斤NTD '+currency(_wFee)+'
' dw(r_table) }