var tbkey='f275468ccfe959545b0e8462e17dc7dc'; function showTBURL(element_id) { var element = document.getElementById(element_id); element.innerHTML = 'https://ted.nu/pivot/tb.php?tb_id=28&key=' + tbkey; } function showTBURLgen(element_id, tburl_gen) { var element = document.getElementById(element_id); element.innerHTML = tburl_gen; }