function Novo()
 {
     @session_start();
     $this->pessoa_logada = $_SESSION['id_pessoa'];
     @session_write_close();
     $obj_permissoes = new clsPermissoes();
     $obj_permissoes->permissao_cadastra(597, $this->pessoa_logada, 11, "educar_exemplar_tipo_lst.php");
     $array_tipos = array();
     foreach ($_POST as $key => $cliente_tipo) {
         if (substr($key, 0, 5) == "tipo_") {
             $array_tipos[substr($key, 5)] = $cliente_tipo;
         }
     }
     $obj = new clsPmieducarExemplarTipo(null, $this->ref_cod_biblioteca, null, $this->pessoa_logada, $this->nm_tipo, $this->descricao, null, null, 1);
     $cadastrou = $obj->cadastra();
     if ($cadastrou) {
         //-----------------------CADASTRA CLIENTE TIPO------------------------//
         if ($array_tipos) {
             foreach ($array_tipos as $cliente_tipo => $dias_emprestimo) {
                 $obj = new clsPmieducarClienteTipoExemplarTipo($cliente_tipo, $cadastrou, $dias_emprestimo);
                 $cadastrou2 = $obj->cadastra();
                 if (!$cadastrou2) {
                     $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
                     echo "<!--\nErro ao cadastrar clsPmieducarClienteTipoExemplarTipo\nvalores obrigat&oacute;rios\nis_numeric( {$cadastrou} ) && is_numeric( {$cliente_tipo} ) && is_numeric( {$dias_emprestimo} )\n-->";
                     return false;
                 }
             }
         }
         //-----------------------FIM CADASTRA CLIENTE TIPO------------------------//
         $this->mensagem .= "Cadastro efetuado com sucesso.<br>";
         header("Location: educar_exemplar_tipo_lst.php");
         die;
         return true;
     }
     $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
     echo "<!--\nErro ao cadastrar clsPmieducarExemplarTipo\nvalores obrigat&oacute;rios\nis_numeric( {$this->ref_cod_biblioteca} ) && is_numeric( {$this->pessoa_logada} ) && is_string( {$this->nm_tipo} )\n-->";
     return false;
 }