1 function enable_order_pkg () {
2 var form = document.OrderPkgForm;
3 var discountnum = form.discountnum;
5 if ( form.pkgpart.selectedIndex > 0 ) {
6 form.submitButton.disabled = false;
8 if ( form.pkgpart.options[form.pkgpart.selectedIndex].getAttribute('data-can_discount') == 1 ) {
9 form.discountnum.disabled = false;
11 form.discountnum.disabled = true;
15 form.submitButton.disabled = true;
16 if ( discountnum ) { form.discountnum.disabled = true; }
20 function standardize_new_location() {
21 var form = document.OrderPkgForm;
22 var loc = form.locationnum;
23 if (loc.type == 'select-one' && loc.options[loc.selectedIndex].value == -1){
24 standardize_locations();