<script>
mostrarCargaImg = function(){ $('#s_ImagenLoad')[0].style.display = 'inline'; }
ocultarCargaImg = function(){ $('#s_ImagenLoad')[0].style.display = 'none'; }

mostrarMensajeError = function( s_MensajeError )
{
    $( "#resultContent" ).html( '<div id="mensaje_error_content" class="error">' + s_MensajeError + '</div>' );
    setTimeout( function(){ $( "#mensaje_error_content" ).fadeOut( 800 ).fadeIn( 800 ).fadeOut( 500 ).fadeIn( 500 ).fadeOut( 300 ); }, 4000 );
}
</script>
<script>
ejecutarGuardar = function()
{
    x = confirm( "Esta seguro de guardar todos los cambios" );
    if( x )
    {
        blockContent( 'content_buttons' );
        var strFormSerialize = $( 'form' ).serialize();

        executeAjaxJson
        ( 
            "<?php echo buildUrl( 'addemp/saveCompania', "" ) ?>", 
            strFormSerialize,
            function( o_json )
            {
                unBlockContent( 'content_buttons' );
                if( o_json.error )
                {
                    //showAlertBootStrap( 'content_alert', 'alert-danger', o_json.mensaje_error );
                    mostrarMensajeError( o_json.mensaje_error );
                    return false;
                }
                                
                if( o_json.type_sub )
                {
                    location.href = "<?=buildUrl( 'addemp/edit', "i_Id=")?>" + o_json.id;
                }
                else
                {
                    location.href = "<?=buildUrl( 'addemp/addProd', "i_Id=")?>" + o_json.id;
                }
            } 
        );
    }
    /*
    mostrarCargaImg();
    var strFormSerialize = $( 'form' ).serialize();
    var formData = new FormData( document.getElementById( "form1" ) );
    $.ajax
    (
        {
            url: '<?php echo buildUrl( 'addemp/saveCompania', "" ) ?>',
            type: 'POST',
            data: formData,
            async: false,
            cache: false,
            contentType: false,
            enctype: 'multipart/form-data',
            processData: false,
            success: function ( response )
            {
                var o_json = jQuery.parseJSON( response );
                console.log( o_json );
                if( o_json.error )
                {
                    ocultarCargaImg();
                    mostrarMensajeError( o_json.mensaje_error );
                    return false;
                }
                if( o_json.type_sub )
                {
                    location.href = "<?=buildUrl( 'addemp/edit', "i_Id=")?>" + o_json.id;
                }
                else
                {
                    location.href = "<?=buildUrl( 'addemp/addProd', "i_Id=")?>" + o_json.id;
                }
            }
        }
    );
    */
}
</script>
<script type="text/javascript">
var IE =  !!(window.attachEvent && navigator.userAgent.indexOf('Opera') === -1);

function acceptNum(evt){
    // NOTE: Backspace = 8, Enter = 13, '0' = 48, '9' = 57
    var key = IE ? evt.keyCode : evt.which ;
    return (key < 32 || key <= 13 || (key >= 48 && key <= 57));
}

function acceptNumLetters(evt){
    var key = IE ? evt.keyCode : evt.which ;
    return (key <= 13 || (key >= 48 && key <= 57) || (key >= 65 && key <= 90) || (key >= 97 && key <= 122)  || (key == 32));
}

function acceptNumLetterAndNums(evt){
    var key = IE ? evt.keyCode : evt.which ;
    return (key <= 13 || (key >= 48 && key <= 57) || (key >= 65 && key <= 90) || (key >= 97 && key <= 122)  || (key == 32) || key <= 32 || key <= 13 || (key >= 48 && key <= 57));
}

