<?php include '../idiomas/config.inc';
include_once '../auxiliar/validalogin.inc.php'; ?>
<!DOCTYPE html>
<html>

<head>

  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  
  <title>AFV 2 | <?php echo $cad_header ;?></title>
  <!-- Tell the browser to be responsive to screen width -->
  <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
  <!-- Bootstrap 3.3.7 -->
  <link rel="stylesheet" href="./../web/bower_components/bootstrap/dist/css/bootstrap.min.css">
  <!-- Font Awesome -->
  <link rel="stylesheet" href="./../web/bower_components/font-awesome/css/font-awesome.min.css">
  <!-- Ionicons -->
  <link rel="stylesheet" href="./../web/bower_components/Ionicons/css/ionicons.min.css">
  <!-- Theme style -->
  <link rel="stylesheet" href="./../web/dist/css/AdminLTE.min.css">
  <!-- AdminLTE Skins. Choose a skin from the css/skins
       folder instead of downloading all of them to reduce the load. -->
  <link rel="stylesheet" href="./../web/dist/css/skins/_all-skins.min.css">

  <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
  <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
  <!--[if lt IE 9]>
  <script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>
  <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
  <![endif]-->

  <!-- Google Font -->
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,600,700,300italic,400italic,600italic">
</head>

<body class="hold-transition skin-blue sidebar-mini">
  <!-- Site wrapper -->
  <div class="wrapper">

    <header class="main-header">
      <!-- Logo -->
      <a href="#" class="logo">
        <!-- mini logo for sidebar mini 50x50 pixels -->
        <span class="logo-mini">ADV</span>
        <!-- logo for regular state and mobile devices -->
        <span class="logo-lg"><b>AFV</b> - ADV Tecnologia </span>
      </a>
      <!-- Header Navbar: style can be found in header.less -->
      <nav class="navbar navbar-static-top">
        <!-- Sidebar toggle button-->
        <a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </a>
      </nav>
    </header>

    <!-- =============================================== -->
    <!-- Inserir modal aqui-->
    <div class="modal fade" id="modal-default">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title"><?php echo $m_relatorios ;?></h4>
          </div>
          <div class="modal-body">
            <p>
              <?php
                 include 'relatorios.php';              
                ?>
            </p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal" name="SairConsultar"><?php echo $bt_sair ;?></button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal-dialog -->
    </div>

    <div class="modal fade" id="modal-consultar-stat">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title"><?php echo $cad_consulta_status ;?></h4>
          </div>
          <div class="modal-body">
            <p>
            <div id="content-cons-stat"></div> 
            <!--todo-->
            </p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $bt_sair ;?></button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal-dialog -->
    </div>
    
    <div class="modal fade" id="modal-consultar-transportadora">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title"><?php echo $cad_consulta_de_transportadora ;?></h4>
          </div>
          <div class="modal-body">
            <p>
            <div id="content-cons-transp"></div> 
            <!--todo-->
            </p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $bt_sair ;?></button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal-dialog -->
    </div>


    <div class="modal fade" id="modal-consultar-modalidade">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title"><?php echo $cad_consulta_modadlidade ;?></h4>
          </div>
          <div class="modal-body">
            <p>
            <div id="content-cons-modalidade"></div> 
            <!--todo-->
            </p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $bt_sair ;?></button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal-dialog -->
    </div>

    <div class="modal fade" id="modal-consultar-indicadorIE">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title"><?php echo $cad_consulta_indicador_IE ;?></h4>
          </div>
          <div class="modal-body">
            <p>
            <div id="content-cons-indicadorIE"></div> 
            <!--todo-->
            </p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $bt_sair ;?></button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal-dialog -->
    </div>




    <div class="modal fade" id="modal-consultar-cidade">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title"><?php echo $cad_consulta_cidade ;?></h4>
          </div>
          <div class="modal-body">
            <p>
            <div id="content-cons-cid"></div> 
            <!--todo-->
            </p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $bt_sair ;?></button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal-dialog -->
    </div>
    <div class="modal fade" id="modal-consultar-cnpj">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title"><?php echo $cad_verificacao_de_cliente ;?></h4>
          </div>
          <div class="modal-body">
            <p>
            <div id="content"></div> 
            <!--todo-->
            </p>
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $bt_sair ;?></button>
          </div>
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal-dialog -->
    </div>
    <!-- /.modal -->
    <!-- -->
    <div class="modal fade" id="modal-buscarcliente">
      <div class="modal-dialog">
        <div class="modal-content">
          <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-label="Close">
              <span aria-hidden="true">&times;</span></button>
            <h4 class="modal-title"><?php echo $b_busca_cliente_nova_venda ;?></h4>
          </div>
          <div class="modal-body">
            
            <?php  
                  include_once '../bd/funcoes.inc';
                  if (lecookie("codos")) {
                      echo " <SCRIPT>
                          self.location.href='../html/produtos_consulta.php';
                        </SCRIPT>";
                      exit;
                  }
              ?>             
              
              <form action="../php/buscacli.php" method="post" name="procuracadastro" id="procuracadastro">
               
              <div class="box-body">
                <div class="form-group">
                  <label for="Razao"><?php echo $b_razao_social ;?></label>
                  <input name="razao" class="form-control" id="razao" placeholder="<?php echo $b_buscar_cliente ;?>" type="text">
                </div>

                

                <script> document.procuracadastro.razao.focus();</script>  
              </div>
              
          </div>
          <div class="modal-footer">
            <button type="button" class="btn btn-default pull-left" data-dismiss="modal"><?php echo $bt_sair ;?></button>
            <input type="submit" class="btn btn-primary pull-right" name="Enviar" value="<?php echo $bt_localizar ;?>" alt='Localizar' />
          </div>
          </form>   
        </div>
        <!-- /.modal-content -->
      </div>
      <!-- /.modal-dialog -->
    </div>
    <!-- /.modal -->                      

    <!-- Fim do modal -->

    <!-- Left side column. contains the sidebar -->
    <aside class="main-sidebar">
      <!-- sidebar: style can be found in sidebar.less -->
      <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
          <div class="pull-left image">
            <img src="./../icons/frame.png" class="img-circle" alt="User Image">
          </div>
          <div class="pull-left info">
            <p>
              <?php
            include_once '../bd/funcoes.inc';
            $p_codusu = lecookie("codusu"); 
            echo(TrazValorCampo('senhas','usuario', 'codusu', lecookie('codusu'))); 
          ?>
            </p>
          </div>
        </div>

        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">
          <li class="header"><?php echo $g_painel_navegacao ;?></li>
          <li class="treeview">
            <a href="#">
              <i class="fa fa-dashboard"></i> <span><?php echo $m_vendas ;?></span>
              <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
            </a>
            <ul class="treeview-menu">
              <li><a href="./buscahistvnd.php"><i class="fa fa-circle-o"></i> <?php echo $m_historico_venda ;?></a></li>
              <li><a href="#" data-toggle="modal" data-target="#modal-buscarcliente"><i class="fa fa-circle-o"></i> <?php echo $m_nova_venda ;?></a></li>
            </ul>
          </li>
          <li class="treeview">
            <a href="#">
              <i class="glyphicon glyphicon-user"></i> <span name='MClientes'><?php echo $m_clientes ;?></span>
              <span class="pull-right-container">
                <i class="fa fa-angle-left pull-right"></i>
              </span>
            </a>
            <ul class="treeview-menu">
              <li><a href="./cadastronovo.php"><i class="fa fa-circle-o"></i> <?php echo $m_cadastrar_cliente ;?></a></li>
              <li>
                  <a href="#" data-toggle="modal" data-target="#modal-buscarcliente" name='MLocalizarCliente'>
                    <i class="fa fa-circle-o"></i>
                    <?php echo $m_localizar_cliente ;?>
                  </a>
              </li>
            </ul>
          </li>
          <li class="treeview">
            <a href="#" data-toggle="modal" data-target="#modal-default">
              <i class="fa fa-files-o"></i>
              <span><?php echo $m_relatorios ;?></span>
            </a>
          </li>
          <li>
            <a href="./produtos_consulta.php">
              <i class="glyphicon glyphicon-search"></i> <span><?php echo $m_consulta_produtos ;?></span>
            </a>
          </li>
          <li>
            <a href="./../php/logoff.php">
              <i class="glyphicon glyphicon-off"></i>
              <span><?php echo $m_Logout ;?></span>
            </a>
          </li>
        </ul>
      </section>
      <!-- /.sidebar -->
    </aside>

    <!-- =============================================== -->

    <!-- Content Wrapper. Contains page content -->
    <div class="content-wrapper">
      <!-- Content Header (Page header) -->
      <section class="content-header">
        <h1>
        <?php echo $cad_header ;?>
        </h1>
        <ol class="breadcrumb">
          <!-- controle de paginas aqui-->
          <li><a href="#"><i class="fa fa-dashboard"></i> <?php echo $g_inicio ;?></a></li>
          <li><a href="#"><?php echo $cad_header ;?></a></li>
        </ol>
      </section>

      <!-- Main content -->
      <section class="content">

        <!-- Default box -->
        <div class="box">
          <div class="box-header with-border">
            <h3 class="box-title"><?php echo $cad_cadastrar_cliente ;?></h3>

            <div class="box-tools pull-right">
              <button type="button" class="btn btn-box-tool" data-widget="collapse" data-toggle="tooltip" title="Collapse">
                <i class="fa fa-minus"></i></button>
              <button type="button" class="btn btn-box-tool" data-widget="remove" data-toggle="tooltip" title="Remove">
                <i class="fa fa-times"></i></button>
            </div>
          </div>
          <div class="box-body">
            <!-- Inserir aqui-->

            <?php 


