function inputon(theid) { if (document.getElementById) { theinput = document.getElementById(theid); theinput.style.borderColor = "#000000"; theinput.style.color = "#000000"; } } function inputoff(theid) { if (document.getElementById) { theinput = document.getElementById(theid); theinput.style.borderColor = "#8F999B"; theinput.style.color = "#53B3E2"; } } function setangebot(nummer, text) { var the_form = document.getElementById('contact_form'); the_form.message.value = the_form.message.value + "Anfrage zu Angebot Nr.: "+nummer+"\nTitel: "+text+"\n"; } function toggledisplay(id){ if (document.getElementById) { var mydiv = document.getElementById(id); mydiv.style.display = (mydiv.style.display=='block'?'none':'block'); } } function chkAnfrage() { var the_form = document.getElementById('contact_form'); if (the_form.name.value == "") { alert("Bitte geben Sie Ihren Namen an!"); the_form.name.focus(); return false; } if (the_form.from.value.indexOf('@') == -1) { alert("Bitte geben Sie Ihre E-Mailadresse an!"); the_form.from.focus(); return false; } if (the_form.required.value == "") { alert("Bitte geben Sie Ihre Telefonnummer an!"); the_form.required.focus(); return false; } if (the_form.message.value == "") { alert("Sie haben keine Mitteilung eingegeben!"); dthe_form.message.focus(); return false; } if (the_form.name.value != "") { the_form.required.value = "Tel: " + the_form.required.value; the_form.message.value = "Name: " + the_form.name.value + "\n" + the_form.message.value; } the_form.submit(); } addEvent(window,"load",initDropShadow); function initDropShadow() { if (!document.createElement) return; // Sigh, IE doesn't do getElementsByTagName("*") if (document.all) { var els = document.all; } else { var els = document.getElementsByTagName("*"); } for (i=0; i < els.length;i++) { if ((' '+els[i].className+' ').indexOf(' dropshadow ') != -1) {DS_process(els[i])} } } function DS_process(e) { // Make a duplicate of this element, with all its subelements var nel = e.cloneNode(1); // Set its class to shadowed nel.className = "shadowed"; nel.className += e.className.replace('dropshadow',''); // Add it to the document e.parentNode.insertBefore(nel,e); // strip color from original e.className = "dropshadow"; i++; nel.style.top = (e.offsetTop - 1) + "px"; nel.style.left = (e.offsetLeft - 1) + "px"; } function addEvent(obj, evType, fn) { // adds an eventListener for browsers which support it // Written by Scott Andrew: nice one, Scott if (obj.addEventListener){ obj.addEventListener(evType, fn, true); return true; } else if (obj.attachEvent){ var r = obj.attachEvent("on"+evType, fn); return r; } else { return false; } }