// Zeilenumbruch Zeichen als Br
	function nl2br( txt ){
		txt = escape(txt);
		txt = txt.replace(getNlChar(txt),'<br />');
		return unescape( txt );
	}
	
	// Zeile als ListenPunkt
	function nl2li( txt ){
		txt = escape(txt);
		var rows = txt.split( getNlChar(txt) );
		txt = '';
		rows.each( function(row) {
			txt += '<li>' + row + '<li>';
		})
		return unescape( txt );
	}
	
	function rmNl( txt ) {
		txt = txt.replace(getNlChar(txt),'');
		return unescape( txt );
	}
	
	// Zeilenumbruch Zeichen ermitteln
	function getNlChar( txt ) {
		var nlChar;
		if( txt.indexOf('%0D%0A') > -1 ){
			nlChar = /%0D%0A/g ;
		}else if( txt.indexOf('%0A') > -1 ){
			nlChar = /%0A/g ;
		}else if( txt.indexOf('%0D') > -1 ){
			nlChar = /%0D/g ;
		}
		return nlChar;
	}
