<?php 

	include("Funciones.php");
	include("funcion/funciones.php");
  	include("clases/BDConexion.php");
  	include("clases/clsclinico.php");
  	$objclinico = new clsclinico;
if(isset($doc_id)){
			$existe=$objclinico->DioExamenFisi($doc_id);
			//echo $existe;
			//echo "DocId: ".$doc_id;
			if ($existe==1){
			   $aler=2;
			   }
			else{
				if($existe==0){$aler=1;}
				}
			
			}
			

?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>EXAMEN FISICO - PERENCO</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stilos/Estilos.css" rel="stylesheet" type="text/css">
<style type="text/css">
<!--
.Estilo1 {font-size: 14px}
.Estilo3 {font-size: 16px}
.Estilo4 {font-size: 10px}
.Estilo5 {font-size: 9px}
.Estilo6 {font-size: 12px}
.Estilo7 {font-size: 11px}
.Estilo8 {font-size: 10.5px}
.Estilo9 {color: #FFFFFF}
-->
</style>
<SCRIPT language=JavaScript src="js/calendario.js"></SCRIPT>
<SCRIPT LANGUAGE=javascript>
function fn(form,field)
{
var next=0, found=false
var f=form
if(event.keyCode!=13) return;
for(var i=0;i<f.length;i++) {
if(field.name==f.item(i).name){
next=i+1;
found=true
break;
}
}
while(found){
if( f.item(next).disabled==false && f.item(next).type!='hidden'){
f.item(next).focus();
break;
}
else{
if(next<f.length-1)
next=next+1;
else
break;
}
}
}
</SCRIPT>
<script>
function enviar_url(form,url,ex){
	
	if (form1.fecha.value==""){
			alert("Debe Ingresar la Fecha.\n y es Obligatorio");
			return;	
	  						}
	if (form1.nombres.value==""){
			alert("Debe Ingresar el Nombre del Trabajador.\n y es Obligatorio. \n presiona Buscar o Nuevo");
			btn_ver1.focus();
			return;	
	  						}
	if(form1.grabar.value)
	{
		
		form1.submit();
		
	 }
		
	
}
function volver(form){
  location.reload('fondo.php');
  
  }
 function Limpiar(form)
{
		var next=0;
		var f=form;
		for(var i=0;i<f.length;i++) {
			if(f.item(i).type=='text'){
				f.item(i).value="";
						}
			}
}
</script>
<script language="JavaScript"> 
<!--
//sURL,x,y
function Abrir_Ventanapopup1(sURL,x,y) { 
/*var especificaciones="top=0, left=0, toolbar=no,location=no, status=yes,menubar=no,scrollbars=no, resizable=no, width=1,height=1" 
var titulo="Titulo"
window.open(el_url,titulo,especificaciones);*/ 

if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=no"
			par = par + "menubar=no,toolbar=no,status=yes"
			var ventana = window.open(sURL,"Ver",par)
			ventana.focus();
}
//--> 
</script>
<script language="JavaScript"> 
<!--
//sURL,x,y
function Abrir_Ventanapopup2(sURL,x,y) { 
/*var especificaciones="top=0, left=0, toolbar=no,location=no, status=yes,menubar=no,scrollbars=no, resizable=no, width=1,height=1" 
var titulo="Titulo"
window.open(el_url,titulo,especificaciones);*/ 

if (!window.focus) return;
			var par;
			par = "width=" +x + ",height="+y+","
			par = par + "dependent=no,scrollbars=yes,resizable=no"
			par = par + "menubar=no,toolbar=no,status=yes"
			var ventana = window.open(sURL,"Ver",par)
			ventana.focus();
}
//--> 
</script>
<?php $url="registro_exafisico.php?a=1";?>
<script language="JavaScript" type="text/JavaScript">
function MensajeEditar(m){
if (m==1){window.alert("Se Guardará el Exámen Físico satisfactoriamente");
			form1.submit();
         }
if (m==2){
		     if(confirm("Ya! Existe Un Examen Fisíco Registrado para el Trabajador Verifique en el Menú Consulta: \n ¿Si desea crear Un Registro Nuevo Presiones Aceptar? O \n Presione Cancelar Para Ver la Ficha Existente"))
			 	{
				form1.submit();
				}
			 else{
				Limpiar(form1);
			    document.form1.proyec.focus();	
				window.location="<? echo $url ?>";
				  }
			 
			 
			 }
	}
</script>
</head>

<?php
if($aler==1){
     echo "<body onLoad='MensajeEditar(1)'> ";
	 $envio = "procesos/grabar_regexafisico.php?param=0";
	 $mes = date("m");
	} 
else {
     if (empty($aler)){echo "<body background='imagenes/fondo.jpg'>";
	 $envio = "registro_exafisico.php";
	 $mes = date("m");
	 }
	 if($aler==2){
	 $envio = "procesos/grabar_regexafisico.php?param=1";
	 echo "<body onLoad='MensajeEditar(2)'  background='imagenes/fondo.jpg'>";
	 $mes = $mes;
	 }

    }
if(a==1){$envio ="registro_exafisico.php";}
?>
<table width="460" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr class="lblCampo" >
    <td colspan="4"><div align="center">
        <table width="319" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td>&nbsp;</td>
            <td valign="bottom">&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td width="25"><img src="estilo_tabla/parte_sup_izq.gif" width="25" height="25"></td>
            <td width="409" background="estilo_tabla/parte_sup_cen.gif" valign="bottom">
              <div align="left" class="lblSubTitulo" >
                <div align="right" class="lblParrafo">
                  <div align="left" class="lblSubTitulo">Ex&aacute;men F&iacute;sico </div>
                </div>
            </div></td>
            <td width="25"><img src="estilo_tabla/parte_sup_der.gif" width="25" height="25" border="0" usemap="#Map"></td>
          </tr>
          <tr>
            <td width="25" background="estilo_tabla/parte_med_izq.gif">&nbsp;</td>
            <td width="409" height="86" background="estilo_tabla/parte_med_cen.gif"><div align="center">
              <form action="<?=$envio?>" method="post" name="form1">
                <table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="74" rowspan="2">&nbsp;</td>
                    <td width="622"><div align="center" class="lblParrafo Estilo1"><em>DEPARTAMENTO DE QHSE- CR</em></div></td>
                    <td width="67" rowspan="2">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><div align="center" class="lblParrafo"><em>Perenco Per&uacute; Limited  Sucursal del Per&uacute;</em></div></td>
                  </tr>
                  <tr>
                    <td colspan="3"><table width="720" border="1" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="538" bgcolor="#009900"><div align="center" class="lblSubTitulo Estilo3">
                              <div align="center" class="Estilo9">
                                <div align="center"></div>
                              </div>
                          </div></td>
                          <td width="45" bgcolor="#009900" class="rdoBanners Estilo4">Fecha</td>
                          <td width="129" bgcolor="#009900"><input name="fecha" type="text" class="lblForm" id="fecha2" onkeyup=fn(this.form,this) value="<? echo $fecha?>" size="12" readonly >
                            <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td colspan="3"><table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="1"><table width="720" border="1" align="left" cellpadding="0" cellspacing="0">
                              <tr>
                                <td width="79" class="lblParrafo">PROYECTO</td>
                                <td width="155" bgcolor="#009900"><div align="left">
                                  <input name="proyec" type="text" class="lblForm" id="proyec" onKeyUp=fn(this.form,this) value="<? echo $proyec?>" size="30">
                                </div></td>
                                <td width="132" class="lblParrafo">TIPO DE EXAMEN</td>
                                <td width="90"><input name="tipo_exafisi" type="radio" class="lblForm" value="INGRESO" <?php if($tipo_exafisi=='INGRESO'){echo "checked";}?>>
                                    <span class="rdoBanners">INGRESO</span></td>
                                <td width="89"><input name="tipo_exafisi" type="radio" class="lblForm" value="PERIODO" <?php if($tipo_exafisi=='PERIODO'){echo "checked";}?>>
                                    <span class="rdoBanners">PERIODO</span></td>
                                <td width="82"><input name="tipo_exafisi" type="radio" class="lblForm" value="RETIRO" <?php if($tipo_exafisi=='RETIRO'){echo "checked";}?>>
                                    <span class="rdoBanners">RETIRO</span></td>
                                <td width="77"><input name="tipo_exafisi" type="radio" class="lblForm" value="OTRO" <?php if($tipo_exafisi=='OTRO'){echo "checked";}?>>
                                    <span class="rdoBanners">OTRO</span></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td><div align="center" class="lblParrafo">DATOS DE IDENTIFICACI&Oacute;N DEL TRABAJADOR</div></td>
                        </tr>
                        <tr>
                          <td><table width="720" border="1" align="left" cellpadding="0" cellspacing="0">
                              <tr>
                                <td width="192" class="rdoBanners Estilo4">APELLIDOS Y NOMBRES </td>
                                <td colspan="2" bgcolor="#D4D3CA"><div align="left">
                                  <input name="nombres" type="text" class="lblForm" id="nombres" onKeyUp=fn(this.form,this) value="<? echo $nombres?>" size="50" readonly>
                                </div></td>
                                <td width="127" bordercolor="#009900" bgcolor="#D4D3CA"><input name="btn_ver1" type="button" class="botira" id="btn_ver1" style="<?=$stylo['st2']?>" value="Buscar" onClick="javascript:Abrir_Ventanapopup1('reg_clinico_ver2.php',465,300)" ></td>
                                <td width="127" bordercolor="#009900" bgcolor="#D4D3CA"><input name="btn_ver12" type="button" class="botira" id="btn_ver122" style="<?=$stylo['st2']?>" value="Nuevo" onClick="javascript:Abrir_Ventanapopup2('cvp_personal2.php',800,300)" ></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4">FECHA DE NACIMIENTO</td>
                                <td width="105" bgcolor="#D4D3CA"><div align="left">
                                  <input name="fechanac" type="text" class="lblForm" id="fechanac" onkeyup=fn(this.form,this) value="<? echo $fechanac?>" size="12" readonly >
                                    </div>
                                  <div align="center"></div></td>
                                <td width="157" bgcolor="#D4D3CA" class="rdoBanners Estilo4">EMPRESA</td>
                                <td colspan="2" bgcolor="#D4D3CA" class="rdoBanners Estilo4"><input name="lugarnac" type="text" class="lblForm" id="lugarnac" onKeyUp=fn(this.form,this) value="<? echo $lugarnac?>" size="30"></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4">EDAD</td>
                                <td bgcolor="#D4D3CA"><div align="left">
                                  <input name="edad" type="text" class="lblForm" id="edad" onkeyup=fn(this.form,this) value="<? echo $edad?>" size="12" >
                                </div></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">GENERO</td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4"><input name="genero_sex" type="radio" class="lblForm" value="MASCULINO" <?php if($genero_sex=='MASCULINO'){echo "checked";}?>>
                                  <span class="rdoBanners">MASCULINO</span></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4"><input name="genero_sex" type="radio" class="lblForm" value="FEMENINO" <?php if($genero_sex=='FEMENINO'){echo "checked";}?>>
                                  <span class="rdoBanners">FEMENINO</span></td>
                              </tr>
                              <tr>
                                <td height="39" class="rdoBanners">DOCUMENTO DE IDENTIFICACI&Oacute;N</td>
                                <td bgcolor="#D4D3CA"><div align="left">
                                  <input name="doc_id" type="text" class="lblForm" id="doc_id" value="<? echo $doc_id?>" size="20" readonly>
                                </div></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">N&ordm; DE PASAPORTE </td>
                                <td colspan="2" bgcolor="#D4D3CA" class="rdoBanners Estilo4"><input name="expedida" type="text" class="lblForm" id="expedida" onKeyUp=fn(this.form,this) value="<? echo $expedida?>" size="30"></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="720" border="1" align="right" cellpadding="0" cellspacing="0">
                              <tr>
                                <td width="79" height="22" class="rdoBanners Estilo4">PA</td>
                                <td width="105" bgcolor="#D4D3CA"><div align="left">
                                  <input name="pa" type="text" class="lblForm" id="pa" onKeyUp=fn(this.form,this) value="<? echo $pa?>" size="15">
                                </div></td>
                                <td width="44" bgcolor="#D4D3CA" class="rdoBanners Estilo4">Pulso</td>
                                <td width="103" bgcolor="#D4D3CA">
                                  <div align="left">
                                    <input name="pulso" type="text" class="lblForm" id="pulso" onKeyUp=fn(this.form,this) value="<? echo $pulso?>" size="10">
                                </div></td>
                                <td width="94" bgcolor="#D4D3CA" class="rdoBanners Estilo4">FR</td>
                                <td width="86" bgcolor="#D4D3CA">
                                  <div align="left">
                                    <input name="fr" type="text" class="lblForm" id="fr" onKeyUp=fn(this.form,this) value="<? echo $fr?>" size="10">
                                  </div></td>
                                <td width="91" bgcolor="#D4D3CA" class="rdoBanners Estilo4">Temp</td>
                                <td width="100" bgcolor="#D4D3CA"><div align="left">
                                  <input name="tem" type="text" class="lblForm" id="tem" onKeyUp=fn(this.form,this) value="<? echo $tem?>" size="10">
                                </div></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4">Talla</td>
                                <td bgcolor="#D4D3CA"><div align="left">
                                  <input name="talla" type="text" class="lblForm" id="talla" onKeyUp=fn(this.form,this) value="<? echo $talla?>" size="15">
                                </div></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">IMC</td>
                                <td bgcolor="#D4D3CA">
                                  <div align="left">
                                    <input name="raza" type="text" class="lblForm" id="raza" onKeyUp=fn(this.form,this) value="<? echo $raza?>" size="15">
                                </div></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">Peso</td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4"><div align="left">
                                    <input name="peso" type="text" class="lblForm" id="peso" onKeyUp=fn(this.form,this) value="<? echo $peso?>" size="10">
                                </div></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">&nbsp;</td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">&nbsp;</td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo5">Edad declarada</td>
                                <td bgcolor="#D4D3CA"><div align="left">
                                  <input name="edad_decla" type="text" class="lblForm" id="edad_decla" onKeyUp=fn(this.form,this) value="<? echo $edad_decla?>" size="15">
                                </div></td>
                                <td colspan="3" bgcolor="#D4D3CA" class="rdoBanners Estilo5">Aspectos Generales (Saludable, Robusto, D&eacute;bil)</td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4"><div align="left">
                                  <input name="asp_gral" type="text" class="lblForm" id="asp_gral" onKeyUp=fn(this.form,this) value="<? echo $asp_gral?>" size="15">
                                </div></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">&nbsp;</td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">&nbsp;</td>
                              </tr>
                              <tr>
                                <td colspan="3" class="rdoBanners Estilo4">Cicatrices o se&ntilde;ales de identificaci&oacute;n </td>
                                <td colspan="5" bgcolor="#D4D3CA" class="rdoBanners Estilo4"><div align="left">
                                  <input name="senia_id" type="text" class="lblForm" id="senia_id" onKeyUp=fn(this.form,this) value="<? echo $senia_id?>" size="60">
                                </div></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="720" border="1" align="right" cellpadding="0" cellspacing="0">
                              <tr>
                                <td colspan="4" class="rdoBanners Estilo6">Existen algunas anormalidades en:</td>
                              </tr>
                              <tr bgcolor="#D4D3CA">
                                <td width="31" bgcolor="#009900">&nbsp;</td>
                                <td width="379"><table width="267" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="168" class="rdoBanners Estilo4">a- La piel</td>
                                      <td width="44" class="rdoBanners Estilo4"><input name="anorma_piel" type="radio" class="lblForm" value="SI" <?php if($anorma_piel=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td width="55" class="rdoBanners Estilo4"><input name="anorma_piel" type="radio" class="lblForm" value="NO" <?php if($anorma_piel=='NO'){echo "checked";}?>>
                          NO</td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">b- El aparato Osteoarticular</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_apaOste" type="radio" class="lblForm" value="SI" <?php if($anorma_apaOste=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_apaOste" type="radio" class="lblForm" value="NO" <?php if($anorma_apaOste=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">c- El sistema Linf&aacute;tico</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_sistlinf" type="radio" class="lblForm" value="SI" <?php if($anorma_sistlinf=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_sistlinf" type="radio" class="lblForm" value="NO" <?php if($anorma_sistlinf=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">d- Los Ojos</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_ojos" type="radio" class="lblForm" value="SI" <?php if($anorma_ojos=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_ojos" type="radio" class="lblForm" value="NO" <?php if($anorma_ojos=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">e- Los O&iacute;dos</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_oidos" type="radio" class="lblForm" value="SI" <?php if($anorma_oidos=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_oidos" type="radio" class="lblForm" value="NO" <?php if($anorma_oidos=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">f- La Nariz</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_nariz" type="radio" class="lblForm" value="SI" <?php if($anorma_nariz=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_nariz" type="radio" class="lblForm" value="NO" <?php if($anorma_nariz=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">g- La Boca</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_boca" type="radio" class="lblForm" value="SI" <?php if($anorma_boca=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_boca" type="radio" class="lblForm" value="NO" <?php if($anorma_boca=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">h- La Garganta</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_garga" type="radio" class="lblForm" value="SI" <?php if($anorma_garga=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_garga" type="radio" class="lblForm" value="NO" <?php if($anorma_garga=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">i- La Cabe<span class="Estilo7">za</span></td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_cabe" type="radio" class="lblForm" value="SI" <?php if($anorma_cabe=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_cabe" type="radio" class="lblForm" value="NO" <?php if($anorma_cabe=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                </table></td>
                                <td width="321"><table width="267" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="168" class="rdoBanners Estilo4">j-El Cuello</td>
                                      <td width="44" class="rdoBanners Estilo4"><input name="anorma_cuello" type="radio" class="lblForm" value="SI" <?php if($anorma_cuello=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td width="55" class="rdoBanners Estilo4"><input name="anorma_cuello" type="radio" class="lblForm" value="NO" <?php if($anorma_cuello=='NO'){echo "checked";}?>>
                          NO</td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">k- La Tiroides</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_tiroi" type="radio" class="lblForm" value="SI"  <?php if($anorma_tiroi=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_tiroi" type="radio" class="lblForm" value="NO"  <?php if($anorma_tiroi=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">l-El T&oacute;rax</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_torax" type="radio" class="lblForm" value="SI" <?php if($anorma_torax=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_torax" type="radio" class="lblForm" value="NO" <?php if($anorma_torax=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">m- Los Pulmones</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_pulmon" type="radio" class="lblForm" value="SI" <?php if($anorma_pulmon=='SI'){echo "checked";}?> >
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_pulmon" type="radio" class="lblForm" value="NO" <?php if($anorma_pulmon=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">n- El Coraz&oacute;n</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_coraz" type="radio" class="lblForm" value="SI"  <?php if($anorma_coraz=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_coraz" type="radio" class="lblForm" value="NO"  <?php if($anorma_coraz=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">&ntilde;- El Abdomen</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_abdom" type="radio" class="lblForm" value="SI" <?php if($anorma_abdom=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_abdom" type="radio" class="lblForm" value="NO" <?php if($anorma_abdom=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">o-El Aparato Urinario</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_apauri" type="radio" class="lblForm" value="SI" <?php if($anorma_apauri=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_apauri" type="radio" class="lblForm" value="NO" <?php if($anorma_apauri=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">p- El Sistema Nervioso</td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_sisnerv" type="radio" class="lblForm" value="SI" <?php if($anorma_sisnerv=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_sisnerv" type="radio" class="lblForm" value="NO" <?php if($anorma_sisnerv=='NO'){echo "checked";}?>>
                          NO </td>
                                    </tr>
                                    <tr>
                                      <td class="rdoBanners Estilo4">&nbsp;</td>
                                      <td class="rdoBanners Estilo4">&nbsp;</td>
                                      <td class="rdoBanners Estilo4">&nbsp;</td>
                                    </tr>
                                </table></td>
                                <td width="30" bgcolor="#009900">&nbsp;</td>
                              </tr>
                              <tr bgcolor="#D4D3CA">
                                <td colspan="4"><table width="693" border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="228"><div align="right"><span class="rdoBanners Estilo8">Detalle lo marcado como SI:</span></div></td>
                                      <td width="465" bgcolor="#D4D3CA">
                                        <div align="left">
                                          <textarea name="detallesi" cols="70" rows="2" class="lblForm" id="detallesi" onKeyUp=fn(this.form,this)><? echo $detallesi?></textarea>
                                      </div></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td>&nbsp;</td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td bgcolor="#D4D3CA"><table width="697" border="1" cellpadding="0" cellspacing="0" bgcolor="#D4D3CA">
                              <tr>
                                <td width="229" bgcolor="#D4D3CA" class="rdoBanners"><div align="right" class="Estilo4">Examen Urol&oacute;gico o Ginecol&oacute;gico</div></td>
                                <td width="462" bgcolor="#D4D3CA"><div align="left">
                                  <textarea name="exauro" cols="70" rows="2" class="lblForm" id="exauro" onKeyUp=fn(this.form,this)><? echo $exauro?></textarea>
                                </div></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="720" border="1" cellspacing="0" cellpadding="0">
                              <tr class="rdoBanners">
                                <td colspan="10" class="rdoBanners Estilo4">Agudeza Visual</td>
                              </tr>
                              <tr class="rdoBanners">
                                <td width="9" bgcolor="#D4D3CA"><span class="Estilo4"></span></td>
                                <td width="25" bgcolor="#D4D3CA"><span class="Estilo4">OD</span></td>
                                <td width="81" bgcolor="#D4D3CA"><input name="aguvi_od" type="text" class="lblForm" id="aguvi_od" onKeyUp=fn(this.form,this) value="<? echo $aguvi_od?>" size="20"></td>
                                <td width="25" bgcolor="#D4D3CA">&nbsp;</td>
                                <td width="25" bgcolor="#D4D3CA"><span class="Estilo4">OI</span></td>
                                <td width="105" bgcolor="#D4D3CA"><span class="Estilo4">
                                  <input name="aguvi_oi" type="text" class="lblForm" id="aguvi_oi" onKeyUp=fn(this.form,this) value="<? echo $aguvi_oi?>" size="20">
                                </span></td>
                                <td width="25" bgcolor="#D4D3CA">&nbsp;</td>
                                <td width="25" bgcolor="#D4D3CA"><span class="Estilo4">AO</span></td>
                                <td width="335" bgcolor="#D4D3CA"><span class="Estilo4">
                                  <input name="aguvi_ao" type="text" class="lblForm" id="aguvi_ao"onKeyUp=fn(this.form,this) value="<? echo $aguvi_ao?>" size="20">
                                </span></td>
                                <td width="30" bgcolor="#D4D3CA"><span class="Estilo4"></span><span class="Estilo4"></span></td>
                              </tr>
                              <tr class="rdoBanners">
                                <td bgcolor="#D4D3CA">&nbsp;</td>
                                <td colspan="4" bgcolor="#D4D3CA">Visi&oacute;n de colores (Test de Ishihara)</td>
                                <td colspan="4" bgcolor="#D4D3CA"><span class="Estilo4">
                                  <input name="v_color" type="text" class="lblForm" id="v_color" onKeyUp=fn(this.form,this) value="<? echo $v_color?>" size="53">
                                </span></td>
                                <td bgcolor="#D4D3CA">&nbsp;</td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="720" border="1" cellspacing="0" cellpadding="0">
                              <tr bgcolor="#D4D3CA">
                                <td width="229" class="rdoBanners"><div align="right" class="Estilo4">Diagn&oacute;stico</div></td>
                                <td width="530"><div align="left">
                                  <textarea name="diag" cols="70" rows="2" class="lblForm" id="diag" onKeyUp=fn(this.form,this)><? echo $diag?></textarea>
                                </div></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="720" border="1" cellspacing="0" cellpadding="0">
                              <tr bgcolor="#D4D3CA">
                                <td width="229" class="rdoBanners Estilo4"><div align="right">Observaciones y Recomendaciones</div></td>
                                <td width="530"><div align="left">
                                  <textarea name="obser" cols="70" rows="2" class="lblForm" id="obser" onKeyUp=fn(this.form,this)><? echo $obser?></textarea>
                                </div></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><table width="721" border="1" align="left" cellpadding="0" cellspacing="0">
                              <tr bgcolor="#D4D3CA" class="rdoBanners">
                                <td width="183"><div align="right"><span class="Estilo6">Se firma en el mes de</span></div></td>
                                <td width="105"><span class="Estilo6"><span class="Estilo4">
                                  <?php $mes = date("m");?>
                                  <select name="mesesf" class="lblForm" id="mes" >
                                    <?= getCboMeses($mesesf);?>
                                  </select>
                                </span></span></td>
                                <td width="35"><div align="center"><span class="Estilo6">a los </span></div></td>
                                <td width="105"><span class="Estilo6"><span class="Estilo4">
                                  <input name="alosf" type="text" class="lblForm" id="alosf" onKeyUp=fn(this.form,this) value="<? echo $alosf?>" size="20">
                                </span></span></td>
                                <td width="53"><div align="center"><span class="Estilo6">d&iacute;as de</span></div></td>
                                <td width="105"><span class="Estilo6"><span class="Estilo4">
                                  <input name="diasf" type="text" class="lblForm" id="diasf" onKeyUp=fn(this.form,this) value="<? echo $diasf?>" size="20">
                                </span></span></td>
                                <td width="163"><span class="Estilo6"></span></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td>&nbsp;</td>
                        </tr>
                        <tr>
                          <td><div align="center">                          </div>                            <div align="center">
                            <table width="720" border="1" cellspacing="1" cellpadding="1">
                              <tr>
                                <td><div align="center">
                                  <input name="nuevo" type="reset" class="lblForm" id="nuevo" value=".:   Nuevo  :.">
                                </div></td>
                                <td><div align="center">
                                  <input name="grabar" type="button" class="lblForm" id="grabar" value=".:   Grabar:." onClick="enviar_url(form1,'procesos/grabar_regexafisico.php','<?=$ex?>')">
                                </div></td>
                                <td><div align="center">
                                  <input name="salir" type="button" class="lblForm" id="salir" value=".:   Salir  :." onClick="volver(this.form);">
                                </div></td>
                              </tr>
                            </table>
</div>                            <div align="center">                          </div></td>
                          </tr>
                    </table></td>
                  </tr>
                </table>
                <div align="center"></div>
              </form>
                </div></td>
            <td background="estilo_tabla/parte_med_der.gif">&nbsp;</td>
          </tr>
          <tr>
            <td><img src="estilo_tabla/parte_inf_izq.gif" width="25" height="25"></td>
            <td background="estilo_tabla/parte_inf_cen.gif">&nbsp;</td>
            <td><img src="estilo_tabla/parte_inf_der.gif" width="25" height="25"></td>
          </tr>
        </table>
    </div></td>
  </tr>
  <tr valign="top" class="lblCampo" >
    <td colspan="4">
      <div align="center"> </div></td>
  </tr>
</table>
<map name="Map">
  <area shape="circle" coords="10,12,9" href="fondo.php">
</map>
</body>
</html>
