function printHeute() {
        var date = new Date();
        var d  = date.getDate();
        var day = (d < 10) ? '0' + d : d;
        var m = date.getMonth() + 1;
        var month = (m < 10) ? '0' + m : m;
        var yy = date.getYear();
        var year = (yy < 1000) ? yy + 1900 : yy;

        document.write(day + "." + month + "." + year);
}

function auswahlcmd(cmd, id) {
//        alert("Hallo");
        wselect = window.open("/katalog/select.php?cmd=" + cmd + "&id=" + id, "selectFrame");
//        wselect = window.open("", "mainFrame.selectFrame");
//        wselect.document.write("Hallo");
//        wselect.location.href = "/katalog/select.php?cmd=" + cmd + "&id=" + id;
}

function checkKey() {
//        if (document.layers)
//          Key = e.which;
//  else
//    Key = event.keyCode;
        if (event.keyCode == 13) {
                checkQuickFind();
        }
}

var allowSend = false;
function checkQuickFind() {
        if (findquick.term.value.length > 3) {
                allowSend = true;
                findquick.submit();
        }
        else {
                alert("Der Suchbegriff muß mindestens 4 Zeichen lang sein!");
                findquick.term.select();
                findquick.term.focus();
                allowSend = false;
        }
        allowSend = false;
}

function writePathLinks() {
        thePath = '';
        loc = '' +location.href;
        paths = loc.substring(7).split('/');
        file = loc.substring(0,6);
        for (i=0, n=paths.length;i<n;i++) {
          file += "/" + paths[i];
          thePath += '> <a href="' + file + '">' + paths[i] + '<\/a> ';
        }
        document.write('You are here: ' + thePath.substring(1));
}

function rentHinweis() {
//  alert("Das Bestellverfahren wurde geändert.");
  alert("Das Bestellverfahren wurde geändert.\n" +
    "Die Titel werden jetzt zuerst in einer Bestellliste gesammelt,\n" +
    "die Sie dann nochmal bestätigen müssen,\n" +
    "um die gewählten Titel tatsächlich zu bestellen.\n" +
    "Zum Bestätigen der Bestellliste bitte auf den roten Link 'Bestellliste' klicken!");
}
