<%@ page import="com.cidat.proclets.*,itourbaskBeans.*,java.util.*,q53_util.*,java.io.IOException" session="true" %>
<% com.cidat.proclets.ProcletServiceData sd =(com.cidat.proclets.ProcletServiceData)request.getAttribute("com.cidat.proclets.sd"); %>
<% String q53_idioma = q53Util.getIdioma(sd); 
// Literales
String mnu_recogida_datos = q53Util.getLiteral(sd, "MNU_RECOGIDA_DATOS", q53_idioma);
String enc_tipo_fecha = q53Util.getLiteral(sd, "ENC_TIPO_FECHA", q53_idioma);
String n1_5 = q53Util.getLiteral(sd, "N1_5", q53_idioma);
String n1_12 = q53Util.getLiteral(sd, "N1_12", q53_idioma);
String enc_total = q53Util.getLiteral(sd, "ENC_TOTAL", q53_idioma);
String enc_personas = q53Util.getLiteral(sd, "ENC_PERSONAS", q53_idioma);
String enc_tipo_procedencia = q53Util.getLiteral(sd, "ENC_TIPO_PROCEDENCIA", q53_idioma);
String enc_local = q53Util.getLiteral(sd, "ENC_LOCAL", q53_idioma);
String enc_territorio_historico = q53Util.getLiteral(sd, "ENC_TERRITORIO_HISTORICO", q53_idioma);
String enc_comunidad_autonoma = q53Util.getLiteral(sd, "ENC_COMUNIDAD_AUTONOMA", q53_idioma);
String enc_pais = q53Util.getLiteral(sd, "ENC_PAIS", q53_idioma);
String n3_5_5 = q53Util.getLiteral(sd, "N3_5_5", q53_idioma);
String gen_volver = q53Util.getLiteral(sd, "GEN_VOLVER", q53_idioma);
    String n8_5_1 = q53Util.getLiteral(sd, "N8_5_1", q53_idioma);
    String n8_5_2 = q53Util.getLiteral(sd, "N8_5_2", q53_idioma);
    String n8_5_3 = q53Util.getLiteral(sd, "N8_5_3", q53_idioma);
    String n8_5_4 = q53Util.getLiteral(sd, "N8_5_4", q53_idioma);
%>
<%!
private void escribirSeparador (javax.servlet.jsp.JspWriter out) throws IOException {
    out.println ("<table cellpadding='0' cellspacing='0' border='0' width='100%'>");
    out.println ("<tr><td height='8'></td></tr>");
    out.println ("<tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>");
    out.println ("<tr><td height='8'></td></tr>");
    out.println ("</table>");
}
/**
 * escribe una pregunta de tipo OPCIONES
 **/
