<?php 
  include("clases/BDConexion.php");
  include("clases/clsclinico.php");
  include("funcion/funciones.php");
  include("Funciones.php");
  $objclinico = new clsclinico;
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>EXAMEN FISICO - BARRETT RESOURCES</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){
	if(form1.grabar.value)
	{
		form1.submit();
	}
}
function volver(form){
  location.reload('fondo.php');
  
  }
</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>
<script language="JavaScript" type="text/JavaScript">
function MensajeEditar(m){
if (m==1){window.alert("Se Actualizó el Exámen Físico satisfactoriamente")}
}
</script>
</head>

<?php
if($aler==1){
     echo "<body onLoad='MensajeEditar(1)' background='imagenes/fondo.jpg'> ";
	} 
	
else{
    if(empty($aler)){echo "<body background='imagenes/fondo.jpg'>";}
    }
	$resul = $objclinico->DevolverExaFisi($codexafisi);
	while($filas=$objclinico->NextRow($resul)){
	 
?>
<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 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" ><em>Editar Ex&aacute;men F&iacute;sico </em></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="procesos/actualiza_exafisico.php?codexafisi=<? echo $codexafisi?>" method="post" name="form1">
                <table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="74" rowspan="3">&nbsp;</td>
                    <td width="622">&nbsp;</td>
                    <td width="67" rowspan="3">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><div align="center" class="lblParrafo Estilo1"><em>DEPARTAMENTO DE QHSE- CR</em></div></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 bgcolor="#009900"><div align="center" class="lblSubTitulo Estilo3">
                              <div align="center" class="Estilo9">
                                <div align="center"> </div>
                              </div>
                          </div></td>
                          <td width="38" bgcolor="#009900"><div align="right"><span class="rdoBanners Estilo4">FECHA</span></div></td>
                          <td width="68" bgcolor="#009900"><div align="center">
                              <input name="fecha" type="text" class="lblForm" id="fecha3" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['fecha'])?>" size="12" readonly >
                          </div></td>
                          <td width="56" bgcolor="#009900"><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>
                          <td bgcolor="#009900">&nbsp;</td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td colspan="3"><table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="1" colspan="7"><table width="720" border="1" align="left" cellpadding="0" cellspacing="0">
                              <tr>
                                <td width="79" class="lblParrafo">PROYECTO</td>
                                <td width="155" bgcolor="#009900"><input name="proyec" type="text" class="lblForm" id="proyec3" onKeyUp=fn(this.form,this) value="<? echo $filas['proyecto']?>" size="30"></td>
                                <td width="141" class="lblParrafo">TIPO DE EXAMEN</td>
                                <td width="81"><input name="tipo_exafisi" type="radio" class="lblForm" value="INGRESO" <?php if($filas['tipo_exa']=='INGRESO'){echo "checked";}?>>
                                    <span class="rdoBanners">INGRESO</span></td>
                                <td width="89"><input name="tipo_exafisi" type="radio" class="lblForm" value="PERIODO" <?php if($filas['tipo_exa']=='PERIODO'){echo "checked";}?>>
                                    <span class="rdoBanners">PERIODO</span></td>
                                <td width="82"><input name="tipo_exafisi" type="radio" class="lblForm" value="RETIRO" <?php if($filas['tipo_exa']=='RETIRO'){echo "checked";}?>>
                                    <span class="rdoBanners">RETIRO</span></td>
                                <td width="77"><input name="tipo_exafisi" type="radio" class="lblForm" value="OTRO" <?php if($filas['tipo_exa']=='OTRO'){echo "checked";}?>>
                                    <span class="rdoBanners">OTRO</span></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7"><div align="center" class="lblParrafo">DATOS DE IDENTIFICACI&Oacute;N DEL TRABAJADOR</div></td>
                        </tr>
                        <tr>
                          <td colspan="7"><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 $filas['nombre']?>" size="50" readonly>
                                </div></td>
                                <td colspan="2" bgcolor="#D4D3CA"><input name="hiddenField" type="hidden" size="5" value="<? echo $codexafisi?>"></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 $filas['fechanac']?>" size="12" readonly >
                                  </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 $filas['lugar_nac']?>" 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 $filas['edad']?>" size="12" >
                                </div></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">GENERO</td>
                                <td width="127" class="rdoBanners Estilo4"><input name="genero_sex" type="radio" class="lblForm" value="MASCULINO" <?php if($filas['sexo']=='MASCULINO'){echo "checked";}?>>
                                    <span class="rdoBanners">MASCULINO</span></td>
                                <td width="127" class="rdoBanners Estilo4"><input name="genero_sex" type="radio" class="lblForm" value="FEMENINO" <?php if($filas['sexo']=='FEMENINO'){echo "checked";}?>>
                                    <span class="rdoBanners">FEMENINO</span></td>
                              </tr>
                              <tr>
                                <td 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 $filas['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 $filas['expedida_en']?>" size="30"></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="7"><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 $filas['pa']?>" size="15">
                                </div></td>
                                <td width="44" class="rdoBanners Estilo4">Pulso</td>
                                <td width="103" bgcolor="#D4D3CA">
                                  <div align="left">
                                    <input name="pulso" type="text" class="lblForm" id="pulso2" onKeyUp=fn(this.form,this) value="<? echo $filas['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 $filas['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 $filas['temp']?>" 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 $filas['talla']?>" size="15">
                                </div></td>
                                <td 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 $filas['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 $filas['peso']?>" size="10">
                                </div></td>
                                <td bgcolor="#D4D3CA" class="rdoBanners Estilo4">&nbsp;</td>
                                <td bgcolor="#D4D3CA">&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 $filas['edad_decla']?>" size="15">
                                </div></td>
                                <td colspan="3" 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 $filas['aspect_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 $filas['senial_ident']?>" size="60">
                                </div></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="7"><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">&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($filas['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($filas['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($filas['anorma_apaost']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_apaOste" type="radio" class="lblForm" value="NO" <?php if($filas['anorma_apaost']=='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($filas['anorma_sislinf']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_sistlinf" type="radio" class="lblForm" value="NO" <?php if($filas['anorma_sislinf']=='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($filas['anorma_ojos']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_ojos" type="radio" class="lblForm" value="NO" <?php if($filas['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($filas['anorma_oidos']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_oidos" type="radio" class="lblForm" value="NO" <?php if($filas['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($filas['anorma_nariz']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_nariz" type="radio" class="lblForm" value="NO"  <?php if($filas['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($filas['anorma_boca']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_boca" type="radio" class="lblForm" value="NO" <?php if($filas['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($filas['anorma_gargan']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_garga" type="radio" class="lblForm" value="NO" <?php if($filas['anorma_gargan']=='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($filas['anorma_cabeza']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_cabe" type="radio" class="lblForm" value="NO" <?php if($filas['anorma_cabeza']=='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($filas['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($filas['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($filas['anorma_tiroide']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_tiroi" type="radio" class="lblForm" value="NO" <?php if($filas['anorma_tiroide']=='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($filas['anorma_torax']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_torax" type="radio" class="lblForm" value="NO" <?php if($filas['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($filas['anorma_pulm']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_pulmon" type="radio" class="lblForm" value="NO" <?php if($filas['anorma_pulm']=='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($filas['anorma_coraz']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_coraz" type="radio" class="lblForm" value="NO" <?php if($filas['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($filas['anorma_abdom']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_abdom" type="radio" class="lblForm" value="NO" <?php if($filas['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($filas['anorma_aparauri']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_apauri" type="radio" class="lblForm" value="NO" <?php if($filas['anorma_aparauri']=='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($filas['anorma_sisnerv']=='SI'){echo "checked";}?>>
                          SI </td>
                                      <td class="rdoBanners Estilo4"><input name="anorma_sisnerv" type="radio" class="lblForm" value="NO" <?php if($filas['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">&nbsp;</td>
                              </tr>
                              <tr bgcolor="#D4D3CA">
                                <td colspan="4"><table width="716" 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="488" bgcolor="#D4D3CA">
                                        <div align="left">
                                          <textarea name="detallesi" cols="70" rows="2" id="detallesi" onKeyUp=fn(this.form,this)><? echo $filas['anorma_detallesi']?></textarea>
                                      </div></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="7"><table width="720" border="1" cellspacing="0" cellpadding="0">
                              <tr bgcolor="#D4D3CA">
                                <td width="229" class="rdoBanners"><div align="right" class="Estilo4">Examen Urol&oacute;gico o Ginecol&oacute;gico</div></td>
                                <td width="530"><textarea name="exauro" cols="70" rows="2" id="exauro" onKeyUp=fn(this.form,this)><? echo $filas['exa_urooginecolo']?></textarea></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="7"><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"><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 $filas['aguvisual_od']?>" size="20"></td>
                                <td width="25" bgcolor="#D4D3CA">&nbsp;</td>
                                <td width="25"><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 $filas['aguvisual_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_ao2"onKeyUp=fn(this.form,this) value="<? echo $filas['aguvisual_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">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 $filas['vision_color']?>" size="53">
                                </span></td>
                                <td bgcolor="#D4D3CA">&nbsp;</td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="7"><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"><textarea name="diag" cols="70" rows="2" id="diag" onKeyUp=fn(this.form,this)><? echo $filas['diagnostico']?></textarea></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="7"><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"><textarea name="obser" cols="70" rows="2" id="obser" onKeyUp=fn(this.form,this)><? echo $filas['obser_yrecomen']?></textarea></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="7"><table width="720" 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="select" >
                                    <?= getCboMeses($filas['mes_firma']);?>
                                  </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 $filas['alos_firma']?>" 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 $filas['diasde_firma']?>" size="20">
                                </span></span></td>
                                <td width="163"><span class="Estilo6"></span></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900">
                          <td colspan="7">&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="105">&nbsp;</td>
                          <td width="81">&nbsp;</td>
                          <td width="81"><div align="center"> </div></td>
                          <td width="171"><input name="grabar" type="button" class="lblForm" id="grabar5" value=".:   Actualizar Examen F&iacute;sico:." onClick="enviar_url(form1,'procesos/actualiza_exafisico.php')"></td>
                          <td width="173"><div align="center"> </div></td>
                          <?php 
		  }
		  $objclinico->Liberar($resul);
		?>
                          <td width="105">&nbsp;</td>
                          <td width="4" bgcolor="#99CC99"><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,9,7" href="fondo.php">
</map>
</body>
</html>
