function nl2br (str)
{
	var breakTag = '<br />';
	return (str + '').replace(/([^>]?)\n/g, '$1'+ breakTag +'\n');
}