function calculateHeight(element) { var form = element.parentNode.elements; var textcontentholder = element.parentNode.parentNode; var heightPerson = form.item(0).value; if(!isNaN(heightPerson) && heightPerson != "" ){ var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { if (this.readyState == 4 && this.status == 200) { var res = JSON.parse(this.responseText); textcontentholder.innerHTML = res; } }; xhttp.open("GET", "//tested.taanicreations.com/calculateheight.php?h="+heightPerson); xhttp.send(); } } function showEmbed(){ var x = document.getElementById("embedwidget198765"); if (x.style.display === "none") { x.style.display = "block"; } else { x.style.display = "none"; } return false; } function stopFormSubmission(){ return false; } document.writeln('
Hvor højt skal dit skrivebord vaere
');var element = document.createElement("link"); element.setAttribute("rel", "stylesheet"); element.setAttribute("type", "text/css"); element.setAttribute("href", "//tested.taanicreations.com/style.css"); document.getElementsByTagName("head")[0].appendChild(element);