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 http://cursed-dragon.eu/test/lenta_2.txt

here php page http://cursed-dragon.eu/test/lenta_2.php

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