<!--
/* Copyright 2006 [di] digitale informationssysteme gmbh, Mannheim, www.digi-info.de
*
* AUTHOR:
* goma - Gordon Marshall - marshall(at)digi-info(dot)de
*
* CHANGELOG:
*
* who:              when:               what:
*
* goma        2006-08-08        erstellt fuer Brockhaus Enzyklopaedie
*
*/


// Popups

// generell
function popup(url,winname, args) {
    var win = null;
    win = window.open(url,winname, args)
    if(win.window.focus) win.window.focus();
}




// Popup AGBs
function agb() {
var win = null;
  win = window.open("http://www.bifab.de/service/agb.html","","width=570,height=580,menubar=no,toolbar=no,location=no,scrollbars=yes");
  if(win.window.focus){win.window.focus();}
}


// Popup Newsletter
function newsletter() {
var win = null;
  win = window.open("../newsletter/letter_aktuell_print.php","","width=570,height=580,menubar=no,toolbar=no,location=no,scrollbars=yes");
  if(win.window.focus){win.window.focus();}
}

// Popup Bestellungstext
function bestellinfos() {
var win = null;
  win = window.open("../konto/bestaetigung_drucken.php","","width=570,height=580,menubar=no,toolbar=no,location=no,scrollbars=yes");
  if(win.window.focus){win.window.focus();}
}


// Popup Kreditkarte Kostenpr�fnr.
function kostenpruefnr() {
var win = null;
  win = window.open("../konto/kreditkarten_ansicht.php","","width=350,height=250,menubar=no,toolbar=no,location=no");
  if(win.window.focus){win.window.focus();}
}




// Produktwahl: radios on/off
function setBtns(x) {
    if(x==1) {
    document.produktwahl.produkt[0].checked=false;
    document.produktwahl.produkt[1].checked=false;
    document.produktwahl.produkt[2].checked=false;
    }
    if(x==0) document.produktwahl.bezahlmodell.checked=false;

}



// suche
function dosearch() {

    var formular = document.combisearch;
    var bereich = formular.suchbereich.options[formular.suchbereich.selectedIndex].value;

    var site = "http://www.duden.de";

    switch (bereich)
    {
        case "mixed": {
            formular.action = site + "/suche/index.php";
            break;
        }
        case "produkte": {
            formular.action = site + "/produkte/index.php";
            break;
        }
        case "paetec": {
            document.paetecsearch.elements[0].value = formular.suchwort.value;
            formular = document.paetecsearch;
            break;
        }
        case "dls": {
            formular.action = site + "/produkte/suche_downloadshop.php";
            break;
        }
        case "dudensuche": {
            document.dudensuche.elements[0].value = formular.suchwort.value;
            formular = document.dudensuche;
            break;
        }
        case "website": {
            document.websitesearch.elements[2].value = formular.suchwort.value;
            formular = document.websitesearch;
            break;
        }
        case "presseneu": {
            formular.pneu.value= "1";
            formular.action = site + "/presse/suche.php";
            break;
        }
        case "presse": {
            formular.action = site + "/presse/suche.php";
            break;
        }
        case "nlarchiv": {
            formular.action = site + "/deutsche_sprache/sprachberatung/newsletter/archiv_suche.php";
            break;
        }
    }
    formular.submit();
}


// Anti-Spam
function diAntiSpam(user, nachat, subj, textlink) {
    document.write ('<a href="mailto:' + user + '@' + nachat);
    if (subj != "") {
        document.write ('?subject=' + subj);
    }
    if (textlink != ""){
        document.write ('">'+ textlink + '</a>');
    }
    else {
        document.write ('">'+ user + '@' + nachat + '</a>');
    }
}


// Firefox Plugin installieren
function addEngine(name,ext,cat)
{
  if ((typeof window.sidebar == "object") && (typeof
  window.sidebar.addSearchEngine == "function"))
  {
    //cat="Web";
    //cat=prompt("In welcher Kategorie soll die Seitenleiste installiert werden?","Web")
    window.sidebar.addSearchEngine(
      "http://www.duden.de/duden-suche/downloads/" + name + ".src",
      "http://www.duden.de/duden-suche/downloads/" + name + ".gif",
      name,
      cat );
  }
  else
  {
    errorMsg(name,ext,cat);
  }
}

//-->