Help needed to shorten some jacascript code

Printable View