function addEvent(obj, evType, fn) { 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; } } // popup with usability problems function popup(item, width, height, name) { var args = "toolbar=no,scrollbars=yes,resizable=yes,width="+width+",height="+height; window.open(item, name, args); } // returns true if [v] is not defined, false otherwise // IE 5.0 does not support the undefined keyword, // so we cannot do a direct comparison such as v===undefined. function isUndefined(v) { var undef; return v===undef; } var _POPUP_FEATURES = 'toolbar=0, location=0, statusbar=0, menubar=0, scrollbars=1'; var _POPUP_WINSIZE = 'width=400, height=300'; function raw_popup(url, target, width, height, features) { if (isUndefined(features)) { features = _POPUP_FEATURES; } if (isUndefined(width) || isUndefined(height)) { features = features+', '+_POPUP_WINSIZE; } else { features = features+', width='+width+', height='+height; } if (isUndefined(target)) { target = '_blank'; } var theWindow = window.open(url, target, features); theWindow.focus(); return theWindow; } // open new windows from links // Datenschutz function link_popup(src, width, height, features) { return raw_popup(src.getAttribute('href'), src.getAttribute('target') || '_blank', width, height, features); } // open page from link in a popup window function link_opener(src) { opener.location.href = src.getAttribute('href'); opener.focus(); } // check all var checkflag = "false"; function check(field) { if (checkflag == "false") { for (i = 0; i < field.length; i++) { field[i].checked = true;} checkflag = "true"; return "Uncheck all"; } else { for (i = 0; i < field.length; i++) { field[i].checked = false; } checkflag = "false"; return "Check all"; } } // zebra tables function zebraTable() { if (document.getElementsByTagName) { tables = document.getElementsByTagName("table"); for(j=0; j -1) { for (k=0; k