function addbookmark(bookmarkurl, bookmarktitle) 
	{
	if (document.all)
		window.external.AddFavorite(bookmarkurl,bookmarktitle) 
	}

function SetCookie (name,value,expires,path,domain) 
	{
	var expdate = new Date ();
	Expdate.setTime (expdate.getTime() + (expires * 24 * 60 * 60 * 1000)); // 24 hrs from
	document.cookie = name + "=" + escape (value) +
	((expires) ? "; expires=" + expdate.toGMTString() : "") +
	((path) ? "; path=" + path : "") +
	((domain) ? "; domain=" + domain : "");
	}

function highlightDiv(theDiv,theNewClassName)
	{
	
	remindClassName = theDiv.className;
	theDiv.className = theNewClassName;
	if (theDiv.style.cursor) {
		theDiv.style.cursor = 'pointer';
		}
	}
		
function deHighlightDiv(theDiv)
	{
	
	theDiv.className = remindClassName;
	
	}
	
 function emoticon(text) {
  	var txtarea = document.reactie_form.reactie_tekst;
  	text = ' ' + text + ' ';
  	if (txtarea.createTextRange && txtarea.caretPos) {
  		var caretPos = txtarea.caretPos;
  		caretPos.text = caretPos.text.charAt(caretPos.text.length - 1) == ' ' ? text + ' ' : text;
  		txtarea.focus();
  	} else {
  		txtarea.value  += text;
  		txtarea.focus();
  		}
	}
