b_opmaak_prompt = "Voer de tekst in die je dikgedrukt wil hebben";
i_opmaak_prompt = "Voer de tekst in die je schuingedrukt wil hebben";
link_text_prompt = "Voer de tekst van de link in. (Optioneel)";
link_url_prompt = "Voer de volledige URL in (voor email voer \"mailto:ik@augb.nl\" in)";
link_img_prompt = "Voer hier de url van de in te voegen foto in";
list_type_prompt = "Wat voor soort lijst wil je? Voer a in voor een alfabetische lijst. Voor 1 in voor een numerieke lijst. Laat het veld leeg om een lijst met bullets te maken.";
list_item_prompt = "Voer een lijst-item in.\n Laat het veld leeg of klik op \"Annuleer\" om de lijst te voltooien.";

function namedlink(form1,thetype) 
{

// inserts named url or email link - [url=mylink]text[/url]
if (thetype == "URL") 
{
linktext = prompt(link_text_prompt,"");
var prompttext;
if (thetype == "URL")
{
prompt_text = link_url_prompt;
prompt_contents = "http://";
}
else
{
prompt_text = link_email_prompt;
prompt_contents = "";
}
linkurl = prompt(prompt_text,prompt_contents);

if ((linkurl != null) && (linkurl != ""))
{
if ((linktext != null) && (linktext != ""))
form1.post.value += "<a href=\""+linkurl+"\">"+linktext+"</a> ";


else
{
form1.post.value += "<a href=\""+linkurl+"\">"+linkurl+"</a> ";
}
}
}

if (thetype == "IMG")
{
linktext = prompt(link_img_prompt,"");
var prompttext;

if ((linktext != null) && (linktext != ""))
{
form1.post.value += "<img src=\""+linktext+"\"> ";
}
}


form1.post.focus();
}


function opmaak(form1,thetype)
{
if (thetype == "B")
{
text = prompt(b_opmaak_prompt,"");
var prompttext;

if ((text != null) && (text != ""))
{
form1.post.value += "<b>"+text+"</b> ";
}
}
if (thetype == "I")
{
text = prompt(i_opmaak_prompt,"");
var prompttext;

if ((text != null) && (text != ""))
{
form1.post.value += "<i>"+text+"</i> ";
}
}

form1.post.focus();
}

function show(id)
{
		document.getElementById(id).style.display="block"
}

function beest(form1,thetype)
{
	form1.post.value += ":"+thetype+": ";
	form1.post.focus();
}

function quote(id)
{
		var tekst;
		tekst = document.getElementById(id).innerHTML;
		form1.post.value += "<blockquote><b>Bericht "+id+"</b><br/>"+tekst+"</blockquote> ";
}
