context: function DoPrompt(action) {    var revisedMessage;    var post = document.getElementById("post");    var currentMessage = post.message.value;    if (action == "url") {        var thisURL = prompt("URL der gewnschten Seite angeben", "http://");        var thisTitle = prompt("Titel der Seite angeben", "Seitentitel");        var urlBBCode = "[URL="+thisURL+"]"+thisTitle+"[/URL]";        revisedMessage = currentMessage+urlBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }    if (action == "email") {        var thisEmail = prompt("gewnschte E-Mail-Adresse angeben", "");        var emailBBCode = "[EMAIL]"+thisEmail+"[/EMAIL]";        revisedMessage = currentMessage+emailBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }    if (action == "bold") {        var thisBold = prompt("den fetten Text angeben", "");        var boldBBCode = "[B]"+thisBold+"[/B]";        revisedMessage = currentMessage+boldBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }        if (action == "italic") {        var thisItal = prompt("den kursiven Text angeben", "");        var italBBCode = "[I]"+thisItal+"[/I]";        revisedMessage = currentMessage+italBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }        if (action == "underline") {        var thisUL = prompt("den unterstrichenenen Text angeben", "");        var ulBBCode = "[u]"+thisUL+"[/u]";        revisedMessage = currentMessage+ulBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }        if (action == "image") {        var thisImage = prompt("URL fr das anzuzeigende Bild angeben", "http://");        var imageBBCode = "[IMG]"+thisImage+"[/IMG]";        revisedMessage = currentMessage+imageBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }        if (action == "quote") {        var quoteBBCode = "[QUOTE]  [/QUOTE]";        revisedMessage = currentMessage+quoteBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }        if (action == "code") {        var codeBBCode = "[CODE]  [/CODE]";        revisedMessage = currentMessage+codeBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }        if (action == "listopen") {        var liststartBBCode = "[LIST]";        revisedMessage = currentMessage+liststartBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }        if (action == "listclose") {        var listendBBCode = "[/LIST]";        revisedMessage = currentMessage+listendBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }        if (action == "listitem") {        var thisItem = prompt("Listen-Eintrag angeben. Bitte beachten, dass Listen geffnet und geschlossen werden mssen", "");        var itemBBCode = "[*]"+thisItem;        revisedMessage = currentMessage+itemBBCode;        post.message.value=revisedMessage;        post.message.focus();        return;    }}
meta: 5124	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5124/1db7b8b4182eb14e99e0d66aab71475e056e6715/forum_javascript.js/buggy/pnForum/pnjavascript/deu/forum_javascript.js