function Fensterhoehe () { if (window.innerHeight) { return window.innerHeight; } else if (document.body && document.body.offsetHeight) { return document.body.offsetHeight; } else { return 0; } } function setFooterPos() { var fh = Fensterhoehe(); var tableH = fh - 50; document.getElementById("footer").style.position = "relative"; document.getElementById("footer").style.top = tableH + "px"; } function show (el, action) { var actStr = "none"; if (document.getElementById) { if(action >= 1) { actStr = "block"; } else { actStr = "none"; } document.getElementById(el).style.display = actStr; } } function checkEmail(email) { var proto = "(mailto:)?"; var usr = "([a-zA-Z0-9][a-zA-Z0-9_.-]*|\"([^\\\\\x80-\xff\015\012\"]|\\\\[^\x80-\xff])+\")"; var domain = "([a-zA-Z0-9][a-zA-Z0-9._-]*\\.)*[a-zA-Z0-9][a-zA-Z0-9._-]*\\.[a-zA-Z]{2,5}"; var regex = "^" + proto + "?" + usr + "\@" + domain + "$"; var rgx = new RegExp(regex); return rgx.exec(email) ? true : false; } function parseEmail(the_form, mail) { var f = document.forms[the_form]; if(!checkEmail(mail)) { alert('Die eingegebene EMail-Adresse ist nicht korrekt!'); f.email.focus(); return false; } else { alert('EMail-Adresse OK...speichern!'); return true; } } function ocw(url, name, width, height, additionalOptions) { if (additionalOptions == null || additionalOptions.length == 0) var options = "width=" + width + ",height=" + height; else var options = "width=" + width + ",height=" + height + "," + additionalOptions; var x = (screen.width / 2) - (width / 2); var y = (screen.height / 2) - (height / 2); var win = window.open(url, name, options); win.moveTo(x, y); win.focus(); }