include_once "../bd/funcoes.inc";
include "../bd/bd_clientes.inc";

//RECEBE VARIAVEIS
//$p_acao = recebevar("acao");
$p_codcli = recebevar("codcli");
$p_enviar = recebevar("Enviar");
$p_razao = recebevar("nome");
$p_fantasia = recebevar("fantasia");
$p_contato = recebevar("contato");
$p_email = recebevar("email");
$p_rgie = recebevar("increst");
$p_cpcn = recebevar("cnpj");
$p_endereco = recebevar("endereco");
$p_endent = recebevar("endent");
$p_endcob = recebevar("endcob");
$p_cep = recebevar("cep");
$p_cepent = recebevar("cepent");
$p_cepcob = recebevar("cepcob");
$p_bairro = recebevar("bairro");
$p_bairroent = recebevar("bairroent");
$p_bairrocob = recebevar("bairrocob");
$p_cidade = recebevar("cidade");
$p_cidadeent = recebevar("cidadeent");
$p_cidadecob = recebevar("cidadecob");
$p_uf = recebevar("uf");
$p_ufent = recebevar("ufent");
$p_ufcob = recebevar("ufcob");
$p_telefone = recebevar("fone");
$p_telefonenf = recebevar("fonenf");
$p_fax = recebevar("fax");
$p_codtra = recebevar("codtra");
$p_transp = recebevar("transp");
$p_numeronf = recebevar("numeronf");
$p_enderecotipo = recebevar("enderecotipo");
$p_enderecocompl = recebevar("enderecocompl");
$p_codcidnfe = recebevar("codcidnfe");
$p_cidnfe = recebevar("cidnfe");
$p_stat =  recebevar("stat");
$p_codstat =  recebevar("codstat");
$naocarregacad = recebevar("naocarregacad");

