function Novo()
 {
     @session_start();
     $this->pessoa_logada = $_SESSION['id_pessoa'];
     @session_write_close();
     $obj_permissoes = new clsPermissoes();
     $obj_permissoes->permissao_cadastra(593, $this->pessoa_logada, 11, "educar_acervo_colecao_lst.php");
     $obj = new clsPmieducarAcervoColecao($this->cod_acervo_colecao, $this->pessoa_logada, $this->pessoa_logada, $this->nm_colecao, $this->descricao, $this->data_cadastro, $this->data_exclusao, $this->ativo, $this->ref_cod_biblioteca);
     $cadastrou = $obj->cadastra();
     //$cadastrou = 5;
     if ($cadastrou) {
         $this->mensagem .= "Cadastro efetuado com sucesso.<br>";
         //header( "Location: educar_acervo_colecao_lst.php" );
         echo "<script>\n\t\t\t\t\tparent.document.getElementById('colecao').value = '{$cadastrou}';\n\t\t\t\t\tparent.document.getElementById('ref_cod_acervo_colecao').disabled = false;\n\t\t\t\t\tparent.document.getElementById('tipoacao').value = '';\n\t\t\t\t\tparent.document.getElementById('formcadastro').submit();\n\t\t\t     </script>";
         die;
         return true;
     }
     $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
     echo "<!--\nErro ao cadastrar clsPmieducarAcervoColecao\nvalores obrigatorios\nis_numeric( {$this->ref_usuario_cad} ) && is_string( {$this->nm_colecao} )\n-->";
     return false;
 }
 function Novo()
 {
     @session_start();
     $this->pessoa_logada = $_SESSION['id_pessoa'];
     @session_write_close();
     $obj_permissoes = new clsPermissoes();
     $obj_permissoes->permissao_cadastra(593, $this->pessoa_logada, 11, "educar_acervo_colecao_lst.php");
     $obj = new clsPmieducarAcervoColecao($this->cod_acervo_colecao, $this->pessoa_logada, $this->pessoa_logada, $this->nm_colecao, $this->descricao, $this->data_cadastro, $this->data_exclusao, $this->ativo, $this->ref_cod_biblioteca);
     $cadastrou = $obj->cadastra();
     if ($cadastrou) {
         $this->mensagem .= "Cadastro efetuado com sucesso.<br>";
         header("Location: educar_acervo_colecao_lst.php");
         die;
         return true;
     }
     $this->mensagem = "Cadastro n&atilde;o realizado.<br>";
     echo "<!--\nErro ao cadastrar clsPmieducarAcervoColecao\nvalores obrigatorios\nis_numeric( {$this->ref_usuario_cad} ) && is_string( {$this->nm_colecao} )\n-->";
     return false;
 }