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