function Newnews(&$smarty, &$form)
{
    $news = new Noticias($smarty, $form);
    if (isset($form['page'])) {
        if (is_array($_FILES)) {
            ## se há arquivos enviados.
            foreach ($_FILES as $nome => $file) {
                $arquivo = new Arquivo();
                $arquivo->SetOrigem($file['tmp_name']);
                $arquivo->SetDestino(NOTICIAS_DIR_IMG);
                $arquivo->SetPropriedades($file);
                if ($arquivo->error) {
                    return $smarty->getFinishError($arquivo->error);
                }
                if ($arquivo->SetMimetype($arquivo->prop['filename'], array('jpg', 'jepg', 'gif', 'png'), $file['type']) == true) {
                    return $smarty->getFinishError('ERROR_017');
                }
                if ($arquivo->UploadFile() == true) {
                    return $smarty->getFinishError('ERROR_021');
                }
                $thb[$nome] = $arquivo->Thumbnail(NOTICIAS_THB_SIZE);
                $arquivo->FileLogs($nome);
                $form[$nome] = $arquivo->filelog[$nome]['filename'];
                $form[$nome . '_thb'] = $thb[$nome]['thb_name'];
            }
        }
        return $news->NewNoticias($smarty, $form);
    }
}