function AjaxEcho($text = null) { // only reset field if this is performed inside an ajax routine (javascript) if (!utopia::IsAjaxRequest()) { return false; } if (!$text) { return true; } $text = trim($text, "\n;"); echo "\n{$text};"; return true; }