session_start();
set_time_limit(200);
header('Content-Type: text/html; charset=utf-8');
header("Cache-Control: no-cache, must-revalidate");
include_once '../../../smtp/class.phpmailer.php';
include_once '../../../debug/fb.php';
include_once '../../../tjax/tjax.php';
include_once '../../../framework/FrameworkBanco.php';
include_once '../../../framework/FrameworkGeneric.php';
include_once 'model.php';
/**
 * Registra function
 **/
$fg = new FrameworkGeneric();
$fg->cryptPost($_POST['STR']);
$fg->registerFunction($_POST);
/**
 * ADICIONA USUÁRIOS.
 */
function adicionar($aDados)
{
    $tjax = new Tjax();
    $fg = new FrameworkGeneric();
    $fg->config("");
    $submodulo = 'empresas';
    $fg->obterIdSubModulo($submodulo);
    $host = $fg->host;
    if (!$aDados[nome_razao]) {
        $html .= 'Digite um nome ou razão social <br />';
        $tjax->addScript("\$('#nome_razao').css('background-color','#F2DEDE');");
    } else {