function dod(param, param_f) {

	theSelection = document.selection.createRange().text;

	if (theSelection) {

		document.selection.createRange().text = param + theSelection + param_f;

		theSelection = '';

		return;

	} else {

		alert("Markieren, um es zu formatieren");

	}
	
}

function addSmilie (smilie) {
document.getElementById('text').innerHTML += smilie;
}
