function getElm(id) { if (document.getElementById) { return document.getElementById(id); } else if (document.all) { return document.all[id]; } return null; } function setElmStyle(id,style,val) { var elm=getElm(id); elm.style[style] = val; } function showFilterStage(stage) { setElmStyle("filterstage"+stage,'display',"table-row"); setElmStyle("fadd"+stage,'display',(stage<5) ? "inline" : "none"); setElmStyle("fremove"+stage,'display','inline'); for (i=0; i0) showFilterStage(stage-1); else { setElmStyle("filterstage","display","inline"); setElmStyle("filterglobal","display","none"); } document.filter['filter[anz]'].value = stage; } function showAndHideElms(idList,showtype) { var i; for (i=0; i=0) { setOpacity(tipElm,tipBlending); tipBlending-=10; if (tipBlending<=0) tipElm.visibility="hidden"; } } else { tipElm.style.pixelLeft = x; tipElm.style.pixelTop = y; } if (tipShowCounter < tipShowDelay) { tipShowCounter++; } else { tipElm.style.visibility = "visible"; } } function moveHelpTip() { var xTo = xMousePos; var yTo = yMousePos; tipX += (xTo-tipX)*0.2; tipY += (yTo-tipY)*0.2; placeHelpTip(); } function setOpacity(obj, opacity) { opacity = (opacity == 100)?99.999:opacity; obj.style.filter = "alpha(opacity:"+opacity+")"; obj.style.KHTMLOpacity = opacity/100; obj.style.MozOpacity = opacity/100; obj.style.opacity = opacity/100; } function showHelpTip(helpId) { if (tipIvId) clearInterval(tipIvId); if (tipElm) tipElm.style.visibility = "hidden"; tipElm = getElm(helpId); if (tipElm) { tipWidth = (document.all) ? tipElm.style.pixelWidth : tipElm.style.offsetWidth; //tipHeight = (document.all) ? tipElm.style.pixelHeight : tipElm.style.offsetHeight; tipIvId = setInterval("moveHelpTip();",30); tipX = xMousePos; tipY = yMousePos; tipBlending = 0; placeHelpTip(); setOpacity(tipElm, 100); } } function hideHelpTip() { tipShowCounter = 0; if (tipElm) { if (document.all) { tipElm.style.visibility = "hidden"; if (tipIvId) clearInterval(tipIvId); } else if (document.getElementById) { tipBlending = 100; } } } // Mouse position var IE = document.all ? true:false if (!IE) { document.captureEvents(Event.MOUSEMOVE) document.captureEvents(Event.MOUSEUP) document.captureEvents(Event.MOUSEDOWN) } document.onmousemove = getMouseXY; document.onmouseup = stopDrag; document.onmousedown = startDrag; var xMousePos = 0 var yMousePos = 0 var xDragOff = 0; var yDragOff = 0; var dragging = false; function startDrag(e) { xDragOff = xMousePos; yDragOff = yMousePos; dragging = true; } function stopDrag(e) { dragging = false; } function getMouseXY(e) { if (IE) { xMousePos = event.clientX + document.body.scrollLeft yMousePos = event.clientY + document.body.scrollTop } else { xMousePos = e.pageX yMousePos = e.pageY } if (xMousePos < 0){xMousePos = 0} if (yMousePos < 0){yMousePos = 0} //window.status = xMousePos+","+yMousePos+" dragging="+dragging; if (dragging) return false; return true } function checkTotal() { var formObj = document.f; for (n in formObj) { if (n.substr(0,3)=="dub") formObj[n].checked = true; } } function checkAll(dubnr) { var toSearch = "dub"+dubnr+"i"; var tsLen = toSearch.length; var obj = document.f; var n; for (n in obj) { if (n.substr(0,tsLen)==toSearch) { obj[n].checked = true; } } }