Added validation to quantity. Refactored the onclick event when clicking next from quantity. When frontpage loads, call function loadedFrontPage() to set events etc. Do this with the other loads also...