function InstaSmilie () {
return;
}
function AddSmile(SmileCode) {
var SmileCode;
var newMessage;
var oldMessage = document.reaction.bericht.value;
newMessage = oldMessage+SmileCode;
document.reaction.bericht.value=newMessage;
document.reaction.bericht.focus();
return;
}

b_help = "Vette tekst: [b]text[/b]";
i_help = "Schuine tekst: [i]text[/i]";
u_help = "Onderstreepte tekst: [u]text[/u]";
a_help = "Hyperlink: [url]http://www.url.nl[/url] of [url=http://www.url.nl]URL tekst[/url]";
p_help = "Invoegen image: [img]http://image_url[/img]";
o_help = "Off Topic: [ot]offtopic[/ot]";
q_help = "Quote text: [quote]text[/quote]";
c_help = "Codehighlight: [code]text[/code] (Vak met regelnummers en colorcoding)";

bbcode = new Array();
bbtags = new Array('[b]','[/b]','[i]','[/i]','[u]','[/u]','[url]','[/url]','[img]','[/img]','[ot]','[/ot]','[quote]','[/quote]');
imageTag = false;

function helpline(help)	{
document.reaction.helpbox.value = eval(help + "_help");
}

function jump(s, location)	
{
parent.window.location=""+s+""+location+"";
}

function banip(ip, user, naam)	{
	if(confirm("Wil je "+naam+" met ip "+ip+" een ban geven?"))	{
		parent.window.location="admin/index.php?p=bannen&a=nieuw&user="+user+"&ip="+ip+"&submit=ja";
	}
}

function resize_image(image_naam){
	
	var image = document.getElementById(image_naam).width;
	if( image > 640 ){
		image = 640;
	}
	
}

/* Thnx to Civil :) */
function inbox_select_all(checkbox){
	var el = checkbox.form.elements, i = el.length;
	while (i--){
		if (el[i].type == 'checkbox')
			el[i].checked = checkbox.checked;
	}
}

function toon_cat(cat_id){
	
	if( document.getElementByName(cat_id).style.display == '' ){
		document.getElementByName(cat_id).style.display = 'none';
	} else {
		document.getElementByName(cat_id).style.display = '';
	}
	
}

function sort_up(input_id){
	var oude_waarde = document.getElementById(input_id).value;
	document.getElementById(input_id).value++;
}

function sort_down(input_id){
	var oude_waarde = document.getElementById(input_id).value;
	document.getElementById(input_id).value--;
}

function pop_image(image_url){
	return window.open('http://'+image_url+'','pop_image','width='+this.width+', scrollbars=yes,location=no,directories=no,status=no,menubar=no,toolbar=no,resizable=no');

}
