Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
if (account1 == "" || account2 == "" || increm1 == "" || increm2 == "") is a bad way to check the fields. What if the user inputs something other than a number? e.g., an space char?