<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="expires" CONTENT="0">	
<%
	ArrayList listaCP = (ArrayList)request.getAttribute("listaCP");	
%>
  <TABLE class="general">
    <tr height="10"> 
      <td width="100%"></td>
    </tr>
  </TABLE>
  <TABLE class="general">
    <tr> 
      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.tipoPersona"/></td>
      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.nifCif"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="50%" align="left">
	      <select name="Clase" class="inputField" size="1" onchange="javascript:fcambiaTipoPer();">
            <option <%if(request.getParameter("Clase")==null){%>SELECTED<%}%> value=""></option>
            <option <%if(request.getParameter("Clase")!=null&&request.getParameter("Clase").equals(P06BConstantes.P06B_CORREDORES_TIPOPER_JURIDICA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_TIPOPER_JURIDICA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.claseMediador.J"/></option> 
            <option <%if(request.getParameter("Clase")!=null&&request.getParameter("Clase").equals(P06BConstantes.P06B_CORREDORES_TIPOPER_FISICA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_TIPOPER_FISICA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.claseMediador.F"/></option> 
            <option <%if(request.getParameter("Clase")!=null&&request.getParameter("Clase").equals(P06BConstantes.P06B_AGENTEVINCULADO_JURIDICA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_AGENTEVINCULADO_JURIDICA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.claseMediador.AJ"/></option>
            <option <%if(request.getParameter("Clase")!=null&&request.getParameter("Clase").equals(P06BConstantes.P06B_AGENTEVINCULADO_FISICA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_AGENTEVINCULADO_FISICA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.claseMediador.AF"/></option>
            <option <%if(request.getParameter("Clase")!=null&&request.getParameter("Clase").equals(P06BConstantes.P06B_REASEGUROS_JURIDICA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_REASEGUROS_JURIDICA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.claseMediador.RJ"/></option>
            <option <%if(request.getParameter("Clase")!=null&&request.getParameter("Clase").equals(P06BConstantes.P06B_REASEGUROS_FISICA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_REASEGUROS_FISICA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.claseMediador.RF"/></option>
            <option <%if(request.getParameter("Clase")!=null&&request.getParameter("Clase").equals(P06BConstantes.P06B_OPERADORBANCA_VINCULADO)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_OPERADORBANCA_VINCULADO%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.claseMediador.OV"/></option>
            <option <%if(request.getParameter("Clase")!=null&&request.getParameter("Clase").equals(P06BConstantes.P06B_OPERADORBANCA_EXCLUSIVO)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_OPERADORBANCA_EXCLUSIVO%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.claseMediador.OE"/></option>
          </select> 
      </td>
      <td width="50%" align="left"><input class="inputField" type="text" name="DNI" value="<%=(request.getParameter("DNI")==null?"":request.getParameter("DNI"))%>" size="12" maxlength="9"/></td>
      
    </tr>
  </TABLE>
  
  <TABLE class="general">
  	<tr id="bloquePerJuridico">
  		<td width="100%">
	  		<table width="100%" cellpadding="0" cellspacing="0">
	  			<tr> 
			      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.razSoc"/></td>
			    </tr>
			    <tr> 
			      <td width="100%" align="left"><input class="inputField" type="text" name="RazSoc" value="<%=(request.getParameter("RazSoc")==null?"":request.getParameter("RazSoc"))%>" size="120" maxlength="150"/></td>
			    </tr>
	  		</table>
  		</td>
  	</tr>
  	<tr id="bloquePerFisico">
  		<td width="100%">
	  		<table width="100%" cellpadding="0" cellspacing="0">
	  			<tr> 
			      <td width="34%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.nombre"/></td>
			      <td width="33%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.ape1"/></td>
			      <td width="33%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.ape2"/></td>
			    </tr>
			    <tr> 
			      <td width="34%" align="left"><input class="inputField" type="text" name="Nombre" value="<%=(request.getParameter("Nombre")==null?"":request.getParameter("Nombre"))%>" size="38" maxlength="50"/></td>
			      <td width="33%" align="left"><input class="inputField" type="text" name="Ape1" value="<%=(request.getParameter("Ape1")==null?"":request.getParameter("Ape1"))%>" size="37" maxlength="50"/></td>
			      <td width="33%" align="left"><input class="inputField" type="text" name="Ape2" value="<%=(request.getParameter("Ape2")==null?"":request.getParameter("Ape2"))%>" size="37" maxlength="50"/></td>
			    </tr>
	  		</table>
  		</td>
  	</tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.provincia"/></td>
      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.municipio"/></td>
    </tr>
  </TABLE>
  <TABLE class="general">
    <tr> 
      <td width="50%" align="left">	   
	      <p06b:p06bSelectTag name="CodPro" obj="listaProvincias" onchange="javascript:cambiaProvincia()"/>
      </td> 
      <td width="50%" align="left">
      	  <p06b:p06bSelectTag name="CodMun" obj="listaMunicipios" onchange="javascript:cambiaMunicipio()"/>
      </td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.localidad"/></td>
      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.codigoPostal"/></td>
    </tr>
  </TABLE>
  <TABLE class="general">
    <tr> 
      <td width="50%" align="left">	   
	      <p06b:p06bSelectTag name="CodLoc" obj="listaLocalidades" onchange="javascript:cambiaLocalidad()"/>
      </td> 
      <td width="50%" align="left">
      	<%if(listaCP==null || listaCP.size()==0){%>
      	<!-- No tenemos ningún código postal válido para la localidad -->
      		<input class="inputField" type="text" name="CodPst" value="<%=(request.getParameter("CodPst")==null?"":request.getParameter("CodPst"))%>" size="7" maxlength="5" />
      	<%}else if(listaCP.size()==1){%>
      		<!-- Tenemos un solo CP válido para la localidad -->
      		<input class="inputField" type="text" name="CodPst" value="<%=(String)listaCP.get(0)%>" size="7" maxlength="5" readOnly />
      	<%}else{%>
      		<!-- Tenemos N CP'S válidos para la localidad -->
      		<select class="inputField" size="1" name="CodPst"/>
      			<option value=""></option>
      			<%for(int i=0;i<listaCP.size();i++){%>
      				<option <%if(request.getParameter("CodPst")!=null && request.getParameter("CodPst").equals((String)listaCP.get(i))){%> SELECTED <%}%> value="<%=(String)listaCP.get(i)%>">
      					<%=(String)listaCP.get(i)%>
      				</option>
      			<%}%>
      		</select>
      	<%}%>
      </td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.domicilio"/></td>
    </tr>
  </TABLE>
  <TABLE class="general">
    <tr> 
      <td width="100%" align="left">	   
	      <input class="inputField" type="text" name="Domici" value="<%=(request.getParameter("Domici")==null?"":request.getParameter("Domici"))%>" size="120" maxlength="50"/>
      </td> 
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="25%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.tfno1"/></td>
      <td width="25%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.tfno2"/></td>
      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.tfno3"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="25%" align="left"><input class="inputField" type="text" name="Telefot" value="<%=(request.getParameter("Telefot")==null?"":request.getParameter("Telefot"))%>" size="12" maxlength="9"/></td>
      <td width="25%" align="left"><input class="inputField" type="text" name="Telefom" value="<%=(request.getParameter("Telefom")==null?"":request.getParameter("Telefom"))%>" size="12" maxlength="9"/></td>
      <td width="50%" align="left"><input class="inputField" type="text" name="Telefoc" value="<%=(request.getParameter("Telefoc")==null?"":request.getParameter("Telefoc"))%>" size="12" maxlength="9"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="25%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.fax1"/></td>
      <td width="25%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.fax2"/></td>
      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.mail"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="25%" align="left"><input class="inputField" type="text" name="Fax1" value="<%=(request.getParameter("Fax1")==null?"":request.getParameter("Fax1"))%>" size="12" maxlength="9"/></td>
      <td width="25%" align="left"><input class="inputField" type="text" name="Fax2" value="<%=(request.getParameter("Fax2")==null?"":request.getParameter("Fax2"))%>" size="12" maxlength="9"/></td>
      <td width="50%" align="left"><input class="inputField" type="text" name="Mail" value="<%=(request.getParameter("Mail")==null?"":request.getParameter("Mail"))%>" size="58" maxlength="50"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.web"/></td>
    </tr>
  </TABLE>
  <TABLE class="general">
    <tr> 
      <td width="100%" align="left">	   
	      <input class="inputField" type="text" name="Web" value="<%=(request.getParameter("Web")==null?"":request.getParameter("Web"))%>" size="120" maxlength="250"/>
      </td> 
    </tr>
  </TABLE>

  <TABLE class="general">
    <tr> 
      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.fAlta"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" align="left"><input class="inputField" type="text" name="FechaAl" value="<%=(request.getParameter("FechaAl")==null?"":request.getParameter("FechaAl"))%>" size="12" maxlength="10"/></td>
    </tr>
  </TABLE>

  <TABLE id="tablaEstadoTitulos" class="general">
    <tr> 
      <td width="18%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.estado"/></td>

					      <td width="16%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.fechaBaja"/></td>
      					  <td width="64%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.motivoBaja"/></td>

					      <td width="16%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.fhSuspen"/></td>
					      <td width="50%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.motivoSus"/></td>
					      <td width="16%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.fhFinSus"/></td>
    </tr>
  </TABLE>
  

  <TABLE id="tablaEstadoInputs" class="general">
    <tr> 
      <td width="18%" align="left">
      	<select name="Estado" class="inputField" size="1" onchange="javascript:fcambiaEstado();">
            <option <%if(request.getParameter("Estado")==null){%>SELECTED<%}%> value=""></option>
            <option <%if(request.getParameter("Estado")!=null&&request.getParameter("Estado").equals(P06BConstantes.P06B_CORREDORES_ESTADO_ALTA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_ESTADO_ALTA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.alta"/></option> 
            <option <%if(request.getParameter("Estado")!=null&&request.getParameter("Estado").equals(P06BConstantes.P06B_CORREDORES_ESTADO_BAJA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_ESTADO_BAJA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.baja"/></option>
            <option <%if(request.getParameter("Estado")!=null&&request.getParameter("Estado").equals(P06BConstantes.P06B_CORREDORES_ESTADO_SUSPENSION)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_ESTADO_SUSPENSION%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.suspension"/></option>
            <option <%if(request.getParameter("Estado")!=null&&request.getParameter("Estado").equals(P06BConstantes.P06B_CORREDORES_ESTADO_REVISION)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_ESTADO_REVISION%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.revision"/></option>
            <option <%if(request.getParameter("Estado")!=null&&request.getParameter("Estado").equals(P06BConstantes.P06B_CORREDORES_ESTADO_PDTE_ALTA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_ESTADO_PDTE_ALTA%>" disabled><p06b:p06bResEtiquetasTag resource="pantallas.literal.pdteAlta"/></option>
            <option <%if(request.getParameter("Estado")!=null&&request.getParameter("Estado").equals(P06BConstantes.P06B_CORREDORES_ESTADO_PDTE_BAJA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_ESTADO_PDTE_BAJA%>" disabled><p06b:p06bResEtiquetasTag resource="pantallas.literal.pdteBaja"/></option>
            <option <%if(request.getParameter("Estado")!=null&&request.getParameter("Estado").equals(P06BConstantes.P06B_CORREDORES_ESTADO_ALTA_RECHAZADA)){%>SELECTED<%}%> VALUE="<%=P06BConstantes.P06B_CORREDORES_ESTADO_ALTA_RECHAZADA%>"><p06b:p06bResEtiquetasTag resource="pantallas.literal.altaRechazada"/></option>
         </select> 
      </td>

				  			<td width="16%" align="left"><input class="inputField" type="text" name="FechaBaj" value="<%=(request.getParameter("FechaBaj")==null?"":request.getParameter("FechaBaj"))%>" size="12" maxlength="10"/></td>
	      					<td width="64%" align="left"><input class="inputField" type="text" name="MotivoB" value="<%=(request.getParameter("MotivoB")==null?"":request.getParameter("MotivoB"))%>" size="55" maxlength="50"/></td>

				  			<td width="16%" align="left"><input class="inputField" type="text" name="FechaSus" value="<%=(request.getParameter("FechaSus")==null?"":request.getParameter("FechaSus"))%>" size="12" maxlength="10"/></td>
	      					<td width="50%" align="left"><input class="inputField" type="text" name="MotivoS" value="<%=(request.getParameter("MotivoS")==null?"":request.getParameter("MotivoS"))%>" size="55" maxlength="50"/></td>
	      					<td width="16%" align="left"><input class="inputField" type="text" name="FecFinSu" value="<%=(request.getParameter("FecFinSu")==null?"":request.getParameter("FecFinSu"))%>" size="12" maxlength="10"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="33%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.capsoc"/></td>
      <td width="67%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.paticipa"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="33%" align="left"><input class="inputField" type="text" name="Capsoc" value="<%=(request.getParameter("Capsoc")==null?"":P06BUtil.normalizaNumero(request.getParameter("Capsoc"),2))%>" size="20" maxlength="17" onblur="poner2decimales('FormCorredores','Capsoc');"/></td>
      <td width="67%" align="left"><input class="inputField" type="text" name="Paticipa" value="<%=(request.getParameter("Paticipa")==null?"":P06BUtil.normalizaNumero(request.getParameter("Paticipa"),0))%>" size="20" maxlength="9"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.cursoFormacion"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" align="left">
      	<table width="100%" cellpadding="0" cellspacing="0">
      		<tr>
	      		<td width="5%">
		      		<div class="headTextB"><b><p06b:p06bResEtiquetasTag resource="pantallas.literal.si"/></b></div>
	      		</td>
	      		<td width="4%">
	      			<input class="inputField" type="radio" <%if(request.getParameter("Curso")!=null && request.getParameter("Curso").equals(P06BConstantes.P06B_CTE_SI)){%> CHECKED <%}%> name="Curso" value="<%=P06BConstantes.P06B_CTE_SI%>" onclick="javascript:cambiaCurso();"/>
	      		</td>
	      		<td width="5%">
	      			<div class="headTextB"><b><p06b:p06bResEtiquetasTag resource="pantallas.literal.no"/></b></div>
	      		</td>
	      		<td width="86%"><input class="inputField" type="radio" <%if(request.getParameter("Curso")!=null && request.getParameter("Curso").equals(P06BConstantes.P06B_CTE_NO)){%> CHECKED <%}%> name="Curso" value="<%=P06BConstantes.P06B_CTE_NO%>" onclick="javascript:cambiaCurso();"/>
	      		</td>
	      		
      		</tr>
      		<tr id="bloqueCurso">
      			<td align="left" colspan="4">
	      			<textarea class="inputField" name="DenCurso" cols="120" rows="2" maxlength="250"><%=(request.getParameter("DenCurso")==null?"":request.getParameter("DenCurso"))%></textarea>
	      		</td>
      		</tr>
      	</table>
      </td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.acredHonorabilidad"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" align="left">
      	<table width="100%" cellpadding="0" cellspacing="0">
      		<tr>
	      		<td width="5%">
		      		<div class="headTextB"><b><p06b:p06bResEtiquetasTag resource="pantallas.literal.si"/></b></div>
	      		</td>
	      		<td width="4%">
	      			<input class="inputField" type="radio" <%if(request.getParameter("Acredita")!=null && request.getParameter("Acredita").equals(P06BConstantes.P06B_CTE_SI)){%> CHECKED <%}%> name="Acredita" value="<%=P06BConstantes.P06B_CTE_SI%>" onclick="javascript:cambiaAcredita();"/>
	      		</td>
	      		<td width="5%">
	      			<div class="headTextB"><b><p06b:p06bResEtiquetasTag resource="pantallas.literal.no"/></b></div>
	      		</td>
	      		<td width="86%"><input class="inputField" type="radio" <%if(request.getParameter("Acredita")!=null && request.getParameter("Acredita").equals(P06BConstantes.P06B_CTE_NO)){%> CHECKED <%}%> name="Acredita" value="<%=P06BConstantes.P06B_CTE_NO%>" onclick="javascript:cambiaAcredita();"/>
	      		</td>
	      		
      		</tr>
      		<tr id="bloqueAcredita">
      			<td align="left" colspan="4">
	      			<textarea class="inputField" name="DAcredita" cols="120" rows="2" maxlength="250"><%=(request.getParameter("DAcredita")==null?"":request.getParameter("DAcredita"))%></textarea>
	      		</td>
      		</tr>
      	</table>
      </td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.progrFormacion"/></td>
    </tr>
  </TABLE>
  <TABLE class="general">
    <tr> 
      <td width="100%" align="left">
	      <textarea class="inputField" name="DProFor" cols="120" rows="2" maxlength="100"><%=(request.getParameter("DProFor")==null?"":request.getParameter("DProFor"))%></textarea>
      </td> 
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.actosInscrib"/></td>
    </tr>
  </TABLE>
  <TABLE class="general">
    <tr> 
      <td width="100%" align="left">
	      <textarea class="inputField" name="ActIns" cols="120" rows="2" maxlength="250"><%=(request.getParameter("ActIns")==null?"":request.getParameter("ActIns"))%></textarea>
      </td> 
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" class="searchTitle"><p06b:p06bResEtiquetasTag resource="pantallas.literal.trasdgs"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr> 
      <td width="100%" align="left"><input class="inputField" type="text" name="Trasdgs" value="<%=(request.getParameter("Trasdgs")==null?"":request.getParameter("Trasdgs"))%>" size="12" maxlength="10"/></td>
    </tr>
  </TABLE>
  
  <TABLE class="general">
    <tr height="10"> 
      <td width="100%"></td>
    </tr>
  </TABLE>