// JavaScript Document var tmpCount=0; var messung1=screen.height; var messung2=screen.height; function generateWindow(){ var inner_div = 0 - 200 - 25 - 10 - 60 - 2 * 2; document.getElementById("outer_div").style.height = getWindowHeight() + 'px'; document.getElementById("inner_div").style.height = (getWindowHeight() + inner_div) + 'px'; document.getElementById("scroll_div_1").style.height = (getWindowHeight() + inner_div - 2 * 50) + 'px'; } function toggleSB(param){ if (param == 0) document.getElementById("SendButt").disabled = true; if (param == 1) document.getElementById("SendButt").disabled = false; } function getBrowserWidth(){ var result = 0; if (window.outerWidth) {result = window.outerWidth;} else if (document.documentElement && document.documentElement.clientHeight) {result = document.documentElement.offsetWidth;} else if (document.body) {result = document.body.offsetWidth;} return result; } function getBrowserHeight(){ var result = 0; if (window.outerHeight) {result = window.outerHeight;} else if (document.documentElement && document.documentElement.clientHeight) {result = document.documentElement.offsetHeight;} else if (document.body) {result = document.body.offsetHeight;} return result; } function getWindowWidth(){ var result = 0; if (window.innerHeight) {result = window.innerWidth;} else if (document.documentElement && document.documentElement.clientHeight) {result = document.documentElement.clientWidth;} else if (document.body) {result = document.body.clientWidth;} return result; } function getWindowHeight(){ var result = 0; if (window.innerHeight) {result = window.innerHeight;} else if (document.documentElement && document.documentElement.clientHeight) {result = document.documentElement.clientHeight;} else if (document.body) {result = document.body.clientHeight;} return result; } function isZoomed(){ tmpCount++; if(tmpCount == 1) messung1=screen.height; if(tmpCount == 2){ messung2=screen.height; tmpCount=0; } if(messung1 != messung2) generateWindow(); } window.onresize=generateWindow; document.onmousemove=isZoomed; document.onkeydown=isZoomed; document.onkeyup=isZoomed; /** * * function for visualizing hidden e-mails * * @category usability * @author Olaf Hilgendorf * @copyright EiTiCo.de * @version 1.3 * * @param - * @return - * */ function visualize(){ if(document.getElementsByTagName("a").length != 0){ for(var i = 0; i < document.getElementsByTagName("a").length; i++){ if (typeof document.getElementsByTagName("a")[i].firstChild.data == 'undefined') { // nothing(); } else { document.getElementsByTagName("a")[i].firstChild.data = document.getElementsByTagName("a")[i].firstChild.data .replace(/ \[at\] /ig,String.fromCharCode(64)) .replace(/ \[dot\] /ig,String.fromCharCode(46)); } } } } function areCookiesEnabled() { var cook_yes = 'Cookies können gesetzt werden.'; var cook_no = 'Cookies können nicht benutzt werden.'; var cookieEnabled = (navigator.cookieEnabled) ? cook_yes : cook_no; if (typeof navigator.cookieEnabled == "undefined" && !cookieEnabled) { document.cookie="testcookie"; cookieEnabled = (document.cookie.indexOf("testcookie") != -1) ? cook_yes : cook_no; } return (cookieEnabled); } function deleteCookies() { var expiration = new Date(0); document.cookie = 'PHPSESSID =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Firma =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Ansprechpartner =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Strasse =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Ort =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Telefon =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Telefax =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Mail =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Website =""; expires=' + expiration.toGMTString() +';'; document.cookie = 'Message =""; expires=' + expiration.toGMTString() +';'; //alert(document.cookie); window.location.href='/kontakt'; }