function preview(headline, text) {
    // Ersetzen von newline, damit bei der URL-Übergabe die Zeilenumbrüche nicht abhanden kommen.
    text = text.replace(/\n/g, "<br />");
    text = text.replace("#", "<Raute>");

    f = window.open("includes/preview.php?hl=headline&text="+text, "Vorschau", "width=740, height=630, scrollbars=yes, status=yes, left=50, top=50");
}

function gbPreview(text) {
    // Ersetzen von newline, damit bei der URL-Übergabe die Zeilenumbrüche nicht abhanden kommen.
    text = text.replace(/\n/g, "<br />");
    text = text.replace("#", "<Raute>");

    f = window.open("includes/preview.php?text="+text, "Vorschau", "width=700, height=360, scrollbars=yes, status=yes, left=100, top=100");
}

function showBBInfo() {
    f = window.open("includes/bbcode.info.php", "CodeInfo", "width=775, height=580, scrollbars=yes, status=yes, left=50, top=50");
}

function showPic(picID) {
    f = window.open("includes/picPrev.php?id="+picID, "Bilder", "width=660, height=650, scrollbars=yes, status=yes, left=50, top=50");
}