$codnfoperacao = recebevar('codnfoperacao');
$modOperacaoCli = recebevar("operacao");

$codIndicadorIE = recebevar("codIndicadorIE");
$IndicadorIE = recebevar("indicadorIE");


if($codIndicadorIE == ''){
  $codIE = retornaCodIE($p_codcli);
  $codIndicadorIE = $codIE[0];

  if($codIndicadorIE == ''){
    $codIndicadorIE = 'null';
    
  }
}

if($codnfoperacao == ''){
  $codOperacao = retornaCodNfOperacao($p_codcli);
  $codnfoperacao = $codOperacao[1];


  if($codnfoperacao == ''){
    $codnfoperacao = 'null';
  }
}

if($p_codstat == ''){
  $codStatus = retornaCodStatus($p_codcli);
  $p_codstat = $codStatus[0]; 

  if($p_codstat == ''){
    $p_codstat = $p_codclistatus;
  }
}

//determina que a tela foi chamada pela consulta de transportadora, portanto não vai buscar os dados do cadastro do cliente
$isUpdateClient = ($p_codcli) && (!$naocarregacad);

if ($isUpdateClient) {
        /*palm*/
            /*arrumar aqui depois pra pegar o codtra e a transp certa*/
    BuscaCadCli ($p_codcli,$p_razao,$p_contato,$p_email,$p_rgie,$p_cpcn,
        $p_endereco,$p_endent,$p_endcob,
        $p_cep,$p_cepent,$p_cepcob,
        $p_bairro,$p_bairroent,$p_bairrocob,
        $p_cidade,$p_cidadeent,$p_cidadecob,
        $p_uf,$p_ufent,$p_ufcob,
        $p_telefone,$p_telefonenf,$p_fax,$p_codtra,$p_transp,$p_numeronf,$p_enderecotipo,$p_enderecocompl,$p_codcidnfe,$p_cidnfe,$p_stat,
         $p_codstat,$codnfoperacao,$codIndicadorIE, $p_fantasia);
      } 

?>