private void escribirPregOpciones (javax.servlet.jsp.JspWriter out, q53PreguntaBean preguntaBean, int num_pregunta,int preguntasLength) throws IOException, ProcletException {
    String codPregunta = preguntaBean.getCodPregunta();
    int intCodPregunta = Integer.valueOf(codPregunta).intValue();
    String descripcion = preguntaBean.getDescripcionPregunta();
    boolean obligatoria = preguntaBean.isObligatoria();  
    out.println ("<table cellpadding='0' cellspacing='0' border='0'>");
    out.println ("<tr>");
    out.println ("<td width='10'></td>");
    out.println ("<td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>"+num_pregunta+"</td>");
    out.println ("<td class='textonegrobold'>&nbsp;"+descripcion+"</td>");
    out.println ("</tr>");
    out.println ("<tr><td height='5'></td></tr>");
    out.println ("</table>");
    q53OpcionesBean opcionesBean = preguntaBean.getPreguntaOpciones();    
    String formato = opcionesBean.getFormato();    
    if (formato.equals(q53Constantes.FORMATO_SELECT)) {
        out.println ("<table cellpadding='0' cellspacing='0' border='0' width='90%'>");
        out.println ("<tr><td height='8'></td></tr>");
        out.println ("<tr><td width='27'></td><td bgcolor='#000000'><img src='/appcont/itourbask/imgs/px_negro.gif' width='500' height='1'></td></tr>");
        out.println ("<tr><td height='8'></td></tr>");
        out.println ("</table>");
    }else if (formato.equals(q53Constantes.FORMATO_CHECK)) {
        out.println ("<table cellpadding='0' cellspacing='0' border='0'>");
        out.println ("<tr>");
        out.println ("<td width='25'></td>");
        List opcionesList = opcionesBean.getOpcionList();
        if(opcionesList != null && !(opcionesList.isEmpty())){
            int numOpciones = opcionesList.size();
            for (int j=0; j<numOpciones; j++) {
                q53OpcionBean opcionBean = (q53OpcionBean)opcionesList.get(j);
                String codOpcion = opcionBean.getCodOpciones();
                String descripcionOpcion = opcionBean.getDescipcionOpcion();
                out.println ("<td><input name='opt_check_"+codPregunta+"' type='checkbox' value='"+codOpcion+"'></td><td class='textoverdebold'>"+descripcionOpcion+"&nbsp;&nbsp;</td>");
            }
        }        
        out.println ("</td>");
        out.println ("</tr>");
        out.println ("</table>");
    }else if (formato.equals(q53Constantes.FORMATO_RADIO)) {
        out.println ("<table cellpadding='0' cellspacing='0' border='0'>");
        out.println ("<tr>");
        out.println ("<td width='25'></td>");
        List opcionesList = opcionesBean.getOpcionList();
        if(opcionesList != null && !(opcionesList.isEmpty())){
            int numOpciones = opcionesList.size();
            for (int j=0; j<numOpciones; j++) {
                q53OpcionBean opcionBean = (q53OpcionBean)opcionesList.get(j);
                String codOpcion = opcionBean.getCodOpciones();
                String descripcionOpcion = opcionBean.getDescipcionOpcion();
                out.println ("<td><input name='opt_"+codPregunta+"' type='radio' value='"+codOpcion+"'></td>");
                out.println ("<td class='textoverdebold'>"+descripcionOpcion+"</td>");
                out.println ("<td width='8'></td>");
            }
        }
        out.println ("</tr>");
        out.println ("</table>");
    }
    escribirSeparador (out);
}
/**
 * escribe una pregunta de tipo TEXTO
 **/
private void escribirPregTexto (javax.servlet.jsp.JspWriter out, q53PreguntaBean preguntaBean,  int num_pregunta,int preguntasLength) throws IOException, ProcletException {
    String codPregunta = preguntaBean.getCodPregunta();
    int intCodPregunta = Integer.valueOf(codPregunta).intValue();
    String descripcion = preguntaBean.getDescripcionPregunta();
    boolean obligatoria = preguntaBean.isObligatoria();
    q53TextoBean textoBean = preguntaBean.getPreguntaTexto();
    int tamano = textoBean.getTamanioTexto();
    out.println ("<table cellpadding='0' cellspacing='0' border='0'>");
    out.println ("<tr>");
    out.println ("<td width='10'></td>");
    out.println ("<td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>"+num_pregunta+"</td>");
    out.println ("<td class='textonegrobold'>&nbsp;"+descripcion+"</td>");
    out.println ("</tr>");
    out.println ("<tr><td height='5'></td></tr>");
    out.println ("</table>");
    /*@todo dependiendo del tamaño, deberíamos poner más o menos lineas!!! */
    out.println ("<table cellpadding='0' cellspacing='0' border='0' width='100%' align='center'>");
    out.println ("<tr><td height='8' colspan = '2'></td></tr>");
    out.println ("<tr><td width='27'></td><td bgcolor='#000000'><img src='/appcont/itourbask/imgs/px_negro.gif' width='500' height='1'></td></tr>");
    out.println ("<tr><td height='8'></td></tr>");
    out.println ("</table>");
    escribirSeparador (out);
}
/**
 * escribe una pregunta de tipo FECHA
 **/
