var tbkey='1cb34cd8c86f626668c8db1b1c324b60'; function showTBURL(element_id) { var element = document.getElementById(element_id); element.innerHTML = 'http://pns-server1.selfhost.eu/EPZ/pivot/tb.php?tb_id=49&key=' + tbkey; } function showTBURLgen(element_id, tburl_gen) { var element = document.getElementById(element_id); element.innerHTML = tburl_gen; }