validarAlias = function()
{
    if( trim( $( "#DescripcionLarga" ).val() ) == "" )
    {
        $( "#DescripcionLarga" ).val( $( "#DescripcionCorta" ).val() );
    }
}
</script>
    
    <div id="resultContent" style=""></div>


    <table width="100%">
        <tr>
            <td width="50%" valign="top" >
            
                <fieldset class="formGen" style="margin-top:0px">
                    
                    <form id="form1" name="form1" method="POST" onsubmit="return false;"  enctype="multipart/form-data">
                        <input type="hidden" name="TypeProc" id="TypeProc" value="0">
                        <input type="hidden" name="i_Id" id="i_Id" value="<?=$o_GSS_CompaniaBN->getIdCompania()?>">

                        <table border="0" cellspacing="6" cellpadding="0">
                            <tr>
                                <td nowrap="nowrap" width="33%" class="cabecera"><label class="label req" for="Ruc" >RUC</label></td>
                                <td nowrap="nowrap" width="33%"><input class="text required" type="text" name="Ruc" id="Ruc" size="15" maxlength="11" value="<?=$o_GSS_CompaniaBN->getRuc();?>"  onkeypress="return acceptNum(event);" onblur="this.value=this.value.toUpperCase();"/></td>
                                <td nowrap="nowrap" width="33%" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="DescripcionCorta" >Nombre Empresa</label></td>
                                <td nowrap="nowrap"><input class="text required" type="text" name="DescripcionCorta" id="DescripcionCorta" size="45" maxlength="200" value="<?=$o_GSS_CompaniaBN->getDescripcionCorta();?>"  onblur="this.value=this.value.toUpperCase(); validarAlias();"/></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="DescripcionLarga" >Empresa Alias</label></td>
                                <td nowrap="nowrap"><input class="text required" type="text" name="DescripcionLarga" id="DescripcionLarga" size="45" maxlength="200" value="<?=$o_GSS_CompaniaBN->getDescripcionLarga();?>"  onblur="this.value=this.value.toUpperCase();"/></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="Codigo" >C&oacute;digo</label></td>
                                <td nowrap="nowrap"><input class="text required" type="text" name="Codigo" id="Codigo" size="45" maxlength="20" value="<?=$o_GSS_CompaniaBN->getCodigo();?>"  onblur="this.value=this.value.toUpperCase();"/></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="Telefono1" >Tel&eacute;fono</label></td>
                                <td nowrap="nowrap"><input class="text" type="text" name="Telefono1" id="Telefono1" size="45" maxlength="200" value="<?=$o_GSS_CompaniaBN->getTelefono1();?>"  onblur="this.value=this.value.toUpperCase();"/></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="PaginaWeb" >P&aacute;gina Web</label></td>
                                <td nowrap="nowrap"><input class="text" type="text" name="PaginaWeb" id="PaginaWeb" size="45" maxlength="200" value="<?=$o_GSS_CompaniaBN->getPaginaWeb();?>"  onblur=""/></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="EmailEmpresa" >Email Empresa</label></td>
                                <td nowrap="nowrap"><input class="text" type="text" name="EmailEmpresa" id="EmailEmpresa" size="45" maxlength="200" value="<?=$o_GSS_CompaniaBN->getEmailEmpresa();?>"  onblur=""/></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera" colspan="">
                                    <label class="label req" for="Departmanto" >Departamento</label>
                                </td>
                                <td nowrap="nowrap" width="100%" class="cabecera" colspan="2">
                                    <select class="form-control" name="Departamento" id="Departamento" 
                                        onchange="$('#Provincia')[0].options.length = 0; $('#Distrito')[0].options.length=1; publicForSelectAjaxJSON('<?php echo buildUrlComplet( 'alm.php/transporte/request' ) ?>', $( 'form' ).serialize() + '&TipoProc=Provincia', 'Provincia');"
                                        >
                                        <option value=""> - SELECCIONE - </option>
                                        <?php foreach ( MST_UbigeoFN::selectDepartamentoActivos() as $i_Key => $o_DptMST_UbigeoBN ){ ?>
                                        <option value="<?=$o_DptMST_UbigeoBN->getIdUbigeo()?>" <?php if( $o_GSS_CompaniaBN->getDepartamento()==$o_DptMST_UbigeoBN->getIdUbigeo() ){ echo "SELECTED"; } ?>> <?=$o_DptMST_UbigeoBN->getDescripcion()?> </option>
                                        <?php } ?>
                                    </select>
                                    <label class="col-form-label" for="Provincia">Provincia</label>
                                    <select class="form-control" name="Provincia" id="Provincia"
                                            onchange="$('#Distrito')[0].options.length = 1; publicForSelectAjaxJSON('<?php echo buildUrlComplet( 'alm.php/transporte/request' ) ?>', $( 'form' ).serialize() + '&TipoProc=Distrito', 'Distrito');"
                                            >
                                        <option value=""> - SELECCIONE - </option>
                                        <?php if( $o_GSS_CompaniaBN->getProvincia() ){ ?>
                                            <?php foreach ( MST_UbigeoFN::selectProvinciaActivos( $o_GSS_CompaniaBN->getDepartamento() ) as $i_Key => $o_DptMST_UbigeoBN ){ ?>
                                        <option value="<?=$o_DptMST_UbigeoBN->getIdUbigeo()?>" <?php if( $o_GSS_CompaniaBN->getProvincia()==$o_DptMST_UbigeoBN->getIdUbigeo() ){ echo "SELECTED"; } ?>> <?=$o_DptMST_UbigeoBN->getDescripcion()?> </option>
                                            <?php } ?>
                                        <?php } ?>
                                    </select>
                                    <label class="col-form-label" for="Distrito">Distrito</label>
                                    <select class="form-control" name="Distrito" id="Distrito">
                                        <option value=""> - SELECCIONE - </option>
                                        <?php if( $o_GSS_CompaniaBN->getDistrito() ){ ?>
                                            <?php foreach ( MST_UbigeoFN::selectDistritoActivos( $o_GSS_CompaniaBN->getProvincia() ) as $i_Key => $o_DptMST_UbigeoBN ){ ?>
                                        <option value="<?=$o_DptMST_UbigeoBN->getIdUbigeo()?>" <?php if( $o_GSS_CompaniaBN->getDistrito()==$o_DptMST_UbigeoBN->getIdUbigeo() ){ echo "SELECTED"; } ?>> <?=$o_DptMST_UbigeoBN->getDescripcion()?> </option>
                                            <?php } ?>
                                        <?php } ?>
                                    </select>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="DireccionComun" >Direcci&oacute;n</label></td>
                                <td nowrap="nowrap"><textarea class="" name="DireccionComun" id="descripcioncDireccionComunmpleta" rows="3"cols="40"  onblur=""><?=$o_GSS_CompaniaBN->getDireccionComun();?></textarea></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="DireccionAdicional" >Informaci&oacute;n Adicional</label></td>
                                <td nowrap="nowrap"><textarea class="" name="DireccionAdicional" id="DireccionAdicional" rows="3"cols="40"  onblur=""><?=$o_GSS_CompaniaBN->getDireccionAdicional();?></textarea></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>
                            <tr>
                                <td colspan="3"><hr noshade="noshade" align="center" style="border-color: #CFCFCF;  color: #CFCFCF; height: 0.1px; text-align: center;"></td>
                            </tr>

                            <tr>
                                <td class="" colspan="3">
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td width="50%">
                                                <div style="display: inline-block; width: 49%;"><label class="label req" for="FacturaNotasFormatoPDF" >Formato PDF en Facturas y Notas Asociadas</label></div>
                                                <div style="display: inline-block; width: 50%;">
                                                    <select class="combo" name="FacturaNotasFormatoPDF" id="FacturaNotasFormatoPDF">
                                                        <option value=""> - Seleccione - </option>
                                                        <option value="A4" <?php if( $o_GSS_CompaniaBN->getFacturaNotasFormatoPDF() == "A4" ){ echo "SELECTED"; } ?> > TAMAÑO A4 </option>
                                                        <option value="A5" <?php if( $o_GSS_CompaniaBN->getFacturaNotasFormatoPDF() == "A5" ){ echo "SELECTED"; } ?> > TAMAÑO A5 (MITAD DE A4) </option>
                                                        <option value="TICKET" <?php if( $o_GSS_CompaniaBN->getFacturaNotasFormatoPDF() == "TICKET" ){ echo "SELECTED"; } ?> > TAMAÑO TICKET </option>
                                                    </select>
                                                </div>
                                            </td>
                                            <td width="50%" align="right">
                                                <div style="display: inline-block; width: 49%;"><label class="label req" for="IdUsuarioAdmin" >Id Usuario Admin</label></div>
                                                <div style="display: inline-block; width: 50%; text-align: right">
                                                    <input type="text" class="text" name="IdUsuarioAdmin" id="IdUsuarioAdmin" value="<?=$o_GSS_CompaniaBN->getIdUsuarioAdmin();?>">
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                            <tr>
                                <td class="" colspan="3">
                                    <table cellspacing="0" cellpadding="0" border="0" width="100%">
                                        <tr>
                                            <td width="50%">
                                                <div style="display: inline-block; width: 49%;"><label class="label req" for="BoletaNotasFormatoPDF" >Formato PDF en Boletas y Notas Asociadas</label></div>
                                                <div style="display: inline-block; width: 50%;">
                                                    <select class="combo" name="BoletaNotasFormatoPDF" id="BoletaNotasFormatoPDF">
                                                        <option value=""> - Seleccione - </option>
                                                        <option value="A4" <?php if( $o_GSS_CompaniaBN->getBoletaNotasFormatoPDF() == "A4" ){ echo "SELECTED"; } ?> > TAMAÑO A4 </option>
                                                        <option value="A5" <?php if( $o_GSS_CompaniaBN->getBoletaNotasFormatoPDF() == "A5" ){ echo "SELECTED"; } ?> > TAMAÑO A5 (MITAD DE A4) </option>
                                                        <option value="TICKET" <?php if( $o_GSS_CompaniaBN->getBoletaNotasFormatoPDF() == "TICKET" ){ echo "SELECTED"; } ?> > TAMAÑO TICKET </option>
                                                    </select>
                                                </div>
                                            </td>
                                            <td width="50%" align="right">
                                                <div style="display: inline-block; width: 49%;"><label class="label req" for="IdClientePorDef" >Cliente por Defecto</label></div>
                                                <div style="display: inline-block; width: 50%; text-align: right">
                                                    <input type="text" class="text" name="IdClientePorDef" id="IdClientePorDef" value="<?=$o_GSS_CompaniaBN->getIdClientePorDef();?>">
                                                </div>
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>

                            <tr>
                                <td colspan="3"><hr noshade="noshade" align="center" style="border-color: #CFCFCF;  color: #CFCFCF; height: 0.1px; text-align: center;"></td>
                            </tr>

                            <tr>
                                <td nowrap="nowrap" class="cabecera">
                                    <input type="checkbox" name="AfectoIGVFlag" id="AfectoIGVFlag" value="Y" <?php if( $o_GSS_CompaniaBN->getAfectoIGVFlag()=="Y" ){ echo "CHECKED"; } ?>>&nbsp;
                                    <label class="label req" for="AfectoIGVFlag" >Afecto a IGV</label>
                                </td>
                                <td nowrap="nowrap" class="cabecera">
                                    <input type="checkbox" name="MostrarNumeroLote" id="MostrarNumeroLote" value="1" <?php if( $o_GSS_CompaniaBN->getMostrarNumeroLote() ){ echo "CHECKED"; } ?>>&nbsp;
                                    <label class="label req" for="MostrarNumeroLote" >Mostrar Ingreso Numero Lote</label>
                                </td>
                                <td nowrap="nowrap" class="cabecera">
                                    <input type="checkbox" name="OpeDsctoStockEnGuiaR" id="OpeDsctoStockEnGuiaR" value="1" <?php if( $o_GSS_CompaniaBN->getOpeDsctoStockEnGuiaR() ){ echo "CHECKED"; } ?>>&nbsp;
                                    <label class="label req" for="OpeDsctoStockEnGuiaR" > Restar Stock en Guia Remision </label>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera">
                                    <input type="checkbox" name="CarteraClienteFlag" id="CarteraClienteFlag" value="1" <?php if( $o_GSS_CompaniaBN->getCarteraClienteFlag() ){ echo "CHECKED"; } ?>>&nbsp;
                                    <label class="label req" for="CarteraClienteFlag" >Cartera de Cliente</label>
                                </td>
                                <td nowrap="nowrap" class="cabecera">
                                    <input type="checkbox" name="MostrarMargenVenta" id="MostrarMargenVenta" value="1" <?php if( $o_GSS_CompaniaBN->getMostrarMargenVenta() ){ echo "CHECKED"; } ?>>&nbsp;
                                    <label class="label req" for="MostrarMargenVenta" >Mostrar Margen Venta</label>
                                </td>
                            </tr>


                            <!--
                            <tr>
                                <td nowrap="nowrap" class="cabecera" colspan="3">
                                    <input type="checkbox" name="AfectoRetencionIGVFlag" id="AfectoRetencionIGVFlag" value="Y" <?php if( $o_GSS_CompaniaBN->getAfectoRetencionIGVFlag()=="Y" ){ echo "CHECKED"; } ?>>&nbsp;
                                    <label class="label req" for="AfectoRetencionIGVFlag" >Afecto a Retenci&oacute;n</label>
                                </td>
                            </tr>
                            <tr>
                                <td nowrap="nowrap" class="cabecera" colspan="3">
                                    <input type="checkbox" name="AfectoPercepcionIGVFlag" id="AfectoPercepcionIGVFlag" value="Y" <?php if( $o_GSS_CompaniaBN->getAfectoPercepcionIGVFlag()=="Y" ){ echo "CHECKED"; } ?>>&nbsp;
                                    <label class="label req" for="AfectoPercepcionIGVFlag" >Afecto a Percepci&oacute;n</label>
                                </td>
                            </tr>
                            -->

                            <tr>
                                <td colspan="3">
                                    <input type="hidden" name="AfectoRetencionIGVFlag" id="AfectoRetencionIGVFlag" value="">
                                    <input type="hidden" name="AfectoPercepcionIGVFlag" id="AfectoPercepcionIGVFlag" value="">

                                    <hr noshade="noshade" align="center" style="border-color: #CFCFCF;  color: #CFCFCF; height: 0.1px; text-align: center;">
                                </td>
                            </tr>

                            <tr>
                                <td nowrap="nowrap" class="cabecera">
                                    <input type="checkbox" name="EnviarProveedorAutoFlag" id="EnviarProveedorAutoFlag" value="Y" <?php if( $o_GSS_CompaniaBN->getEnviarProveedorAutoFlag()=="Y" ){ echo "CHECKED"; } ?>>&nbsp;
                                    <label class="label req" for="EnviarProveedorAutoFlag" >Enviar al Proveedor Automaticamente</label>
                                </td>
                                <td nowrap="nowrap" class="cabecera">
                                    <label class="label req" for="DirParaBuscarComprobante" >URL para Buscar Comprobante</label>
                                    <input type="text" class="text" name="DirParaBuscarComprobante" id="DirParaBuscarComprobante" value="<?=$o_GSS_CompaniaBN->getDirParaBuscarComprobante()?>" >&nbsp;

                                </td>
                            </tr>

                            <tr>
                                <td colspan="3"><hr noshade="noshade" align="center" style="border-color: #CFCFCF;  color: #CFCFCF; height: 0.1px; text-align: center;"></td>
                            </tr>

                            <tr>
                                <td nowrap="nowrap" class="cabecera"><label class="label req" for="PorTipoCambio" >Porcentaje Tipo Comercial</label></td>
                                <td nowrap="nowrap"><input class="text" type="text" name="PorTipoCambio" id="PorTipoCambio" value="<?=$o_GSS_CompaniaBN->getPorTipoCambio()?>" style="text-align: center;"></td>
                                <td nowrap="nowrap" class="cabecera">&nbsp;</td>
                            </tr>

                            <tr>
                                <td colspan="3"><hr noshade="noshade" align="center" style="border-color: #CFCFCF;  color: #CFCFCF; height: 0.1px; text-align: center;"></td>
                            </tr>
                            <?php if( $o_GSS_CompaniaBN->getIdCompania() ){ ?>
                            <tr>
                                <td colspan="3">
                                    <input type="button" class="button" value="Auditoria" id="btnAudi" onclick="verAuditoria();">
                                    <script>
                                    $( "#btnAudi" )
                                    .click
                                    (
                                        function()
                                        {
                                            $( '#myIframe2' ).attr( 'src', '<?=buildUrl( 'addemp/audi', 'i_Id='.$o_GSS_CompaniaBN->getIdCompania() )?>' );
                                            $( '#dialog2' ).dialog( 'open' );
                                        }
                                    )
                                    </script>
                                </td>
                            </tr>
                            <?php } ?>
                        </table>

                        <table width="100%" border="0" style="margin-top: 10px;" id="content_buttons">
                            <tr>
                                <td align="center">
                                    <input type="hidden" name="TypeSub" id="TypeSub" value="1"/>
                                    <input type="button" class="button" value="Cancelar" onclick="location.href='<?php echo buildUrl( 'addemp/list', '' ) ?>'">
                                    <input type="submit" class="button" value="Grabar" onclick="">
                                    <input type="submit" class="button" value="Grabar y Siguiente" onclick="$('#TypeSub').val( '0' );">
                                </td>
                            </tr>
                        </table>
                    </form>
                </fieldset>
            </td>

            <td width="50%" valign="top" >
                <?php if( $o_GSS_CompaniaBN->getIdCompania() ){ ?>
                <fieldset class="formGen" style="margin-top:0px">
                    <legend class="fielsettex"> Imagen </legend>
                    <form name="form2" id="form2" method="POST" action="<?php echo buildUrl( 'addemp/saveImgCompania' ) ?>" enctype="multipart/form-data">
                        <input type="hidden" name="TypeProc" id="TypeProc" value="0">
                        <input type="hidden" name="i_Id" id="i_Id" value="<?=$o_GSS_CompaniaBN->getIdCompania()?>">
                        <input type="hidden" name="TypeSubForm2" id="TypeSubForm2" value="1"/>
                        <table class="" width="100%" border="0" cellspacing="0" cellpadding="2">
                            <tr>
                                <td align="center">
                                    <input type="file" name="file_upload" id="file_upload" class="form-control-file">
                                    <input type="submit" class="button" value="Cargar Imagen" name="submit" onclick="$('#TypeSubForm2').val('file_to_upload');">
                                    <input type="submit" class="button" value="Eliminar Imagen" name="submit" onclick="$('#TypeSubForm2').val('file_to_upload_del');">
                                </td>
                            </tr>
                            <?php if( $o_GSS_CompaniaBN->getIdCompania() ){ ?>
                            <!--
                            <tr>
                                <td align="center"><img src="<?=$o_GSS_CompaniaBN->getLogoFileFinal()?>" border="1" width="500" height="250" ></td>
                            </tr>
                            -->
                            <tr>
                                <td align="center" style="vertical-align: top;">
                                    <div>
                                        <div style="">
                                            <img src="<?=$o_GSS_CompaniaBN->getLogoFileFinal()?>" border="1" style="width: <?=$o_GSS_CompaniaBN->getLogoFileAncho()?>px; height: <?=$o_GSS_CompaniaBN->getLogoFileAlto()?>px;" >
                                        </div>
                                        <div>
                                            <label>Ancho</label> <input type="text" class="text" style="text-align: center;" value="<?=$o_GSS_CompaniaBN->getLogoFileAncho()?>" id="LogoFileAncho" name="LogoFileAncho"><br>
                                        </div>
                                        <div>
                                            <label>Largo</label> <input type="text" class="text" style="text-align: center;" value="<?=$o_GSS_CompaniaBN->getLogoFileAlto()?>" id="LogoFileAlto" name="LogoFileAlto">
                                        </div>
                                    </div>
                                </td>
                            </tr>
                            
                            <?php } ?>
                        </table>
                    </form>
                </fieldset>
                <?php } ?>
                <br>
                <fieldset class="formGen" style="margin-top:0px">
                    <legend class="fielsettex"> Opciones de Dise&ntilde;o </legend>
                    <form id="form3" name="form3" method="POST" onsubmit="return false;"  enctype="multipart/form-data">
                    <div style="padding-top: 5px; padding-bottom: 5px;">
                        <table style="width: 100%;" border="1" cellpadding="3" cellspacing="0" >
                            <tr>
                                <th style="background-color: <?=$o_GSS_CompaniaBN->getLogoBackgroundColor()?>;">Logo Backgrounds <input type="text" class="text" style="text-align: center;" value="<?=$o_GSS_CompaniaBN->getLogoBackgroundColor()?>" id="LogoBackgroundColor" name="LogoBackgroundColor"></th>
                                <th style="background-color: <?=$o_GSS_CompaniaBN->getNavbarBackgroundColor()?>;">Navbar Backgrounds <input type="text" class="text" style="text-align: center;" value="<?=$o_GSS_CompaniaBN->getNavbarBackgroundColor()?>" id="NavbarBackgroundColor" name="NavbarBackgroundColor"></th>
                                <th style="background-color: <?=$o_GSS_CompaniaBN->getSidebarBackgroundColor()?>;">Sidebar Backgrounds <input type="text" class="text" style="text-align: center;" value="<?=$o_GSS_CompaniaBN->getSidebarBackgroundColor()?>" id="SidebarBackgroundColor" name="SidebarBackgroundColor"></th>
                            </tr>
                        </table>
                    </div>
                    </form>
                </fieldset>
                <br>
                <fieldset class="formGen" style="margin-top:0px">
                    <legend class="fielsettex"> Cuenta Bancaria </legend>
                    <div style="padding-top: 5px; padding-bottom: 5px;">
                        <table style="width: 100%;" border="0" cellpadding="2" cellspacing="0" >
                            <tr>
                                <th align="center" width="25%"><u>Banco Desc</u></th>
                                <th align="center" width="25%"><u>Nro Cuenta</u></th>
                                <th align="center" width="25%"><u>CC Interbancario</u></th>
                                <th align="center" width="25%"><u>Detraccion</u></th>
                                <th align="center" width="25%"><u>Visible PDF</u></th>
                            </tr>
                            <?php foreach( MST_CuentaBancariaFN::selectActivos() as $o_MST_CuentaBancariaBN ){ ?>
                            <tr>
                                <td align="center"><?=$o_MST_CuentaBancariaBN->getDescripcionCuenta()?></td>
                                <td align="center"><?=$o_MST_CuentaBancariaBN->getNumeroCuenta()?></td>
                                <td align="center"><?=$o_MST_CuentaBancariaBN->getNumeroCuentaCCI()?></td>
                                <td align="center"><?=$o_MST_CuentaBancariaBN->getEsDetraccion()?></td>
                                <td align="center"><?=$o_MST_CuentaBancariaBN->getEsVisible()?></td>
                            </tr>
                            <?php } ?>
                        </table>
                    </div>
                    
                </fieldset>
            </td>

        </tr>
    </table>
                                                    
<div id="dialog"><iframe id="myIframe" src="" frameborder="0" height="100%" width="100%"></iframe></div>
<div id="dialog2"><iframe id="myIframe2" src="" frameborder="0" height="100%" width="100%"></iframe></div>
<script>
    objMainTab.modalUIDialog( "#dialog", { title : "Ver Plano", width : 425, height  : 350 } );
    objMainTab.modalUIDialog( "#dialog2", { title : "Auditoria", width : 425, height  : 230 } );
</script>
                                                    
<script>
$.validator.setDefaults
(
    {
        submitHandler: function( form ) 
        {
            ejecutarGuardar();
        }
    }
);
$( "#form1" ).validate();
</script>