JavaScript is so difficult

A post was split to a new topic: Help with Reusable Function