// ------------------------------------------------------------------------------------------------ // ------------------------------------------------------------- Javascript ----------------------- // ------------------------------------------------------------------------------------------------ // -- Funktionen für Userverwalten ---------------- function selectAll() { with (document.forms[0]) { for (i = 0; i < elements.length; i++) if (elements[i].name.substring(0, 4) == 'xPLZ') elements[i].checked = true; } } function deselectAll() { with (document.forms[0]) { for (i = 0; i < elements.length; i++) if (elements[i].name.substring(0, 4) == 'xPLZ') elements[i].checked = false; } } // --------------------------------------- // -- Stylesheet wechseln ---------------- function setActiveStyleSheet(title) { // --------------------------------------- var i, a, main; for(i=0; (a = document.getElementsByTagName("link")[i]); i++) { if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) { a.disabled = true; if(a.getAttribute("title") == title) a.disabled = false; } } } // -------------------------------------------------- // -- User/Passwort vergessen - Mail senden --------- // -------------------------------------------------- function UserPass_beenden(User){ alert ("Die User/Passwort-Informationen sind an die EMail-Adresse vom Kinderkram-User "+ User +" verschickt."); window.back(); } // -------------------------------------------------- function nurEineKategorie(Kategorie){ // -------------------------------------------------- document.Kleinanz.eingestellt.selectedIndex=Kategorie+1; document.Kleinanz.vonUser.selectedIndex=0; document.Kleinanz.submit(); } // -------------------------------------------------- function nurEinAnbieter(Id){ // -------------------------------------------------- document.Kleinanz.eingestellt.selectedIndex=0; document.Kleinanz.vonUser.selectedIndex=Id; document.Kleinanz.submit(); } // -------------------------------------------------- function alleArtikel(){ // -------------------------------------------------- document.Kleinanz.Suchtext.value =''; document.Kleinanz.eingestellt.selectedIndex = 0; document.Kleinanz.Sortierung.selectedIndex = 0; document.Kleinanz.selectPLZ.selectedIndex = 0; document.Kleinanz.selectApS.selectedIndex = 0; document.Kleinanz.vonUser.selectedIndex = 0; document.Kleinanz.Geschlecht.selectedIndex = 0; document.Kleinanz.GroesseHidden.value = 0; document.Kleinanz.UKategorieHidden.value = 0; document.Kleinanz.aktSeite.value = 1; document.Kleinanz.submit(); } // ----- Anbieter-Karte mit GoogleMaps anzeigen ----- function PLZGoogleMaps(address, text){ // -------------------------------------------------- WinMap = window.open ("./ShowMap.php?add="+address+"&id="+text, "ShowMap", "width=620, height=650, menubar=no, resizable=yes, scrollbars=yes"); WinMap.focus(); }