/** * Sammlung von Minifunktionen für den Admin-Bereich * * clearField: löscht voreingestellten Eintrag eines Textfeldes bei onClick * @param Formname: Formularname * @param Fieldname: Feldname * @param Fieldvalue: Feldinhalt * * drucken: Seite/Frame ausdrucken * * check: Bestätigung vor Löschoperation * @param ziel: Adresse für Löschoperation bei O.K. * * Go: Seitenaufruf per select-field * @param x: Ziel-URL * * ---------- * @author unknown, compilation by MB * @copyright Copyright by medienPARK 2006 * @version 11.05.2006 **/ function clearField( Formname, Fieldname, Fieldvalue) { if ( document.forms[Formname].elements[Fieldname].value == Fieldvalue ) document.forms[Formname].elements[Fieldname].value = ''; } function markall() { j=document.forms[0].elements.length; for(var i = 0; i <= j; i++) document.forms[0].elements[i].checked=true; } function Go(x) { if(x == "void") { document.forms[0].reset(); document.forms[0].elements[0].blur(); return; } else { this.location.href = x; document.forms[0].reset(); document.forms[0].elements[0].blur(); } } function drucken () { this.window.print(); } function check (ziel) { Checkit = confirm("Wollen Sie diesen Eintrag wirklich löschen?"); if(Checkit == false) { this.location.href="#"; } else { this.location.href=ziel; } } function pop_xxl(a,w,h,k) { $term1="/content/pop_xxl.php?artikelnummer="+a+"&w="+w+"&h="+h+"&ordner="+k; $term2="width=" + w + ",height="+h+",screenX=90,screenY=90,menubar=no,scrollbars=no,toolbar=0,dependent=yes"; zoomansicht = window.open($term1,"XXL",$term2); } function pop_logo(a,w,h,k) { $term1="/content/pop_logo.php?bilddatei="+a+"&w="+w+"&h="+h+"&ordner="+k; $term2="width=" + w + ",height="+h+",screenX=190,screenY=120,menubar=no,scrollbars=no,toolbar=0,dependent=yes"; zoomansicht = window.open($term1,"Logo",$term2); } function pop_prospekt(a,w,h,k,s) { $term1="/content/pop_prospekt.php?titel="+a+"&w="+w+"&h="+h+"&bilddatei="+k+"&seite="+s; $term2="width=" + w + ",height="+h+",screenX=90,screenY=90,menubar=no,scrollbars=no,toolbar=0,dependent=yes"; zoomansicht = window.open($term1,"XXL",$term2); } function pop_versandkosten(a) { $term1="/content/pop_versandkosten.php?produkte_id="+a; $term2="width=300,height=280,screenX=120,screenY=120,menubar=no,scrollbars=no,toolbar=0,dependent=yes"; zoomansicht = window.open($term1,"Versand",$term2); } function pop_hilfe(a) { $term1="/sofort-wohnen/pop_hilfe.php?welchedenn="+a; $term2="width=500,height=480,screenX=120,screenY=120,menubar=no,scrollbars=yes,toolbar=0,dependent=yes"; zoomansicht = window.open($term1,"Hilfe",$term2); } function pop_bezahlen() { $term1="/content/pop_bezahlen.php"; $term2="width=806,height=800,screenX=20,screenY=20,menubar=no,scrollbars=no,toolbar=0,dependent=yes"; bezahlansicht = window.open($term1,"Bezahloptionen",$term2); } function pop_empfehlung(a) { $term1="/content/pop_empfehlung.php?produkte_id="+a; $term2="width=500,height=480,screenX=120,screenY=120,menubar=no,scrollbars=yes,toolbar=0,dependent=yes"; zoomansicht = window.open($term1,"Versand",$term2); } function adclose(welche) { if(document.getElementById) document.getElementById(welche).style.visibility = "hidden"; } /*Navi-Layers navilayerdef:*/ navil= new Array(); navil[0]="navi_standorte"; navil[1]="navi_service"; //navil[2]="navi_prospekte"; function MM_findObj(n, d) { if (!d) { d = document; } if ( ( p = n.indexOf("?") ) > 0 && parent.frames.length ) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if ( ! ( x = d[n]) && d.all ) { x=d.all[n]; } if ( !x && d.getElementById ) { x=d.getElementById( n ); } for ( var i = 0; !x && i < d.forms.length; i++) { x=d.forms[i][n]; } for( var i = 0; !x && d.layers && i < d.layers.length; i++) { x=MM_findObj(n,d.layers[i].document); } return x; } function showLayers(obj) { //v3.5 if ((objloc=MM_findObj(obj))!=null) { if (objloc.style) { objloc=objloc.style; } objloc.visibility="visible"; //set this object visible objloc.display="inline"; for (i=0; i