private void escribirPregFecha (javax.servlet.jsp.JspWriter out, q53PreguntaBean preguntaBean, ProcletServiceData sd,int num_pregunta,int preguntasLength) throws IOException, ProcletException {
    String q53_idioma = q53Util.getIdioma(sd);
    String codPregunta = preguntaBean.getCodPregunta();
    int intCodPregunta = Integer.valueOf(codPregunta).intValue();
    String descripcion =preguntaBean.getDescripcionPregunta();
    boolean obligatoria = preguntaBean.isObligatoria();
    q53FechaBean fechaBean = preguntaBean.getPreguntaFecha();
    String fecha_min = fechaBean.getFechaMin();
    String fecha_max = fechaBean.getFechaMax();
    out.println ("<table cellpadding='0' cellspacing='0' border='0'>");
    out.println ("<tr>");
    out.println ("<td width='10'></td>");
    out.println ("<td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>"+num_pregunta+"</td>");
    out.println ("<td class='textonegrobold'>&nbsp;"+descripcion+"</td>");
    out.println ("</tr>");
    out.println ("<tr><td height='5'></td></tr>");
    out.println ("</table>");
    out.println ("<table cellpadding='0' cellspacing='0' border='0' width='180'>");
    out.println ("<tr><td height='10' colspan = '2'></td></tr>");
    out.println ("<tr><td width='27'></td><td bgcolor='#000000'><img src='/appcont/itourbask/imgs/px_negro.gif' width='150' height='1'></td></tr>");
    out.println ("</table>");
    escribirSeparador (out);
}

%>
<!doctype>
<html>
<head>
<title> itourbask </title>
<link rel="stylesheet" href="/appcont/itourbask/styles/estilos.css" type="text/css">
<script src="/appcont/itourbask/scripts/param.js"></script>
<script src="/appcont/itourbask/scripts/general.js"></script>
</head>
<jsp:include page="/q53_gen_cabecera.jsp" />
<!-- FIN CABECERA -->
<!-- CENTRO -->
<table border="0" cellspacing="0" cellpadding="0" width="100%">
    <tr>
        <td width="100%" valign="top"><table width="100%" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td>
<!-- CENTRO -->
<!-- titulo Recogida de datos -->
            <table cellpadding="0" cellspacing="0" border="0" width="100%">
                <tr>
                    <td width="5" align="right"><img src="/appcont/itourbask/imgs/titulo_izq.gif" height="15" width="5"></td>
                    <td width="10" valign="middle" bgcolor="#20a42c" class="textoblancobold">•</td>
                    <td valign="middle" bgcolor="#20a42c"><span class="textoblancobold"><%= mnu_recogida_datos %></span></td>
                    <td width="5"><img src="/appcont/itourbask/imgs/titulo_der.gif" height="15" width="5"></td>
                </tr>
                <tr><td><img src="/appcont/itourbask/imgs/px.gif" width="1" height="5"></td></tr>
            </table>
