/* Routines in support of the book ordering process */

var totalprice = 0;

/* computes total price of books specified and enters it to  */
function ordercompute () {
	totalprice = (document.orderfm.quantity_1.value * 1495) + (document.orderfm.quantity_2.value * 1995) + (document.orderfm.quantity_3.value * 1495);
	thetext = totalprice.toString();
	document.orderfm.booktotal.value = thetext.substr(0, thetext.length - 2) + '.' + thetext.substr(thetext.length - 2, 2);
}