<div id="conteudo">

    <form action="../php/cadcli.php" method="post" name="cadastronovo" id="cadastronovo" >
        <?php if( (!$isUpdateClient && $_COOKIE["allowIncludeUser"] == 1) || ($isUpdateClient && $_COOKIE["allowAlterUser"] == 1) ) :?>
          <input class="btn btn-success" type='submit' name='Enviar' id='Enviar' value='<?php echo $bt_salvar ;?>'/>
          <a class="btn btn-primary" href='../html/cadastro.php'><?php echo $bt_voltar ;?></a>
          <br/>
          <br/>
        <?php else:?>
          <div class="alert alert-warning">
            <h4>
              <i class="icon fa fa-ban"></i>
              <?php echo $msg_nao_tem_permissao_para ;?> <?php echo $isUpdateClient ? "alterar" : "incluir"?> <?php echo $msg_permissao_complemento ;?>
            </h4>
          </div>
        <?php endif;?>
        <input name="codcli" type="hidden" value ="<?php echo $p_codcli ?>" />

        <div class="form-group">

        <?php
//  Deixa editar o CNPJ se o cliente ainda n�o tem venda ou � cliente novo
if ( (!$p_codcli) ||  (!CliTemVenda($p_codcli))) {
    ?>

        <label for="cnpj" id="cnpj"><?php echo $cad_CNPJ ;?></label><br />
        <input class="form-control" placeholder="<?php echo $cad_placeholder_cnpj ;?>" name="cnpj" type="text"  value="<?php echo $p_cpcn ?>"  /><br />
        
        <input class="btn btn-primary" id="consultar_venda" type="button" data-toggle="modal" data-target="#modal-consultar-cnpj" value="<?php echo $bt_consultar_cnpj ;?>" /> 
        <input class="btn btn-primary" id="pesquisar_ws_receita" type="button" data-toggle="modal" data-target="#semmodal_pesquisar_ws_receita" value="<?php echo $bt_pesquisa_receitaws_cnpj ;?>" /> <br /><br />

    <?php
}  
else
{
    echo "CNPJ: $p_cpcn  <br><br>
      <input name='cnpj' type='hidden' size='36' value=". $p_cpcn ."  />"; // aqui coloco o edit como hidden apenas pra não perder o cnpj
}
?>            
            <label for="nome" id="nome"><?php echo $cad_razao ;?></label>
            <input class="form-control" placeholder="<?php echo $cad_placeholder_razao ;?>" name="nome" type="text" maxlength="60" value="<?php echo $p_razao ?>"  /><br /><br />
            <input name="fantasia" type="hidden" value ="<?php echo $p_fantasia ?>" />

            <label for="contato" id="contato" ><?php echo $cad_contato ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_contato ;?>" name="contato" type="text" maxlength="300"  value="<?php echo $p_contato ?>"  /><br /><br />

            <label for="fone" id="fone"><?php echo $cad_DDD_telefone ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_telefone ;?>" name="fone" type="text" size="36" maxlength="300" value="<?php echo $p_telefone ?>" /><br /><br />
            <label for="fonenf" id="fonenf"><?php echo $cad_DDD_telefonenf ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_telefonenf ;?>" name="fonenf" type="text" size="36" maxlength="300" value="<?php echo $p_telefonenf ?>" /><br /><br />

        
            <label for="email" id="email"><?php echo $cad_email ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_email ;?>" name="email" type="text" maxlength="70" value="<?php echo $p_email ?>" /><br /><br />

            <label for="increst" id="incrg"><?php echo $cad_ins_estadual ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_ins_estadual ;?>" name="increst" type="text" maxlength="25" value="<?php  echo $p_rgie ?>" /><br />
            <input name="codIndicadorIE" type="hidden" value ="<?php  if($codIndicadorIE){echo $codIndicadorIE;} else echo 'null'; ?>" />
            <label for="indicadorIE" id="indicadorIE"><?php echo $cad_indicador_ie ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_indicador_ie ;?>" name="indicadorIE" type="text" maxlength="25" value="<?php if ($p_codcli) {if ($IndicadorIE) {echo $IndicadorIE;} else retornaIE($p_codcli); } else echo $IndicadorIE; ?>" /><br />
            <input class="btn btn-primary" id="consultar_indicadorIE" type="button" data-toggle="modal" data-target="#modal-consultar-indicadorIE" value="<?php echo $bt_consultar_indicador_ie ;?>" /><br /><br />


            <input name="codnfoperacao" type="hidden" value ="<?php if ($codnfoperacao) {echo $codnfoperacao;}else echo 'null'; ?>" />
            <label for="modOperacaoCli" id="modOperacaoCli"><?php echo $cad_modalidade_operacao ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_operacao ;?>" name="modOperacaoCli" type="text" maxlength="25" value="<?php if ($p_codcli) {if ($modOperacaoCli) {echo $modOperacaoCli;} else retornaOperacaoCadCli($p_codcli); } else echo $modOperacaoCli; ?>" /><br />
            <input class="btn btn-primary" id="consultar_modalidade" type="button" data-toggle="modal" data-target="#modal-consultar-modalidade" value="<?php echo $bt_consultar_modalidade ;?>" /><br /><br />

            
         <label for="cep" id="cep"><?php echo $cad_cep ;?></label><br />
         <div class='input-group input-group-sm'>
            <input class="form-control" placeholder="<?php echo $cad_placeholder_cep ;?>" name="cep" type="text" size="36" maxlength="9" value="<?php echo $p_cep ?>" />
            <span class='input-group-btn'>
              <button id="pesquisar_cep" data-toggle='modal' data-target='#semmodal-pesquisar-cep' type='button' class='btn btn-info btn-flat'><?php echo $bt_pesquisar ;?></button>
            </span>    
          </div>
          <br /><br />
        <!-- <label for="fax" id="fax">DDD Fax:</label><br />
        <input class="form-control" placeholder="FAX" name="fax" type="text" size="36" maxlength="25" value="<?php echo $p_fax ?>" /><br /><br /> -->

		    <label for="enderecotipo" id="endereco"><?php echo $cad_endereco_tipo ;?></label><br />
        <input class="form-control" placeholder="<?php echo $cad_placeholder_endereco ;?>" name="enderecotipo" type="text" size="36" maxlength="80" value="<?php echo $p_enderecotipo ?>" /><br /><br />
		
        <label for="endereco" id="endereco"><?php echo $cad_endereco ;?></label><br />
        <input class="form-control" placeholder="<?php echo $cad_placeholder_endereco ;?>" name="endereco" type="text" size="36" maxlength="80" value="<?php echo $p_endereco ?>" /><br /><br />
		
		    <label for="numero" id="endereco"><?php echo $cad_numero ;?></label><br />
        <input class="form-control" placeholder="<?php echo $cad_placeholder_numero ;?>" name="numero" type="text" size="36" maxlength="80" value="<?php echo $p_numeronf ?>" /><br /><br />
		
		    <label for="complemento" id="endereco"><?php echo $cad_complemento ;?></label><br />
        <input class="form-control" placeholder="<?php echo $cad_placeholder_complemento ;?>" name="complemento" type="text" size="36" maxlength="80" value="<?php echo $p_enderecocompl ?>" /><br /><br />

        <label for="bairro" id="bairro"><?php echo $cad_bairro ;?></label><br />
        <input class="form-control" placeholder="<?php echo $cad_placeholder_beirro ;?>" name="bairro" type="text" size="36" maxlength="30"  value="<?php echo $p_bairro ?>" /><br /><br />
		      
        <label for="cidnfe" id="transp"><?php echo $cad_cidade ;?></label><br />
				<div class='form-group  <?php if(!$p_cidnfe || $p_cidnfe == 'null'){ echo 'has-warning'; }?>'>
          <div class='input-group input-group-sm'>
            <input class='form-control' type="text" placeholder="<?php echo $cad_placeholder_cidade ;?>" name="cidnfe" <?php echo $p_default; ?> value='<?php if ($p_cidnfe <> 'null'){echo $p_cidnfe;} ?>'>
                <span class='input-group-btn'>
                  <button id="consultar_cidade" data-toggle='modal' data-target='#modal-consultar-cidade' type='button' class='btn btn-info btn-flat'><?php echo $bt_pesquisar ;?></button>
                </span>           
          </div>
          <?php if(!$p_cidnfe || $p_cidnfe == 'null'){?>
            <span class="help-block"><?php echo $cad_escolha_uma_cidade ;?></b></span>
          <?php }?>
        </div>                

        <input name="codcidnfe" type="hidden" value ="<?php echo $p_codcidnfe ?>" /><br />	
				
        <label for="uf" id="uf"><?php echo $cad_uf ;?></label><br />
        <input class="form-control" placeholder="<?php echo $cad_placeholder_uf ;?>" name="uf" type="text" size="36" maxlength="2" value="<?php echo $p_uf ?>" maxlength="2" /><br /><br />
                
        <div class="alert alert-warning alert-dismissible">
          <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button>
          <h4><i class="icon fa fa-warning"></i> <?php echo $msg_atencao ;?></h4>
          <?php echo $msg_enderecos ;?>
        </div>


        <p>
          <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#endereco_entrega" aria-expanded="false" aria-controls="endereco_entrega">
            <?php echo $ver_endereco_entrega  ;?>
            <span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span>
          </button>
        </p>

        <div class="collapse" id="endereco_entrega">
          <div class="card card-body">
            
            <label for="cepent" id="cepent"><?php echo $cad_cep_entrega ;?></label>
            <div class='input-group input-group-sm'>
              <input class="form-control" placeholder="<?php echo $cad_placeholder_cep_entrega ;?>" name="cepent" type="text" size="36" maxlength="9" value="<?php echo $p_cepent ?>"  />
              <span class='input-group-btn'>
                <button id="pesquisar_cep_entrega" data-toggle='modal' data-target='#semmodal-pesquisar-cep' type='button' class='btn btn-info btn-flat'><?php echo $bt_pesquisar ;?></button>
              </span>    
            </div>
            <br />

            <label for="endent" id="endent"><?php echo $cad_endereo_entrega ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_endereco_entrega ;?>" name="endent" type="text" size="36" maxlength="80" value="<?php echo $p_endent ?>"  /><br /><br />

            <label for="bairroent" id="bairroent"><?php echo $cad_bairro_entrega ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_bairro_entrega ;?>" name="bairroent" type="text" size="36" maxlength="30" value="<?php echo $p_bairroent ?>"  /><br /><br />

            <label for="cidadeent" id="cidadeent"><?php echo $cad_cidade_entrega ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_cidade_entrega ;?>" name="cidadeent" type="text" size="36" maxlength="30" value="<?php echo $p_cidadeent ?>" /><br /><br />

            <label for="ufent" id="ufent"><?php echo $cad_UF_entrega ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_razaouf_entrega ;?>" name="ufent" type="text" size="36" maxlength="2" value="<?php echo $p_ufent ?>" maxlength="2"  /><br /><br />

          </div>
        </div>


        <p>
          <button class="btn btn-primary" type="button" data-toggle="collapse" data-target="#endereco_cobranca" aria-expanded="false" aria-controls="endereco_cobranca">
            <?php echo $ver_endereco_cobranca ;?>
            <span class="glyphicon glyphicon-menu-down" aria-hidden="true"></span>
          </button>
        </p>

        <div class="collapse" id="endereco_cobranca">
          <div class="card card-body">

            <label for="cepcob" id="cepcob"><?php echo $cad_cep_cobranca ;?></label>
            <div class='input-group input-group-sm'>
            <input class="form-control" placeholder="<?php echo $cad_placeholder_cep_cobranca ;?>" name="cepcob" type="text" size="36" maxlength="9" value="<?php echo $p_cepcob ?>" />
              <span class='input-group-btn'>
                <button id="pesquisar_cep_cobranca" data-toggle='modal' data-target='#semmodal-pesquisar-cep' type='button' class='btn btn-info btn-flat'><?php echo $bt_pesquisar ;?></button>
              </span>    
            </div>
            <br />

            <label for="endcob" id="endcob"><?php echo $cad_endereco_cobranca ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_endereco_cobrancao ;?>" name="endcob" type="text" size="36" maxlength="80" value="<?php echo $p_endcob ?>"  /><br /><br />

            <label for="bairrocob" id="bairrocob"><?php echo $cad_bairro_cobranca ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_bairro_cobranca ;?>" name="bairrocob" type="text" size="36" maxlength="30" value="<?php echo $p_bairrocob ?>"  /><br /><br />

            <label for="cidadecob" id="cidadecob"><?php echo $cad_cidade_cobranca ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_cidade_cobranca ;?>" name="cidadecob" type="text" size="36" maxlength="30" value="<?php echo $p_cidadecob ?>"  /><br /><br />

            <label for="ufcob" id="ufcob"><?php echo $cad_UF_cobranca ;?></label><br />
            <input class="form-control" placeholder="<?php echo $cad_placeholder_uf_cobranca ;?>" name="ufcob" type="text" size="36" maxlength="2" value="<?php echo $p_ufcob ?>" maxlength="2" /><br /><br />

          </div>
        </div>
        
        <br>
        <input name="codtra" type="hidden" value ="<?php echo $p_codtra ?>" />

        <label for="transp" id="transp"><?php echo $cad_transportadora ;?></label><br />
        <input class="form-control" placeholder="<?php echo $cad_placeholder_transp ;?>" name="transp" type="text" size="36" value="<?php echo $p_transp ?>"  /><br />

        <input class="btn btn-primary" id="consultar_transportadora" type="button" data-toggle="modal" data-target="#modal-consultar-transportadora" value="<?php echo $bt_consultar_transportadora ;?>" /><br />

        <input name="codstat" type="hidden" value ="<?php echo $p_codstat ?>" /><br />

        <label for="stat" id="transp"><?php echo $cad_header ;?> Status:</label><br /> 

        <input class="form-control" placeholder="<?php echo $cad_header ;?>Status" name="stat" type="text" size="36"  value="<?php if ($p_codcli) {verificaStatus($codcli); if ($p_stat) {echo $p_stat;}} elseif ($p_stat) {echo $p_stat;} else mostraStatusCli();   ?>"  /><br />
        
        <input class="btn btn-primary" id="consultar_stat" data-toggle="modal" data-target="#modal-consultar-stat" type="button" value="<?php echo $bt_consultar_status ;?>" />
        </div>

        <?php if( (!$isUpdateClient && $_COOKIE["allowIncludeUser"] == 1) || ($isUpdateClient && $_COOKIE["allowAlterUser"] == 1) ) :?>
        <br/><br/>   
          <input class="btn btn-success" type='submit' name='Enviar' id='Enviar' value='<?php echo $bt_salvar ;?>'/>
          <a class="btn btn-primary" href='../html/cadastro.php'><?php echo $bt_voltar ;?></a>
        <?php endif;?>
    </form>

