function reset (form)
{
}

function nonan(num) 
{
amount = num;
if (isNaN(amount))
return 0;
else
return amount;
}

function fmtprice(value)
{
result=""+Math.floor(value)+".";
var cents=100*(value-Math.floor(value))+0.5;
result += Math.floor(cents/10);
result += Math.floor(cents%10);
return result;
}

function calc(form)
{
	
//start
if (form.air_intake_cowl.checked)

{
form.air_intake_cowlVal.value="$109.00"
form.air_intake_cowlV.value="$109.00"
price01=109
ship01=10
}
else
{
form.air_intake_cowlVal.value="$0.00"
form.air_intake_cowlV.value="$0.00"
price01=0
ship01=0
}
//end

//start
if (form.air_box_elliptical.checked)
{
form.air_box_ellipticalVal.value="$60.00"
form.air_box_ellipticalV.value="$60.00"
price02=60
ship02=5
}
else
{
form.air_box_ellipticalVal.value="$0.00"
form.air_box_ellipticalV.value="$0.00"
price02=0
ship02=0
}

//end

//start

if (form.stock_afe_filter.checked)
{
form.stock_afe_filterVal.value="$85.00"
form.stock_afe_filterV.value="$85.00"
price03=85
ship03=5
}
else
{
form.stock_afe_filterVal.value="$0.00"
form.stock_afe_filterV.value="$0.00"
price03=0
ship03=0
}
//end

//start

if (form.afe_restore.checked)
{
form.afe_restoreVal.value="$10.00"
form.afe_restoreV.value="$10.00"
price04=10
ship04=0
}
else
{
form.afe_restoreVal.value="$0.00"
form.afe_restoreV.value="$0.00"
price04=0
ship04=0
}
//end

//start

if (form.cool_hose.checked)
{
form.cool_hoseVal.value="Not Available"
form.cool_hoseV.value="Not Available"
price05=0
ship05=0
}
else
{
form.cool_hoseVal.value="$0.00"
form.cool_hoseV.value="$0.00"
price05=0
ship05=0
}
//end

//start

if (form.air_intake_03_04_wfog.checked)
{
form.air_intake_03_04_wfogVal.value="$139.00"
form.air_intake_03_04_wfogV.value="$139.00"
price06=139
ship06=10
}
else
{
form.air_intake_03_04_wfogVal.value="$0.00"
form.air_intake_03_04_wfogV.value="$0.00"
price06=0
ship06=0
}
//end

//start

if (form.air_intake_03_04.checked)
{
form.air_intake_03_04Val.value="$129.00"
form.air_intake_03_04V.value="$129.00"
price07=129
ship07=10
}
else
{
form.air_intake_03_04Val.value="$0.00"
form.air_intake_03_04V.value="$0.00"
price07=0
ship07=0
}
//end

//start

if (form.air_intake_04_5.checked)
{
form.air_intake_04_5Val.value="$99.00"
form.air_intake_04_5V.value="$99.00"
price08=99
ship08=10
}
else
{
form.air_intake_04_5Val.value="$0.00"
form.air_intake_04_5V.value="$0.00"
price08=0
ship08=0
}
//end

//start

if (form.air_intake_07_5.checked)
{
form.air_intake_07_5Val.value="$109.00"
form.air_intake_07_5V.value="$109.00"
price09=109
ship09=10
}
else
{
form.air_intake_07_5Val.value="$0.00"
form.air_intake_07_5V.value="$0.00"
price09=0
ship09=0
}
//end

//start

if (form.flange_adapter.checked)
{
form.flange_adapterVal.value="$60.00"
form.flange_adapterV.value="$60.00"
price10=60
ship10=5
}
else
{
form.flange_adapterVal.value="$0.00"
form.flange_adapterV.value="$0.00"
price10=0
ship10=0
}
//end

//start

if (form.afe_filter_3rd.checked)
{
form.afe_filter_3rdVal.value="$85.00"
form.afe_filter_3rdV.value="$85.00"
price11=85
ship11=10
}
else
{
form.afe_filter_3rdVal.value="$0.00"
form.afe_filter_3rdV.value="$0.00"
price11=0
ship11=0
}
//end

//start

if (form.restore_3rd.checked)
{
form.restore_3rdVal.value="$10.00"
form.restore_3rdV.value="$10.00"
price12=10
ship12=0
}
else
{
form.restore_3rdVal.value="$0.00"
form.restore_3rdV.value="$0.00"
price12=0
ship12=0
}
//end

//start

if (form.cool_hose_3rd.checked)
{
form.cool_hose_3rdVal.value="$139.00"
form.cool_hose_3rdV.value="$139.00"
price13=139
ship13=10
}
else
{
form.cool_hose_3rdVal.value="$0.00"
form.cool_hose_3rdV.value="$0.00"
price13=0
ship13=0
}
//end

//start

if (form.cool_hose_3rd_07_5.checked)
{
form.cool_hose_3rd_07_5Val.value="$179.00"
form.cool_hose_3rd_07_5V.value="$179.00"
price14=179
ship14=10
}
else
{
form.cool_hose_3rd_07_5Val.value="$0.00"
form.cool_hose_3rd_07_5V.value="$0.00"
price14=0
ship14=0
}
//end



SubTot=price01+price02+price03+price04+price05+price06+price07+price08+price09+price10+price11+price12+price13+price14
form.SubTotal.value="$"+fmtprice(SubTot)
form.SubTotalV.value="$"+fmtprice(SubTot)
Shipping=ship01+ship02+ship03+ship04+ship05+ship06+ship07+ship08+ship09+ship10+ship11+ship12+ship13+ship14
form.ShippingAmt.value="$"+fmtprice(Shipping)
form.ShippingAmtV.value="$"+fmtprice(Shipping)
GrandTot=SubTot+Shipping
form.GrandTotal.value="$"+fmtprice(GrandTot)
form.GrandTotalV.value="$"+fmtprice(GrandTot)

}

