function calctotdue(form)
{
 var totdue = 0;
 var shipping = 0;
 var subtot = 0;
 var qty = form.qty.value;
 var peach = 0;
 if (qty < 5)
    { peach = 14; shipping = 5;  }
 else
    {
    if (qty < 16)
        { peach = 10; shipping = 9; }
    else
        { peach = 7; shipping = 12; }
    }
 
 form.each.value = peach.toFixed(2);
 subtot = qty * peach;
 form.subtot.value = subtot.toFixed(2);
 totdue = (subtot + shipping);
 form.ship.value = shipping.toFixed(2);
 form.totsale.value = totdue.toFixed(2);

}