</div>

<script> document.cadastronovo.nome.focus();</script>

            <!-- Finalizar aqui-->
          </div>
          <!-- /.box-body -->
          <div class="box-footer">
            
          </div>
          <!-- /.box-footer-->
        </div>
        <!-- /.box -->

      </section>
      <!-- /.content -->
    </div>
    <!-- /.content-wrapper -->

     <?php  include_once '../html/footer.php'; ?>
   
  </div>
  <!-- ./wrapper -->

  <!-- jQuery 3 -->
  <script src="../web/bower_components/jquery/dist/jquery.min.js"></script>
  <!-- Bootstrap 3.3.7 -->
  <script src="../web/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
  <!-- SlimScroll -->
  <script src="../web/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
  <!-- FastClick -->
  <script src="../web/bower_components/fastclick/lib/fastclick.js"></script>
  <!-- AdminLTE App -->
  <script src="../web/dist/js/adminlte.min.js"></script>
  <!-- AdminLTE for demo purposes -->
  <script src="../web/dist/js/demo.js"></script>

  
  <script>
    $(document).ready(function () {
      var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                   + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
      $('.sidebar-menu').tree()
    })

    $(function() 
                {
                  $("#consultar_venda").click(function() {
                      $('#content')
                        .load('../html/validacpcnexistente.php?cpcn='+ document.cadastronovo.cnpj.value);
                  });
                });


    $(function() 
                {
                  $("#pesquisar_ws_receita").click(function() {

                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                 + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                 + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+          
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content')
                        .load("../html/buscacliwsreceita.php?cnpj="+ encodeURIComponent(document.cadastronovo.cnpj.value) + "&path="+ caminho);
                      });
                    });


    $(function() 
                {
                  $("#consultar_modalidade").click(function() {
                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                   + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+ 
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content-cons-modalidade')
                        .load('../html/buscaModalidade.php?opecarao='+ document.cadastronovo.modOperacaoCli.value + "&path="+ caminho);
                  });
                });            

                $(function() 
                {
                  $("#consultar_indicadorIE").click(function() {
                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                   + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+ 
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content-cons-indicadorIE')
                        .load('../html/buscaIndicadorIE.php?indicadorIE='+ document.cadastronovo.indicadorIE.value + "&path="+ caminho);
                  });
                });            





    $(function() 
                {
                  $("#consultar_cidade").click(function() {   
                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                 + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                 + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+          
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content-cons-cid')
                        .load("../html/buscaclicid.php?cid="+ encodeURIComponent(document.cadastronovo.cidnfe.value) + "&path="+ caminho);
                      });
                    });
    $(function() 
                {  
                  $("#consultar_transportadora").click(function() {
                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                 + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                 + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+ 
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content-cons-transp')                       
                        .load('../html/buscaclitransp.php?transp='+ encodeURIComponent(document.cadastronovo.transp.value) + "&path="+ caminho);
                  });
                });

    $(function() 
                {
                  $("#consultar_stat").click(function() { 
                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                   + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+                 
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content-cons-stat')
                        .load('../html/buscaclistat.php?stat='+ document.cadastronovo.stat.value + "&path="+ caminho);
                  });
                });

    $(function() 
                {
                  $("#pesquisar_cep").click(function() {

                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                 + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                 + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+          
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content')
                        .load("../html/buscaclicep.php?cep="+ encodeURIComponent(document.cadastronovo.cep.value) + "&path="+ caminho);
                      });
                    });

  $(function() 
                {
                  $("#pesquisar_cep_entrega").click(function() {

                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                 + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                 + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+          
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content')
                        .load("../html/buscaclicepentrega.php?cep="+ encodeURIComponent(document.cadastronovo.cepent.value) + "&path="+ caminho);
                      });
                    });

    $(function() 
                {
                  $("#pesquisar_cep_cobranca").click(function() {

                    var caminho = "../html/cadastronovo.php?codcli="  + encodeURIComponent(document.cadastronovo.codcli.value         )+
                                  "*_*nome="                          + encodeURIComponent(document.cadastronovo.nome.value           )+
                                  "*_*fantasia="                      + encodeURIComponent(document.cadastronovo.fantasia.value       )+
                                  "*_*contato="                       + encodeURIComponent(document.cadastronovo.contato.value        )+
                                  "*_*email="                         + encodeURIComponent(document.cadastronovo.email.value          )+
                                  "*_*increst="                       + encodeURIComponent(document.cadastronovo.increst.value        )+
                                  "*_*operacao="                      + encodeURIComponent(document.cadastronovo.modOperacaoCli.value )+
                                  "*_*codnfoperacao="                 + encodeURIComponent(document.cadastronovo.codnfoperacao.value )+
                                  "*_*codIndicadorIE="                 + encodeURIComponent(document.cadastronovo.codIndicadorIE.value )+
                                  "*_*indicadorIE="                 + encodeURIComponent(document.cadastronovo.indicadorIE.value )+
                                  "*_*cnpj="                          + encodeURIComponent(document.cadastronovo.cnpj.value           )+
                                  "*_*endereco="                      + encodeURIComponent(document.cadastronovo.endereco.value       )+
                                  "*_*endent="                        + encodeURIComponent(document.cadastronovo.endent.value         )+
                                  "*_*endcob="                        + encodeURIComponent(document.cadastronovo.endcob.value         )+
                                  "*_*cep="                           + encodeURIComponent(document.cadastronovo.cep.value            )+
                                  "*_*cepent="                        + encodeURIComponent(document.cadastronovo.cepent.value         )+
                                  "*_*cepcob="                        + encodeURIComponent(document.cadastronovo.cepcob.value         )+
                                  "*_*bairro="                        + encodeURIComponent(document.cadastronovo.bairro.value         )+
                                  "*_*bairroent="                     + encodeURIComponent(document.cadastronovo.bairroent.value      )+
                                  "*_*bairrocob="                     + encodeURIComponent(document.cadastronovo.bairrocob.value      )+
                                  "*_*cidadeent="                     + encodeURIComponent(document.cadastronovo.cidadeent.value      )+
                                  "*_*cidadecob="                     + encodeURIComponent(document.cadastronovo.cidadecob.value      )+
                                  "*_*uf="                            + encodeURIComponent(document.cadastronovo.uf.value             )+
                                  "*_*ufent="                         + encodeURIComponent(document.cadastronovo.ufent.value          )+
                                  "*_*ufcob="                         + encodeURIComponent(document.cadastronovo.ufcob.value          )+
                                  "*_*fone="                          + encodeURIComponent(document.cadastronovo.fone.value           )+
                                  "*_*fonenf="                        + encodeURIComponent(document.cadastronovo.fonenf.value         )+
                                  "*_*transp="                        + encodeURIComponent(document.cadastronovo.transp.value         )+
                                  "*_*codtra="                        + encodeURIComponent(document.cadastronovo.codtra.value         )+
                                  "*_*numeronf="                      + encodeURIComponent(document.cadastronovo.numero.value         )+
                                  "*_*enderecotipo="                  + encodeURIComponent(document.cadastronovo.enderecotipo.value   )+
                                  "*_*enderecocompl="                 + encodeURIComponent(document.cadastronovo.complemento.value    )+
                                  "*_*codcidnfe="                     + encodeURIComponent(document.cadastronovo.codcidnfe.value      )+
                                  "*_*cidnfe="                        + encodeURIComponent(document.cadastronovo.cidnfe.value         )+
                                  "*_*stat="                          + encodeURIComponent(document.cadastronovo.stat.value)+          
                                  "*_*codstat="                       + encodeURIComponent(document.cadastronovo.codstat.value );
                      $('#content')
                        .load("../html/buscaclicepcobranca.php?cep="+ encodeURIComponent(document.cadastronovo.cepcob.value) + "&path="+ caminho);
                      });
                    });

    
                         

  </script>
</body>

</html>
