function bookOrder() {

lp=0;
lpcost=0;
lptotal=0;

fp=0;
fpcost=0;
fptotal=0;

taxrate=.06875;
tax=0;
shipping=0;
enclosed=0;

// from the form
lp=parseInt(document.order.lp.value);
fp=parseInt(document.order.fp.value);

if (lp>0) {
if (lp == 1)      lpcost=23.95;
else if (lp < 6)  lpcost=22.95;
else if (lp < 16) lpcost=21.95;
else if (lp > 15) lpcost=19.95;
else			   lpcost=23.95;

lptotal = lpcost * lp;
}


if (fp>0) {
if (fp == 1)      fpcost=24.95;
else if (fp < 6)  fpcost=23.95;
else if (fp < 16) fpcost=22.95;
else if (fp > 15) fpcost=21.95;
else			   fpcost=21.95;

fptotal = fpcost * fp;
}

if ( isNaN(lp+fp) ) {} // do nothing;
else {
tax=(parseFloat(lptotal)+parseFloat(fptotal))*taxrate;
shipping= 4.25 + 1.5*(parseInt(fp) + parseInt(lp) - 1);
enclosed = lptotal + fptotal + tax + shipping;

// update form
document.order.lptotal.value  = lptotal.toFixed(2);
document.order.fptotal.value  = fptotal.toFixed(2);
document.order.tax.value      = tax.toFixed(2);
document.order.shipping.value = shipping.toFixed(2);
document.order.enclosed.value = enclosed.toFixed(2);
}
}

function specialDiscount() {
document.order.lp.value  = 1;
document.order.fp.value  = 1;
document.order.lptotal.value  = "25.00";
document.order.fptotal.value  = "25.00";
document.order.tax.value      = "0.00";
document.order.shipping.value = "0.00";
document.order.enclosed.value = "50.00";
}


function noErr() {
return true;
}
window.onerror=noErr;
