In both of these files, shouldn't the email function which is:
function email() {
if (helpstat) {
alert("E-mail Tag Turns an e-mail address into a mailto hyperlink.\n\nUSE #1: someone\@anywhere.com \nUSE #2: [url=\"someone\@anywhere.com\"]link text[/url]");
}
else {
txt2=prompt("Text to be shown for the link. Leave blank if you want the e-mail address to be shown for the link.","");
if (txt2!=null) {
txt=prompt("URL for the link.","mailto:");
if (txt!=null) {
if (txt2=="") {
AddTxt=txt;
AddText(AddTxt);
} else {
AddTxt="[url=\""+txt+"\"]"+txt2+"[/url]";
AddText(AddTxt);
}
}
}
}
}
be this?
function email() {
if (helpstat) {
alert("E-mail Tag Turns an e-mail address into a mailto hyperlink.\n\nUSE #1: someone\@anywhere.com \nUSE #2: [url=\"someone\@anywhere.com\"]link text[/url]");
} else if (basic) {
AddTxt="mailto:";
AddText(AddTxt);
} else {
txt2=prompt("Text to be shown for the link. Leave blank if you want the e-mail address to be shown for the link.","");
if (txt2!=null) {
txt=prompt("URL for the link.","mailto:");
if (txt!=null) {
if (txt2=="") {
AddTxt=txt;
AddText(AddTxt);
} else {
AddTxt="[url=\""+txt+"\"]"+txt2+"[/url]";
AddText(AddTxt);
}
}
}
}
}
Currently when the format mode is "basic" the function still prompts for input. The code that I suggest just writes the mailto:
tag.