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