function cfl2html($text){
$text = str_replace ( '[ center]', '<div align="center">', $text );
$text = str_replace ( '[ /center]', '</div>', $text );
$text = str_replace ( '[ right]', '<div align="right">', $text );
$text = str_replace ( '[ /right]', '</div>', $text );
$text = str_replace ( '[ left]', '<div align="left">', $text );
$text = str_replace ( '[ /left]', '</div>', $text );
$text = str_replace ( '[ justify]', '<div align="justify">', $text );
$text = str_replace ( '[ /justify]', '</div>', $text );
$text = str_replace ( '[ strong]', '<strong>', $text );
$text = str_replace ( '[ /strong]', '</strong>', $text );
$text = str_replace ( '[ em]', '<em>', $text );
$text = str_replace ( '[ /em]', '</em>', $text );
$text = str_replace ( '[ h2]', '<h2>', $text );
$text = str_replace ( '[ /h2]', '</h2>', $text );
$text = str_replace ( '[ red]', '<div style="color:red;">', $text );
$text = str_replace ( '[ /red]', '</div>', $text );
$text = str_replace ( '[ black]', '<div style="color:black;">', $text );
$text = str_replace ( '[ /black]', '</div>', $text );
$text = str_replace ( '[ green]', '<div style="color:green;">', $text );
$text = str_replace ( '[ /green]', '</div>', $text );
$text = str_replace ( '[ blue]', '<div style="color:blue;">', $text );
$text = str_replace ( '[ /blue]', '</div>', $text );
$text = str_replace ( '[ PerfectBodyColor]', '<div style="color:#7C003F;">', $text );
$text = str_replace ( '[ /PerfectBodyColor]', '</div>', $text );
$text = str_replace ( '[ overline]', '<div style=" text-decoration:overline;">', $text );
$text = str_replace ( '[ /overline]', '</div>', $text );
$text = str_replace ( '[ line-through]', '<div style=" text-decoration:line-through;">', $text );
$text = str_replace ( '[ /line-through]', '</div>', $text );
$text = str_replace ( '[ underline]', '<div style=" text-decoration:underline;">', $text );
$text = str_replace ( '[ /underline]', '</div>', $text );
$text = str_replace ( ':)', '<image src="images/emoicons/icon_smile.gif" alt="Smile" />', $text );
$text = str_replace ( ':-)', '<image src="images/emoicons/icon_smile.gif" alt="Smile" />', $text );
$text = str_replace ( ':o)', '<image src="images/emoicons/icon_smile.gif" alt="Smile" />', $text );
$text = str_replace ( ':P', '<image src="images/emoicons/icon_razz.gif" alt="Smile" />', $text );
$text = str_replace ( ':-P', '<image src="images/emoicons/icon_razz.gif" alt="Smile" />', $text );
$text = str_replace ( ';-)', '<image src="images/emoicons/icon_wink.gif" alt="Smile" />', $text );
$text = str_replace ( ';)', '<image src="images/emoicons/icon_wink.gif" alt="Smile" />', $text );
return $text;
}