function outputguestbookpostbox(topic,url,anchora,outputdiv,boxtitel,disclaimer,subt,subsub){
	
	var theoutput="";
	theoutput="-----<br /><div id='postformcontainer'><a name='"+anchora+"'></a>";
	theoutput=theoutput+"<form method='post' action='/config/saveguestbookpost.php' name='postform' id='postform' onsubmit='return chekpostform()'>";
	theoutput=theoutput+"<div id='postformtitle'>"+boxtitel+"</div>";
	theoutput=theoutput+"<input type='hidden' name='topic' id='topic' value='"+topic+"' />";
	theoutput=theoutput+"<input type='hidden' name='sub' id='sub' value='"+subt+"' />";
	theoutput=theoutput+"<input type='hidden' name='subsub' id='subsub' value='"+subsub+"' />";
	theoutput=theoutput+"<input type='hidden' name='url' id='url' value='"+url+"' />";
	theoutput=theoutput+"<label id='namelabel'>naam*</label><br />";			
	theoutput=theoutput+"<input type='text' class='textinput' name='naam' id='naam' size='40' maxlength='255' /><br />";
	theoutput=theoutput+"<label id='emaillabel'>email</label><br />";
	theoutput=theoutput+"<input type='text' class='textinput' name='email' id='email' size='40' maxlength='255' /><br />";
	theoutput=theoutput+"<label id='onderwerplabel'>titel*</label><br />";
	theoutput=theoutput+"<input type='text' class='textinput' name='onderwerp' id='onderwerp' size='40' maxlength='255' /><br />";
	theoutput=theoutput+"<label id='messagelabel'>bericht*</label><br />";
	theoutput=theoutput+"<textarea name='message' id='message' cols='40' rows='9'></textarea><br />";
	theoutput=theoutput+"<input type='submit' class='submitbutton' value='verstuur' /><br />&nbsp;<br />";
	theoutput=theoutput+"<div id='smallprint'>* verplicht veld<br />&nbsp;<br />"+disclaimer+"</div></form></div>";
	var outputdiv=document.getElementById(outputdiv);
	outputdiv.innerHTML="";
	outputdiv.innerHTML=theoutput;
	window.location.href="#"+anchora;
	return false;

}

function outputpostbox(topic,url,anchora,outputdiv,boxtitel,disclaimer,subt,subsub,subsubsub){
	
var theoutput="";
theoutput="-----<br /><div id='postformcontainer'><a name='"+anchora+"'></a>";
theoutput=theoutput+"<form method='post' action='/config/savepost.php' name='postform' id='postform' onsubmit='return chekpostform()'>";
theoutput=theoutput+"<div id='postformtitle'>"+boxtitel+"</div>";
theoutput=theoutput+"<input type='hidden' name='topic' id='topic' value='"+topic+"' />";
theoutput=theoutput+"<input type='hidden' name='sub' id='sub' value='"+subt+"' />";
theoutput=theoutput+"<input type='hidden' name='subsub' id='subsub' value='"+subsub+"' />";
theoutput=theoutput+"<input type='hidden' name='subsubsub' id='subsubsub' value='"+subsubsub+"' />";
theoutput=theoutput+"<input type='hidden' name='url' id='url' value='"+url+"' />";
theoutput=theoutput+"<label id='namelabel'>naam*</label><br />";			
theoutput=theoutput+"<input type='text' class='textinput' name='naam' id='naam' size='45' maxlength='255' /><br />";
theoutput=theoutput+"<label id='emaillabel'>email</label><br />";
theoutput=theoutput+"<input type='text' class='textinput' name='email' id='email' size='45' maxlength='255' /><br />";
theoutput=theoutput+"<label id='onderwerplabel'>onderwerp*</label><br />";
theoutput=theoutput+"<input type='text' class='textinput' name='onderwerp' id='onderwerp' size='45' maxlength='255' /><br />";
theoutput=theoutput+"<label id='messagelabel'>tekst*</label><br />";
theoutput=theoutput+"<textarea name='message' id='message' cols='42' rows='11'></textarea><br />";
theoutput=theoutput+"<input type='submit' class='submitbutton' value='verstuur' /><br /><br />";
theoutput=theoutput+"<div id='smallprint'>* verplicht veld<br /><br />"+disclaimer+"</div></form></div>";
var outputdiv=document.getElementById(outputdiv);
outputdiv.innerHTML="";
outputdiv.innerHTML=theoutput;
window.location.href="#"+anchora;

}




function chekpostform(){
	var naamvalue=document.getElementById("naam").value;
	if(naamvalue==""){
		alert("Geef een naam op aub.");
		return false;
	}
	var onderwerpvalue=document.getElementById("onderwerp").value;
	if(onderwerpvalue==""){
		alert("Geef een titel op aub.");
		return false;
	}
	var messagevalue=document.getElementById("message").value;
	if(messagevalue==""){
		alert("Geef een bericht mee aub.");
		return false;
	}
	return true;
}