<!-- FIN titulo Recogida de datos -->            
<%//q53EncuestaBean encuestaBean  = (q53EncuestaBean)sd.getVal("encVisible");
q53EncuestaBean encuestaBean  = (q53EncuestaBean)sd.getVal("encuestaGV");
if(encuestaBean != null){
String recogidaDatos="N";
if(encuestaBean.isRecogidaDatos()){
    recogidaDatos = "S";
}
String codEncuesta = encuestaBean.getCodEncuesta();
String codVersion = encuestaBean.getCodVersion();
String descEncuesta = encuestaBean.getDescripcionEncuesta();
%>
            <form name="frm" method="post" action="/q53ItourbaskWar/q53usrGuardarServlet" class="frmclass">
                <table cellpadding='0' cellspacing='0' border='0'>
                    <tr>
                        <td width='10'></td>
                        <td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>1</td>
                        <td class='textonegrobold'>&nbsp;<%=enc_tipo_fecha%></td></tr>
                    <tr><td height='5'></td></tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0' width='180'>
                    <tr><td height='10'></td></tr>
                    <tr><td width='27'></td><td bgcolor='#000000'><img src='/appcont/itourbask/imgs/px_negro.gif' width='150' height='1'></td></tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                    <tr><td height='8'></td></tr>
                    <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                    <tr><td height='8'></td></tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0'>
                   <%List literalesGruposList = null;
                  if(sd.getVal("literalesGrupos") != null){
                    literalesGruposList = (List)sd.getVal("literalesGrupos");
                  }
                  if(literalesGruposList != null && !literalesGruposList.isEmpty()){%>
                
                    <tr>
                        <td width='10'></td>
                        <td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>2</td>
                        <td class='textonegrobold'>&nbsp;<%=literalesGruposList.get(0)%></td>
                        <td width='25'></td>
                        <td class='textoverdebold'>&nbsp;<%=literalesGruposList.get(1)%>&nbsp;</td>
                        <td><input type='text' name='grp_2_2_1' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td class='textoverdebold'>&nbsp;<%=literalesGruposList.get(2)%>&nbsp;</td>
                        <td><input type='text' name='grp_2_2_2' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                    </tr>
               
                <%}%>
                 </table>  
                <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                    <tr><td height='8'></td></tr>
                    <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                    <tr><td height='8'></td></tr>
                </table>                
                <table cellpadding='0' cellspacing='0' border='0'>
                    <tr>
                        <td width='10'></td>
                        <td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>3</td>
                        <td class='textonegrobold'>&nbsp;<%=n1_5%></td>
                        <td width='25'></td>
                        <td class='textogrisclarobold'>&nbsp;<%=enc_total%>&nbsp;</td>
                        <td class='textogrisclarobold'>&nbsp;&nbsp;&nbsp;&nbsp;<input type='text' name='totalPersonas' id='totalPersonas' disabled value='' size='10' maxlength='10' class='inptxt' style='{width:50px;}'>&nbsp;<%=enc_personas%>&nbsp;</td>
                    </tr>
                    <tr><td height='5'></td></tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0'>
                    <tr>
                        <td>
                            <table cellpadding='0' cellspacing='0' border='0'>
                                <tr>
                                     <td width='25'></td>
                                     <td class='textoverdebold'>&nbsp;<%= n8_5_1 %>&nbsp;</td>
                                     <td><input type='text' name='grp_5_4_1' id='grp_5_4_1' value='' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                     <td class='textoverdebold'>&nbsp;<%= n8_5_2 %>&nbsp;</td>
                                     <td><input type='text' name='grp_5_4_2' id='grp_5_4_2' value='' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                     <td width='25'></td>
                                     <td class='textoverdebold'>&nbsp;<%= n8_5_3 %>&nbsp;</td>
                                     <td><input type='text' name='grp_5_4_3' id='grp_5_4_3' value='' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                     <td class='textoverdebold'>&nbsp;<%= n8_5_4 %>&nbsp;</td>
                                     <td><input type='text' name='grp_5_4_4' id='grp_5_4_4' value='' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                     <td width='25'></td> 
                                     <td class='textoverdebold'>&nbsp;<%=n3_5_5%>&nbsp;</td>
                                     <td><input type='text' name='grp_5_4_5' id='grp_5_4_5' value='' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                    <tr><td height='8'></td></tr>
                    <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                    <tr><td height='8'></td></tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0'>
                    <tr>
                        <td width='10'></td>
                        <td width='13' height='13' valign='middle' bgcolor='#20a42c' class='textoblancobold'>4</td>
                        <td class='textonegrobold'>&nbsp;<%=enc_tipo_procedencia%></td>    
                        <td width='25'></td>
                        <td class='textoverdebold' align="left"><%=enc_local%>&nbsp;&nbsp;
                        <input type='text' name='local' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>
                        <span class="textogrisclarobold">&nbsp;&nbsp;<%=enc_personas%></span>
                        </td>
                    </tr>   
                  </table>
                  <table cellpadding='0' cellspacing='0' border='0'>
                    <tr>
                        <td width='25'></td>
                        <td class='textoverdebold' colspan="2"><%=enc_territorio_historico%>&nbsp;&nbsp;</td>
                        <td colspan="2">
                            <table cellpadding='0' cellspacing='0' border='0'>
                                <tr>
                                    <%for(int i=0;i<3;i++){%>
                                    <td width='10'>&nbsp;</td>
                                    <td>
                                        <table cellpadding='0' cellspacing='0' border='0' width='150'>
                                            <tr>
                                                <td bgcolor='#000000'><img src='/appcont/itourbask/imgs/px_negro.gif' height='1' width="150"></td>
                                            </tr>
                                        </table>
                                    </td>
                                    <%}%>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                         <td width='25'></td>
                        <td class='textoverdebold' colspan="2"><%=enc_comunidad_autonoma%>&nbsp;&nbsp;</td>
                        <td colspan="2">
                            <table cellpadding='0' cellspacing='0' border='0'>
                                <tr>
                                <%for(int i=0;i<3;i++){%>
                                    <td width='10'>&nbsp;</td>
                                    <td>
                                        <table cellpadding='0' cellspacing='0' border='0' width='150'>
                                            <tr>
                                                <td bgcolor='#000000'><img src='/appcont/itourbask/imgs/px_negro.gif' height='1' width="150"></td>
                                            </tr>
                                        </table>
                                    </td>
                                <%}%>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                         <td width='25'></td>
                        <td class='textoverdebold' colspan="2"><%=enc_pais%>&nbsp;&nbsp;</td>
                        <td colspan="2">
                            <table cellpadding='0' cellspacing='0' border='0'>
                                <tr>
                                <%for(int i=0;i<3;i++){%>
                                    <td width='10'>&nbsp;</td>
                                    <td>
                                        <table cellpadding='0' cellspacing='0' border='0' width='150'>
                                            <tr>
                                                <td bgcolor='#000000'><img src='/appcont/itourbask/imgs/px_negro.gif' height='1' width="150"></td>
                                            </tr>
                                        </table>
                                    </td>
                                <%}%>
                                </tr>
                            </table>
                        </td>
                    </tr>
                    <tr>
                         <td width='25'></td>
                        <td class='textoverdebold' colspan="2">&nbsp;&nbsp;</td>
                        <td colspan="2">
                            <table cellpadding='0' cellspacing='0' border='0'>
                                <tr>
                                <%for(int i=0;i<3;i++){%>                                  
                                    <td width='10'>&nbsp;</td>
                                    <td class='textogrisclarobold' width='150'><input type='text' size='2' maxlength='2' class='inptxt' style='{width:25px;}'>&nbsp;&nbsp;<%=enc_personas%></td>
                                <%}%>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                    <tr><td height='8'></td></tr>
                    <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                    <tr><td height='8'></td></tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0'>
                <%List idiomaConsultaList = null;
                  if(sd.getVal("literalesIdiomaConsulta") != null){
                    idiomaConsultaList = (List)sd.getVal("literalesIdiomaConsulta");
                    if(idiomaConsultaList != null && !idiomaConsultaList.isEmpty()){
                    %>
                    <table cellpadding='0' cellspacing='0' border='0'>
                      <tr>
                        <td width='10'></td>
                        <td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>5</td>
                        <td class='textonegrobold'>&nbsp;<%=idiomaConsultaList.get(0)%></td>
                        <td width='25'></td>
                        <%for(int j=1;j<8;j++){%>                        
                        <td><input name='opt_4' type='radio' value='1'></td>
                        <td class='textoverdebold'><%=idiomaConsultaList.get(j)%></td>
                        <td width='8'></td>
                        <%}%>                       
                    </tr>
               
                <%  }
                }%>
                 </table>
                <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                    <tr><td height='8'></td></tr>
                    <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                    <tr><td height='8'></td></tr>
                </table>                
                <table cellpadding='0' cellspacing='0' border='0'>
<%List informacionSolicitadaList = null;
if(sd.getVal("literalesInformacionSolicitada") != null){
    informacionSolicitadaList = (List)sd.getVal("literalesInformacionSolicitada");
    if(informacionSolicitadaList != null && !informacionSolicitadaList.isEmpty()){
%>
                    <tr>
                        <td width='10'></td>
                        <td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>7</td>
                        <td class='textonegrobold'>&nbsp;<%=informacionSolicitadaList.get(0)%></td>
                        <td width='25'></td>
                <%for(int j=1;j<7;j++){%>
                        <td><input name='opt_check_7' type='checkbox' value='<%=j%>'></td>
                        <td class='textoverdebold'><%=informacionSolicitadaList.get(j)%>&nbsp;&nbsp;</td>                   
                 <%}%>                     
                
<%  }
}%>         
                </table>
                <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                    <tr><td height='8'></td></tr>
                    <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                    <tr><td height='8'></td></tr>
                </table>
<%List tipoInformacionList = null;
if(sd.getVal("literalesTipoInformacion") != null){
    tipoInformacionList = (List)sd.getVal("literalesTipoInformacion");
    if(tipoInformacionList != null && !tipoInformacionList.isEmpty()){
%>                
                <table cellpadding='0' cellspacing='0' border='0'>
                    <tr>
                        <td width='10'></td>
                        <td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>6</td>
                        <td class='textonegrobold'>&nbsp;<%=tipoInformacionList.get(0)%></td>
                    </tr>
                    <tr><td height='5'></td></tr>
                </table>
                <table cellpadding='0' cellspacing='0' border='0'>
                    <tr>
                    <td width='25'></td>
                    <td colspan="4" class='textonegrobold' align="center"><%=tipoInformacionList.get(17)%></td>
                    <td width='8'></td>
                    <td colspan="4" class='textonegrobold' align="center"><%=tipoInformacionList.get(18)%></td>
                    <td width='8'></td>
                    <td colspan="4" class='textonegrobold' align="center"><%=tipoInformacionList.get(19)%></td>
                </tr>
                <tr>
                    <td width='25'></td>
                    <td bgcolor='#000000' colspan="4"><img src='imgs/px.gif' width='1' height='1'></td>
                    <td width='8'></td>
                    <td bgcolor='#000000' colspan="4"><img src='imgs/px.gif' width='1' height='1'></td>
                    <td width='8'></td>
                    <td bgcolor='#000000' colspan="4"><img src='imgs/px.gif' width='1' height='1'></td>
                </tr>
                <tr>
                    <td width='25'></td>
                    <input name='opt_8' type='hidden' id='tipo_check_8'>
                    <td><input name='opt_check_8' type='checkbox' value='10'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(10)%>&nbsp;&nbsp;</td>
                    <td><input name='opt_check_8' type='checkbox' value='9'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(9)%>&nbsp;&nbsp;</td>
                    <td width='8'></td>
                    <td><input name='opt_check_8' type='checkbox' value='1'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(1)%>&nbsp;&nbsp;</td>
                    <td><input name='opt_check_8' type='checkbox' value='12'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(12)%>&nbsp;&nbsp;</td>
                    <td width='8'></td>
                    <td><input name='opt_check_8' type='checkbox' value='11'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(11)%>&nbsp;&nbsp;</td>
                    <td><input name='opt_check_8' type='checkbox' value='7'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(7)%>&nbsp;&nbsp;</td>
                </tr>
                <tr>
                    <td width='25'></td>
                    <td><input name='opt_check_8' type='checkbox' value='14'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(14)%>&nbsp;&nbsp;</td>
                    <td><input name='opt_check_8' type='checkbox' value='6'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(6)%>&nbsp;&nbsp;</td>
                    <td width='8'></td>
                    <td><input name='opt_check_8' type='checkbox' value='2'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(2)%>&nbsp;&nbsp;</td>
                    <td><input name='opt_check_8' type='checkbox' value='5'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(5)%>&nbsp;&nbsp;</td>
                    <td width='8'></td>
                    <td><input name='opt_check_8' type='checkbox' value='3'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(3)%>&nbsp;&nbsp;</td>
                    <td><input name='opt_check_8' type='checkbox' value='4'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(4)%>&nbsp;&nbsp;</td>
                </tr>
                <tr>
                    <td width='25'></td>
                    <td><input name='opt_check_8' type='checkbox' value='15'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(16)%>&nbsp;&nbsp;</td>
                    <td><input name='opt_check_8' type='checkbox' value='15'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(15)%>&nbsp;&nbsp;</td>
                    <td width='8'></td>
                    <td><input name='opt_check_8' type='checkbox' value='13'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(13)%>&nbsp;&nbsp;</td>
                    <td><input name='opt_check_8' type='checkbox' value='8'></td>
                    <td class='textoverdebold'><%=tipoInformacionList.get(8)%>&nbsp;&nbsp;</td>
                </tr>
            </table>
<%  }
}%>            
            <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                <tr><td height='8'></td></tr>
                <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                <tr><td height='8'></td></tr>
            </table>
            <table cellpadding='0' cellspacing='0' border='0'>
<%List tipoServicioList = null;
if(sd.getVal("literalesTipoServicio") != null){
    tipoServicioList = (List)sd.getVal("literalesTipoServicio");
    if(tipoServicioList != null && !tipoServicioList.isEmpty()){
%>              
                    <tr>
                        <td width='10'></td>
                        <td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>8</td>
                        <td class='textonegrobold'>&nbsp;<%=tipoServicioList.get(0)%></td>                
                        <td width='25'></td>
                     <%for(int j=1;j<6;j++){%>               
                        <td><input name='opt_check_1' type='checkbox' value='<%=j%>'></td>
                        <td class='textoverdebold'><%=tipoServicioList.get(j)%>&nbsp;&nbsp;</td>
                    <%}%>
            
<%  }
}%>      
      </table>
            <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                <tr><td height='8'></td></tr>
                <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                <tr><td height='8'></td></tr>
            </table>
            <table cellpadding='0' cellspacing='0' border='0'>
 <table cellpadding='0' cellspacing='0' border='0'>;
    <tr>
		<td width='10'></td>
		<td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>12</td>
		<td class='textonegrobold'>&nbsp;<%=n1_12%></td>
	</tr>
	<tr>
		<td height='5'></td>
	</tr>
</table>
<table cellpadding='0' cellspacing='0' border='0'>
	<tr>
		<td width='25'></td>
		<td><input name='txt_"+codPregunta+"' type='text' class='inptxt' style='width: 400px;'></td>
	</tr>
</table>
<script>
	preguntas[preguntasLength]=new gen_PregTexto(12,<%=n1_12%>,'N','texto',1)
</script>
<%List medioRecepcionList = null;
if(sd.getVal("literalesMedioRecepcion") != null){
    medioRecepcionList = (List)sd.getVal("literalesMedioRecepcion");
    if(medioRecepcionList != null && !medioRecepcionList.isEmpty()){
%>            
            
                <tr>
                    <td width='10'></td>
                    <td width='13' height='13' valign='middle' align='center' bgcolor='#20a42c' class='textoblancobold'>9</td>
                    <td class='textonegrobold'>&nbsp;<%=medioRecepcionList.get(0)%></td>
                    <td width='25'></td>
                 <%for(int j=1;j<8;j++){%>
                    <td><input name='opt_3' type='radio' value='<%=j%>'></td>
                    <td class='textoverdebold'><%=medioRecepcionList.get(j)%></td>
                    <td width='8'></td>
               <%}%>
                </tr>
           
<%  }
}%>                
            </table>
            <table cellpadding='0' cellspacing='0' border='0' width='100%'>
                <tr><td height='8'></td></tr>
                <tr><td bgcolor='#20a42c'><img src='/appcont/itourbask/imgs/px.gif' width='1' height='1'></td></tr>
                <tr><td height='8'></td></tr>
            </table>
<%if(sd.getVal("encVisible") != null){
    int num_pregunta = 10;
    int preguntasLength= 8;
    if(sd.getVal("preguntasList") != null && !((List)sd.getVal("preguntasList")).isEmpty()){
        List preguntasList = (List)sd.getVal("preguntasList");
        int numPreguntas = preguntasList.size();
        for(int k=0;k<numPreguntas;k++){
            q53PreguntaBean preguntaBean = (q53PreguntaBean)preguntasList.get(k);
            String tipoPregunta = preguntaBean.getTipoPregunta();
            if (tipoPregunta.equals(q53Constantes.TIPO_OPCIONES)) {
            preguntasLength++;            
            escribirPregOpciones(out, preguntaBean, num_pregunta,preguntasLength);
        }else if (tipoPregunta.equals(q53Constantes.TIPO_TEXTO)) {
            preguntasLength++;
            escribirPregTexto(out, preguntaBean, num_pregunta,preguntasLength);
        }else if (tipoPregunta.equals(q53Constantes.TIPO_FECHA)) {
            preguntasLength++;
            escribirPregFecha(out, preguntaBean,sd,  num_pregunta,preguntasLength);
        }
        num_pregunta++;
        }
    } // for i
}//if enc_visible%>
<!-- volver -->
            <table cellpadding="2" cellspacing="0" border="0" align="center">
                <tr>
                    <td><img src="/appcont/itourbask/imgs/btn_ant.gif" width="14" height="14" border="0" alt=""></td>
                    <td class="textonegrobold">[<a href="/q53ItourbaskWar/q53usrEncuestaPresencialServlet?cod_encuesta=<%= sd.gOS("cod_encuesta") %>&cod_version=<%= sd.gOS("cod_version") %>&respuesta_rd_asociada=<%= sd.gOS("respuesta_rd_asociada") %>&encuestas_terminadas=<%= sd.gOS("encuestas_terminadas") %>" hidefocus id="btn_terminar" class="linkrojobold"><%= gen_volver %></a>]</td>
                </tr>
            </table>
<!-- FIN volver -->
            </form>
<!-- FIN CENTRO -->
<%}%>
        </td>
    </tr>
</table>
</body>
</html>
