1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
|
function dopergament(theForm,theType) {
var selected = getSelectedText(theForm);
var linkText = prompt("Was für ein Pergament möchten Sie? Geben sie '1' oder '2' ein",selected);
var prompttext;
if (theType == "pergament") {
prompt_text = link_url_prompt;
prompt_contents = "";
theType2 = "pergament=1";
}
linkURL = prompt("Geben Sie ein Text ein:",prompt_contents);
if ((linkURL != null) && (linkURL != "")) {
var theText = '';
if ((linkText != null) && (linkText != "")) {
theText = "["+theType+"="+linkText+"]"+linkURL+"[/"+theType+"]";
}
else {
theText = "["+theType2+"]"+linkURL+"[/"+theType+"]";
}
addText(theText, "", false, theForm);
}
} |