in the function formvalidator0:


theForm.undefined_quantity.value = theForm.quantity.value