Help merging javascript

I’v been working for quite some time trying to merge this javascript. I’m new to it, so it ended not working. Please help!

here text code

here php page

I need to do this to work when pressed on Funkcija-startas. And function merging starts where //function bandom() is written…