function mOvr(src,clrOver)
{ 
		src.bgColor = clrOver;
} 

function mOut(src,clrIn)
{
		src.bgColor = clrIn; 
}

function storeCursor(element)
{
	if ( document.all && element.createTextRange )
		element.cursorPos = document.selection.createRange().duplicate();
}

function putStr( text )
{
	var target = document.getElementById( "message" );

	if ( target )
	{
		if ( document.all && target.cursorPos)
		{
			var cursorPos = target.cursorPos;
			cursorPos.text = cursorPos.text.charAt(cursorPos.text.length - 1) == ' ' ? text + ' ' : text;
			target.focus();
		}
		else
		{
			target.value += text;
			target.focus();
		}
	}
}

function addPost( ){
	var target = document.getElementById( "message" );
	var source = document.getElementById( "citatemessage" );

	if ( target )
	{
		if (target.value == "")
		{
			target.value += source.value;
			target.focus();
		}
		else {
			alert('Het oorspronkelijke bericht kan niet worden toegevoegd omdat de messagebox al tekst bevat.');
		}
	}
}

function setPage(i){
	document.getElementById('searchpage').value=i;
	document.getElementById('searchform').submit();
}