function bf_form() {
var t=0;
var p=0;
var pr=0;
var q=0;
p=document.getElementById('bf_q1').value; q=q+p*1; pr=65; if (q<12) { pr=75; }
p=p*pr; t=t+p; document.getElementById('bf_s1').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q2').value; q=q+p*1; pr=65; if (q<12) { pr=75; }
p=p*pr; t=t+p; document.getElementById('bf_s2').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q3').value; q=q+p*1; pr=65; if (q<12) { pr=75; }
p=p*pr; t=t+p; document.getElementById('bf_s3').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q4').value; q=q+p*1; pr=99; if (q<12) { pr=120; }
p=p*pr; t=t+p; document.getElementById('bf_s4').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q5').value; q=q+p*1; pr=99; if (q<12) { pr=120; }
p=p*pr; t=t+p; document.getElementById('bf_s5').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q6').value; q=q+p*1; pr=99; if (q<12) { pr=120; }
p=p*pr; t=t+p; document.getElementById('bf_s6').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q7').value; q=q+p*1; pr=199; if (q<6) { pr=225; }
p=p*pr; t=t+p; document.getElementById('bf_s7').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q8').value; q=q+p*1; pr=199; if (q<6) { pr=225; }
p=p*pr; t=t+p; document.getElementById('bf_s8').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q9').value; q=q+p*1; pr=199; if (q<6) { pr=225; }
p=p*pr; t=t+p; document.getElementById('bf_s9').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q11').value; q=q+p*1; pr=65; if (q<12) { pr=75; }
p=p*pr; t=t+p; document.getElementById('bf_s11').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q12').value; q=q+p*1; pr=65; if (q<12) { pr=75; }
p=p*pr; t=t+p; document.getElementById('bf_s12').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q13').value; q=q+p*1; pr=65; if (q<12) { pr=75; }
p=p*pr; t=t+p; document.getElementById('bf_s13').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q14').value; q=q+p*1; pr=99; if (q<12) { pr=120; }
p=p*pr; t=t+p; document.getElementById('bf_s14').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q15').value; q=q+p*1; pr=99; if (q<12) { pr=120; }
p=p*pr; t=t+p; document.getElementById('bf_s15').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q16').value; q=q+p*1; pr=99; if (q<12) { pr=120; }
p=p*pr; t=t+p; document.getElementById('bf_s16').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q17').value; q=q+p*1; pr=199; if (q<6) { pr=225; }
p=p*pr; t=t+p; document.getElementById('bf_s17').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q18').value; q=q+p*1; pr=199; if (q<6) { pr=225; }
p=p*pr; t=t+p; document.getElementById('bf_s18').innerHTML=' '+p.toFixed(2);
p=document.getElementById('bf_q19').value; q=q+p*1; pr=199; if (q<6) { pr=225; }
p=p*pr; t=t+p; document.getElementById('bf_s19').innerHTML=' '+p.toFixed(2);
document.getElementById('bf_tq').innerHTML=' '+q.toFixed(0);
document.getElementById('bf_ts').innerHTML=' '+t.toFixed(2);
}
function bf_formsend() {
var q=document.getElementById('bf_tq').innerHTML;
q=q.substr(6,10); //remove
q=Number(q);
// if (q<12) {
// q=Number(document.getElementById('bf_q3').value)+Number(document.getElementById('bf_q6').value)+Number(document.getElementById('bf_q9').value)+Number(document.getElementById('bf_q13').value)+Number(document.getElementById('bf_q16').value)+Number(document.getElementById('bf_q19').value);
if (q<1) {
alert("minimum quantity not met");
// }else{
// q=12;
}
// }
if (q>0) {
var order_trn2=order_trn; order_trn="";
var order_sum2=order_sum; order_sum="";
order_sum=itoa(251)+itoa(251)+itoa(251);
var bf_d1="
SILVER CHAIN
";
var bf_d2="
YELLOW PLATED SILVER CHAIN";
var bf_d3="
ROSE PLATED SILVER CHAIN";
if (document.getElementById('bf_q1').value>0) { order_trn=order_trn+document.getElementById('bf_q1').value+itoa(250)+"LGG025P25 "+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".25-LG10 W/CHAIN"+bf_d1+itoa(250)+"65.00"+itoa(250); }
if (document.getElementById('bf_q2').value>0) { order_trn=order_trn+document.getElementById('bf_q2').value+itoa(250)+"LGG025P25 "+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".25-LG10 W/CHAIN"+bf_d2+itoa(250)+"65.00"+itoa(250); }
if (document.getElementById('bf_q3').value>0) { order_trn=order_trn+document.getElementById('bf_q3').value+itoa(250)+"LGG025P25 "+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".25-LG10 W/CHAIN"+bf_d3+itoa(250)+"65.00"+itoa(250); }
if (document.getElementById('bf_q4').value>0) { order_trn=order_trn+document.getElementById('bf_q4').value+itoa(250)+"LGG025P50 "+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".50-LG10 W/CHAIN"+bf_d1+itoa(250)+"99.00"+itoa(250); }
if (document.getElementById('bf_q5').value>0) { order_trn=order_trn+document.getElementById('bf_q5').value+itoa(250)+"LGG025P50 "+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".50-LG10 W/CHAIN"+bf_d2+itoa(250)+"99.00"+itoa(250); }
if (document.getElementById('bf_q6').value>0) { order_trn=order_trn+document.getElementById('bf_q6').value+itoa(250)+"LGG025P50 "+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".50-LG10 W/CHAIN"+bf_d3+itoa(250)+"99.00"+itoa(250); }
if (document.getElementById('bf_q7').value>0) { order_trn=order_trn+document.getElementById('bf_q7').value+itoa(250)+"LGG025P100"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+"1.00-LG10 W/CHAIN"+bf_d1+itoa(250)+"199.00"+itoa(250); }
if (document.getElementById('bf_q8').value>0) { order_trn=order_trn+document.getElementById('bf_q8').value+itoa(250)+"LGG025P100"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+"1.00-LG10 W/CHAIN"+bf_d2+itoa(250)+"199.00"+itoa(250); }
if (document.getElementById('bf_q9').value>0) { order_trn=order_trn+document.getElementById('bf_q9').value+itoa(250)+"LGG025P100"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+"1.00-LG10 W/CHAIN"+bf_d3+itoa(250)+"199.00"+itoa(250); }
if (document.getElementById('bf_q11').value>0) { order_trn=order_trn+document.getElementById('bf_q11').value+itoa(250)+"LGG152P/25"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".25-LG10 W/CHAIN"+bf_d1+itoa(250)+"65.00"+itoa(250); }
if (document.getElementById('bf_q12').value>0) { order_trn=order_trn+document.getElementById('bf_q12').value+itoa(250)+"LGG152P/25"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".25-LG10 W/CHAIN"+bf_d2+itoa(250)+"65.00"+itoa(250); }
if (document.getElementById('bf_q13').value>0) { order_trn=order_trn+document.getElementById('bf_q13').value+itoa(250)+"LGG152P/25"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".25-LG10 W/CHAIN"+bf_d3+itoa(250)+"65.00"+itoa(250); }
if (document.getElementById('bf_q14').value>0) { order_trn=order_trn+document.getElementById('bf_q14').value+itoa(250)+"LGG152P/50"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".50-LG10 W/CHAIN"+bf_d1+itoa(250)+"99.00"+itoa(250); }
if (document.getElementById('bf_q15').value>0) { order_trn=order_trn+document.getElementById('bf_q15').value+itoa(250)+"LGG152P/50"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".50-LG10 W/CHAIN"+bf_d2+itoa(250)+"99.00"+itoa(250); }
if (document.getElementById('bf_q16').value>0) { order_trn=order_trn+document.getElementById('bf_q16').value+itoa(250)+"LGG152P/50"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+".50-LG10 W/CHAIN"+bf_d3+itoa(250)+"99.00"+itoa(250); }
if (document.getElementById('bf_q17').value>0) { order_trn=order_trn+document.getElementById('bf_q17').value+itoa(250)+"LGG152P100"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+"1.00-LG10 W/CHAIN"+bf_d1+itoa(250)+"199.00"+itoa(250); }
if (document.getElementById('bf_q18').value>0) { order_trn=order_trn+document.getElementById('bf_q18').value+itoa(250)+"LGG152P100"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+"1.00-LG10 W/CHAIN"+bf_d2+itoa(250)+"199.00"+itoa(250); }
if (document.getElementById('bf_q19').value>0) { order_trn=order_trn+document.getElementById('bf_q19').value+itoa(250)+"LGG152P100"+itoa(250)+"SILVER "+itoa(250)+""+itoa(250)+"1.00-LG10 W/CHAIN"+bf_d3+itoa(250)+"199.00"+itoa(250); }
sendorder();
order_trn=order_trn2;
order_sum=order_sum2;
savecart(order_num+itoa(250)+order_sum+itoa(250)+order_trn);
showcart();
}
}