//Statuszeile beschreiben function setStatus(val) { window.status=val; return true; } //Statuszeile leeren function clearStatus() { window.status=''; return true; } //Hilfsfunktion für popup() und filledPopup() function getParmArray(w,h,params,center) { Parms = new Array(); if (w>=0) Parms.push("width="+w); if (h>=0) Parms.push("height="+h); if (center && w>=0) { var t=(screen.height)?(screen.height-h)/2:100; Parms.push("top="+t); } if (center && h>=0) { var l=(screen.width)?(screen.width-w)/2:100; Parms.push("left="+l); } if (params) { Parms.push(params); } else { Parms.push("toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no"); } return Parms; } //normales Popup function popup(obj,name,w,h,params,center) { var url = (obj.getAttribute) ? obj.getAttribute('href') : obj.href; if (!url) return true; var Parms = getParmArray(w,h,params,center); var win = window.open(url,name,Parms.join(",")); win.focus(); return (win) ? false : true; } //Popup, das keine Url erhält, sondern per Javascript gefüllt wird function filledPopup(body,name,w,h,params,center) { var Parms = getParmArray(w,h,params,center); var popup=window.open("",name,Parms.join(",")); popup.document.write(body); popup.focus(); } //verhindert im IE den gepünktelten Rand beim Anklicken eines Links //Einbinden im a-Tag: onFocus="noBorder(this);" function noBorder(object) { if(document.all) object.blur(); } //scrollt zu einer x/y-Koordinate im aktuellen Fenster function scrollToXY(x,y) { if (this.scrollTo) this.scrollTo(x,y); } //blendet eine Tabellenzeile ein oder aus function toggleRow(id) { if (document.getElementById) { var elem = eval("document.getElementById('produktsucheergebnisInfo"+id+"')"); if (elem.style.display == 'none' || elem.style.display == '') { if (document.all) { elem.style.display = 'block'; } else { elem.style.display = 'table-row'; } } else { elem.style.display = 'none'; } } }