<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="Default.aspx.vb" Inherits="FacturacionWeb._Default" %>

<%@ Register Assembly="CrystalDecisions.Web, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
    Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">

    <script type='text/javascript'>
        function CloseConfirmation() {
            var r = confirm("Quiere cerrar la applicacion?");
            if (r == true) {
                window.open('', '_self', '');
                window.close();
            }
        }
    </script>

    <link href="css/Estilos.css" rel="stylesheet" type="text/css" />
    <title></title>
    <style type="text/css">
        .style3
        {
            width: 587px;
            height: 22px;
        }
        .style7
        {
            width: 73px;
            height: 22px;
        }
        .style11
        {
            width: 470px;
            margin-left: 40px;
        }
        .style16
        {
            width: 160px;
            height: 22px;
            text-transform: uppercase;
        }
        .style17
        {
            width: 160px;
            height: 22px;
            text-transform: lowercase;
        }
        .style18
        {
            height: 22px;
            width: 84px;
        }
        .style20
        {
            width: 175px;
            height: 22px;
            margin-left: 40px;
        }
        .style22
        {
            width: 44px;
        }
        .style23
        {
            width: 107px;
            text-transform: uppercase;
        }
        .style27
        {
            width: 40px;
            height: 22px;
        }
        .style30
        {
            width: 120px;
            height: 22px;
        }
        .style32
        {
            width: 129px;
        }
        .style33
        {
            width: 272px;
        }
        .style35
        {
            width: 404px;
        }
        .style36
        {
            width: 708px;
        }
        .style37
        {
            font-family: Arial, Helvetica, sans-serif;
            font-size: small;
            font-weight: normal;
            font-style: normal;
            font-variant: normal;
            text-align: left;
            width: 267px;
            height: 152px;
            background-color: #FFFFFF;
        }
        .style38
        {
            width: 173px;
            height: 152px;
            text-align: center;
        }
        .style41
        {
            width: 96px;
            height: 22px;
        }
        .style43
        {
            height: 152px;
        }
        .style44
        {
            width: 40px;
            height: 5px;
        }
        .style45
        {
            width: 587px;
            height: 5px;
        }
        .style46
        {
            width: 96px;
            height: 5px;
        }
        .style47
        {
            width: 73px;
            height: 5px;
        }
        .style48
        {
            width: 175px;
            height: 26px;
        }
        .style58
        {
            height: 28px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server" onkeydown="return (event.keyCode!=13)">
    <div class="page">
        <div class="main">
            <asp:ScriptManager ID="ScriptManager1" runat="server" />
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table style="width: 100%;">
                        <tr>
                            <td class="style37">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <img alt="LogoEmpresa.jpg" height="100" src="Imagenes/LogoEmpresa.jpg" style="width: 186px" /><asp:Label
                                    ID="Label1" runat="server" Font-Italic="True" ForeColor="Black" Text="Bienvenido al Sistema de Facturación de"></asp:Label>
                                <br />
                                <asp:Label ID="lblNomEmp" runat="server" Font-Bold="True" ForeColor="#3333FF" Text="NOMBRE DE LA EMPRESA SA DE CV"></asp:Label>
                                <br />
                                <asp:Label ID="Label2" runat="server" Font-Italic="True" ForeColor="Black" Text="Gracias por su preferencia..."></asp:Label>
                            </td>
                            <td class="style38">
                                <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="Instructivo_pdf()">Instructivo</asp:LinkButton>
                                <%--                         <asp:Button ID="Button1" runat="server" Text="Instructivo"  OnClientClick="Instructivo_pdf()" CausesValidation="False" />
                         <asp:HyperLink ID="HyperLink1" runat="server"  onclick="Instructivo_pdf()">Instructivo</asp:HyperLink>
--%>
                            </td>
                            <td class="style43">
                                <div class="CentrarLogo">
                                    <img alt="LogoCfdi.jpg" src="Imagenes/LogoCfdi.jpg" style="height: 41px; width: 47px"
                                        height="45" width="45" />
                                    <img alt="FacturaElectronica.png" src="Imagenes/FacturaElectronica.png" style="height: 46px;
                                        width: 285px" />
                                </div>
                            </td>
                        </tr>
                    </table>
                    <table style="width: 100%; height: 83px;">
                        <tr>
                            <td class="style44">
                            </td>
                            <td class="style45">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="lblMsg6" runat="server" Font-Size="Smaller" ForeColor="Red" Style="margin-bottom: 0px"
                                    Text="No existe el ticket" Width="150px"></asp:Label>
                                &nbsp;<asp:HyperLink ID="HyperLink_Archivo" runat="server" Visible="False"></asp:HyperLink>
                                &nbsp;
                            </td>
                            <td class="style46">
                            </td>
                            <td class="style47">
                            </td>
                        </tr>
                        <tr>
                            <td class="style27">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            </td>
                            <td class="style3">
                                &nbsp;<asp:Label ID="lblSku" runat="server" Text="Ticket"></asp:Label>
                                &nbsp;&nbsp;
                                <asp:TextBox ID="txtSku" runat="server" Width="138px" MaxLength="16">0159880508141</asp:TextBox>
                                <asp:Image ID="imgSku" runat="server" ImageUrl="~/Imagenes/FlechaIzq.gif" Height="16px"
                                    Visible="False" Width="35px" />&nbsp;<asp:Label ID="lblSku2" runat="server" Font-Size="Smaller"
                                        ForeColor="Red" Style="margin-bottom: 0px" Text="Ingresar número de ticket" Width="161px"></asp:Label>
                                &nbsp;
                                <asp:Button ID="btnSku" runat="server" Text="Buscar ticket" TabIndex="1" BackColor="#FD0000"
                                    Font-Bold="True" ForeColor="White" />
                            </td>
                            <td class="style41">
                                <asp:Label ID="lblSub" runat="server" Text="SubTotal"></asp:Label>
                            </td>
                            <td class="style7">
                                <asp:TextBox ID="txtSub" runat="server" class="style1" Width="80px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style27">
                                &nbsp;
                            </td>
                            <td class="style3">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
                                <asp:Image ID="imgCodBar" runat="server" Height="31px" ImageUrl="~/Imagenes/CodigoBarras.jpg"
                                    Style="text-align: right" Visible="False" Width="125px" />
                                <asp:Image ID="imgSku0" runat="server" Height="6px" ImageUrl="~/Imagenes/FlechaIzq4.jpg"
                                    Visible="False" Width="35px" />
                                &nbsp;<asp:Label ID="lblMsg7" runat="server" Font-Size="Smaller" Text="Número de ticket"></asp:Label>
                            </td>
                            <td class="style41">
                                <asp:Label ID="lblIva" runat="server" Text="Iva"></asp:Label>
                            </td>
                            <td class="style7">
                                <asp:TextBox ID="txtIva" runat="server" class="style1" TabIndex="1" Width="80px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style27">
                                &nbsp;
                            </td>
                            <td class="style3">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="lblMsg8" runat="server" Font-Size="Smaller" ForeColor="Red" Style="margin-bottom: 0px"
                                    Text="RFC inválido" Width="161px"></asp:Label>
                            </td>
                            <td class="style41">
                                <asp:Label ID="lblTot" runat="server" Text="Total"></asp:Label>
                            </td>
                            <td class="style7">
                                <asp:TextBox ID="txtTot" runat="server" class="style1" TabIndex="2" Width="80px"></asp:TextBox>
                            </td>
                        </tr>
                    </table>
                    <table style="width: 99%;">
                        <tr>
                            <td class="style22">
                                &nbsp;
                            </td>
                            <td class="style32">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="lblRfc" runat="server" Text="RFC"></asp:Label>
                            </td>
                            <td class="style23">
                                <asp:TextBox ID="txtRfc" runat="server" Width="131px" MaxLength="13" TabIndex="2">EGA781115VB2</asp:TextBox>
                            </td>
                            <td>
                                <asp:Image ID="imgRfc" runat="server" ImageUrl="~/Imagenes/FlechaIzq.gif" Height="10px"
                                    Visible="False" Width="35px" />
                                &nbsp;<asp:Label ID="lblRfc2" runat="server" Font-Size="Smaller" ForeColor="Red"
                                    Height="16px" Style="margin-bottom: 0px" Text="Ingresar RFC" Width="84px"></asp:Label>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<asp:Button ID="btnRFC" runat="server" Text="Buscar Rfc"
                                    TabIndex="3" BackColor="Red" Font-Bold="True" ForeColor="White" />
                            </td>
                        </tr>
                    </table>
                    <table style="width: 100%;">
                        <tr class="style48">
                            <td class="style58">
                            </td>
                            <td class="style58">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:Label ID="lblMsg4" runat="server" ForeColor="Red"></asp:Label>
                            </td>
                            <td class="style58">
                                <asp:Label ID="lblMsg2" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="* Requiere  información" Width="131px" Visible="False"></asp:Label>
                            </td>
                            <td class="style58">
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblNom" runat="server" Text="Nombre o Razón Social"></asp:Label>
                            </td>
                            <td class="style16">
                                <asp:TextBox ID="txtNom" runat="server" onfocus="this.value = this.value;" Width="395px"
                                    MaxLength="150" TabIndex="4" Visible="False"></asp:TextBox>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblNomErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px"></asp:Label>
                            </td>
                            <td class="style18">
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblDom" runat="server" Text="Calle"></asp:Label>
                            </td>
                            <td class="style16">
                                <asp:TextBox ID="txtDom" runat="server" Width="395px" MaxLength="80" TabIndex="5"></asp:TextBox>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblDomErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                                &nbsp;
                                <asp:Label ID="lblNum" runat="server" Text="Número"></asp:Label>
                            </td>
                            <td class="style18">
                                <asp:TextBox ID="txtNum" runat="server" MaxLength="10" TabIndex="6" Width="55px"></asp:TextBox>
                                <asp:Label ID="lblNumErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblCol" runat="server" Text="Colonia"></asp:Label>
                            </td>
                            <td class="style16">
                                <asp:TextBox ID="txtCol" runat="server" Width="395px" MaxLength="80" TabIndex="7"></asp:TextBox>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblColErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                            </td>
                            <td class="style18">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblCiu" runat="server" Text="Ciudad o Localidad"></asp:Label>
                            </td>
                            <td class="style16">
                                <asp:TextBox ID="txtCiu" runat="server" MaxLength="80" TabIndex="8" Width="395px"></asp:TextBox>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblCiuErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                                &nbsp;
                                <asp:Label ID="lblCp" runat="server" Text="Código postal"></asp:Label>
                            </td>
                            <td class="style18">
                                <asp:TextBox ID="txtCp" runat="server" Width="55px" MaxLength="5" TabIndex="9"></asp:TextBox>
                                <asp:Label ID="lblCpErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblEdo" runat="server" Text="Estado"></asp:Label>
                            </td>
                            <td class="style16">
                                <asp:TextBox ID="txtEdo" runat="server" MaxLength="80" TabIndex="10" Width="395px"></asp:TextBox>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblEdoErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                            </td>
                            <td class="style18">
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblMun" runat="server" Text="Delegación o Municipio"></asp:Label>
                            </td>
                            <td class="style16">
                                <asp:TextBox ID="txtMun" runat="server" Width="395px" MaxLength="80" TabIndex="11"></asp:TextBox>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblMunErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                            </td>
                            <td class="style18">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblPai" runat="server" Text="País"></asp:Label>
                            </td>
                            <td class="style16">
                                <asp:TextBox ID="txtPai" runat="server" MaxLength="80" TabIndex="12" Width="395px"></asp:TextBox>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblPaiErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                            </td>
                            <td class="style18">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblEma" runat="server" Text="Correo electrónico"></asp:Label>
                            </td>
                            <td class="style17">
                                <asp:TextBox ID="txtEma" runat="server" Width="395px" MaxLength="80" TabIndex="13"></asp:TextBox>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblEmaErr" runat="server" Font-Size="Smaller" ForeColor="Red" Height="16px"
                                    Style="margin-bottom: 0px" Text="*" Width="16px" Visible="False"></asp:Label>
                            </td>
                            <td class="style18">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblRegimenFiscal" runat="server" Text="Regimen Fiscal"></asp:Label>
                            </td>
                            <td class="style17">
                                <asp:DropDownList ID="cmbRegimenFiscal" runat="server" Width="395px" 
                                    Visible="False">
                                    <asp:ListItem Value="601">601 General de Ley Personas Morales</asp:ListItem>
                                    <asp:ListItem Value="603">603 Personas Morales con Fines no Lucrativos</asp:ListItem>
                                    <asp:ListItem Value="605">605 Sueldos y Salarios e Ingresos Asimilados a Salarios</asp:ListItem>
                                    <asp:ListItem Value="606">606 Arrendamiento</asp:ListItem>
                                    <asp:ListItem Value="607">607 Régimen de Enajenación o Adquisición de Bienes</asp:ListItem>
                                    <asp:ListItem Value="608">608 Demás ingresos</asp:ListItem>
                                    <asp:ListItem Value="610">610 Residentes en el Extranjero sin Establecimiento Permanente en México</asp:ListItem>
                                    <asp:ListItem Value="611">611 Ingresos por Dividendos (socios y accionistas)</asp:ListItem>
                                    <asp:ListItem Value="612">612 Personas Físicas con Actividades Empresariales y Profesionales</asp:ListItem>
                                    <asp:ListItem Value="614">614 Ingresos por intereses</asp:ListItem>
                                    <asp:ListItem Value="615">615 Régimen de los ingresos por obtención de premios</asp:ListItem>
                                    <asp:ListItem Value="616">616 Sin obligaciones fiscales</asp:ListItem>
                                    <asp:ListItem Value="620">620 Sociedades Cooperativas de Producción que optan por diferir sus ingresos</asp:ListItem>
                                    <asp:ListItem Value="621">621 Incorporación Fiscal</asp:ListItem>
                                    <asp:ListItem Value="622">622 Actividades Agrícolas, Ganaderas, Silvícolas y Pesqueras</asp:ListItem>
                                    <asp:ListItem Value="623">623 Opcional para Grupos de Sociedades</asp:ListItem>
                                    <asp:ListItem Value="624">624 Coordinados</asp:ListItem>
                                    <asp:ListItem Value="625">625 Régimen de las Actividades Empresariales con ingresos a través de Plataformas Tecnológicas</asp:ListItem>
                                    <asp:ListItem Value="626">626 Régimen Simplificado de Confianza</asp:ListItem>
                                    <asp:ListItem Value="628">628 Hidrocarburos</asp:ListItem>
                                    <asp:ListItem Value="629">629 De los Regímenes Fiscales Preferentes y de las Empresas Multinacionales</asp:ListItem>
                                    <asp:ListItem Value="630">630 Enajenación de acciones en bolsa de valores</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblEmaErr0" runat="server" Font-Size="Smaller" ForeColor="Red" 
                                    Height="16px" Style="margin-bottom: 0px" Text="*" Visible="False" Width="16px"></asp:Label>
                                &nbsp;
                            </td>
                            <td class="style18">
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                <asp:Label ID="lblUsoCfdi" runat="server" Text="Uso de CFDI"></asp:Label>
                            </td>
                            <td class="style17">
                                <asp:DropDownList ID="cmbUsoCfdi" runat="server" Width="395px" Visible="False">
                                    <asp:ListItem Value="G01">G01 Adquisición de mercancias</asp:ListItem>
                                    <asp:ListItem Value="G02">G02 Devoluciones, descuentos o bonificaciones</asp:ListItem>
                                    <asp:ListItem Value="G03">G03 Gastos en general</asp:ListItem>
                                    <asp:ListItem Value="I01">I01 Construcciones</asp:ListItem>
                                    <asp:ListItem Value="I02">I02 Mobiliario y equipo de oficina por inversiones</asp:ListItem>
                                    <asp:ListItem Value="I03">I03 Equipo de transporte</asp:ListItem>
                                    <asp:ListItem Value="I04">I04 Equipo de computo y accesorios</asp:ListItem>
                                    <asp:ListItem Value="I05">I05 Dados, troqueles, moldes, matrices y herramental</asp:ListItem>
                                    <asp:ListItem Value="I06">I06 Comunicaciones telefónicas</asp:ListItem>
                                    <asp:ListItem Value="I07">I07 Comunicaciones satelitales</asp:ListItem>
                                    <asp:ListItem Value="I08">I08 Otra maquinaria y equipo</asp:ListItem>
                                    <asp:ListItem Value="D01">D01 Honorarios médicos, dentales y gastos hospitalarios</asp:ListItem>
                                    <asp:ListItem Value="D02">D02 Gastos médicos por incapacidad o discapacidad</asp:ListItem>
                                    <asp:ListItem Value="D03">D03 Gastos funerales</asp:ListItem>
                                    <asp:ListItem Value="D04">D04 Donativos</asp:ListItem>
                                    <asp:ListItem Value="D05">D05 Intereses reales efectivamente pagados por créditos hipotecrios (casa habitación</asp:ListItem>
                                    <asp:ListItem Value="D06">D06 Aportaciones voluntarias al SAR</asp:ListItem>
                                    <asp:ListItem Value="D07">D07 Primas por seguros de gastos médicos</asp:ListItem>
                                    <asp:ListItem Value="D08">D08 Gastos de transportación escolar obligatoria</asp:ListItem>
                                    <asp:ListItem Value="D09">D09 Depósitos en cuentas para el ahorro, primas que tengan con base planes de pensiones</asp:ListItem>
                                    <asp:ListItem Value="D10">D10 Pagos por servicios educativos (colegiaturas)</asp:ListItem>
                                    <asp:ListItem Value="P01">P01 Por definir</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td class="style30">
                                <asp:Label ID="lblEmaErr1" runat="server" Font-Size="Smaller" ForeColor="Red" 
                                    Height="16px" Style="margin-bottom: 0px" Text="*" Visible="False" Width="16px"></asp:Label>
                                &nbsp;
                            </td>
                            <td class="style18">
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                    <table class="EspacioArriba" style="width: 100%;">
                        <tr>
                            <td class="style33">
                                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="UpdatePanel1">
                                    <ProgressTemplate>
                                        <table>
                                            <tr>
                                                <td align="center">
                                                    <asp:Image ID="Image2" runat="server" ImageUrl="~/Imagenes/BarraProg.gif" Height="20px" />
                                                </td>
                                            </tr>
                                        </table>
                                    </ProgressTemplate>
                                </asp:UpdateProgress>
                                <td class="style11">
                                    <asp:Button ID="btnFac" runat="server" Text="Elaborar Factura" TabIndex="14" BackColor="Red"
                                        Font-Bold="True" ForeColor="White" Style="margin-left: 0px; height: 26px;" />
                                    <asp:Image ID="imgFac" runat="server" ImageUrl="~/Imagenes/FlechaIzq.gif" Height="10px"
                                        Visible="False" Width="35px" />
                                    <asp:Label ID="lblMsg3" runat="server" Font-Size="Smaller" ForeColor="Red" Style="margin-bottom: 0px"
                                        Text="Revise bien sus datos antes de facturar" Width="239px"></asp:Label>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                        </tr>
                        <tr>
                            <td class="style33">
                                &nbsp;
                            </td>
                            <td class="style11">
                                <asp:Label ID="lblMsg" runat="server" ForeColor="Black"></asp:Label>
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                                <asp:HyperLink ID="HyperLink_Pdf" runat="server" Visible="False">[HyperLink_Pdf]</asp:HyperLink>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                    </table>
                    <table style="width: 99%;">
                        <tr>
                            <td class="style36">
                                &nbsp;&nbsp;&nbsp;<asp:Image ID="Image1" runat="server" ImageUrl="~/Imagenes/sierra1x.jpg"
                                    Height="20px" Width="54px" />
                                &nbsp;CFDI v3.3</td>
                            <td class="style35">
                                <asp:Button ID="btnReg" runat="server" Text="Regresar" Style="margin-left: 283px"
                                    Width="72px" />
                            </td>
                            <td>
                                <asp:Button ID="btnCanc" runat="server" Text="Cancelar" Width="72px" />
                            </td>
                        </tr>
                    </table>
                    <asp:Button ID="Button_Salir" runat="server" OnClientClick="CloseConfirmation()"
                        Text="Salir" Width="79px" Style="margin-left: 672px" Visible="False" />
                </ContentTemplate>
            </asp:UpdatePanel>
        </div>
    </div>
    </form>
</body>

<script language="javascript" type="text/javascript">    //inhabilitar botones
    var pbControl = null;
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    prm.add_beginRequest(BeginRequestHandler);
    prm.add_endRequest(EndRequestHandler);
    function BeginRequestHandler(sender, args) {
        pbControl = args.get_postBackElement(); //the control causing the postback
        pbControl.disabled = true;
        //pbControl.style.display = 'none';
    }
    function EndRequestHandler(sender, args) {
        //pbControl.disabled = false;
        //pbControl.style.display = 'block';
        pbControl = null;
    }
    function Instructivo_pdf() {
        window.open("sierra/Instructivo.pdf", "_blank", "toolbar=0,directories=0,status=no,menubar=0,scrollbars=1,resizable=1,copyhistory=0,width=480,height=600");
    }			
</script>

</html>
