<?php
	include("stilos/config.inc.php");
	include("clases/BDConexion.php");
	include("clases/clsclinico.php");
	include("funcion/funciones.php");
	include("Funciones.php");
	$objclinico=new clsclinico;
	
	if(isset($doc_id)){
			$existe=$objclinico->DioFichaMedica($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>Registro de Examenes Clinicos - BARRET RESOURCES(PERU) LLC</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: 10px}
.Estilo2 {color: #000000}
.Estilo3 {font-size: 11px}
.Estilo4 {color: #000000; font-size: 11px; }
.Estilo5 {
	color: #000000;
	font-size: 10px;
	font-weight: bold;
}
.Estilo8 {color: #FFFFFF}
-->
</style>
<SCRIPT language=JavaScript src="js/calendario.js"></SCRIPT>
<script>
function enviar_url(form,url){
	if(form1.grabar.value)
	{
		form1.submit();
	}
}
function volver(form){
  location.reload('fondo.php');
  
  }
function retorna(url){
	location.reload(url);
	}
</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 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 Guardo el Exámen satisfactoriamente")}
}
</script>
<script>
var vent = null;
function foco() {
   if (vent != null)
       vent.focus();
}
function cerrar() {
   vent = null;
}

</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'>";}   
   }
?>
<?php 
		$resul=$objclinico->DevolverExa($codlab);
	
        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="lblTitulo Estilo8" >Edici&oacute;n de Registros de Examenes Cl&iacute;nicos </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 name="form1" method="post" action="actua_exa.php?codlab=<?=$codlab?>">
                <table width="720" border="0" align="center" cellpadding="0" cellspacing="0">
                  <tr>
                    <td width="2">&nbsp;</td>
                    <td width="639" valign="top"><table width="720" border="0" align="center" cellpadding="0" cellspacing="0" >
                          <tr>
                            <td width="720" height="76" valign="top"><table width="720" border="0" cellpadding="0" cellspacing="0" class="filForm" id="apell_nom">
                                <tr>
                                  <td colspan="7" class="trCabecera Estilo1"><div align="center" class="lblParrafo"><em>Editar Ex&aacute;men Cl&iacute;nico </em></div></td>
                                </tr>
                                <tr>
                                  <td width="188" class="trCabecera Estilo1"><div align="right" class="Estilo2">Doctor Responsable </div></td>
                                  <td colspan="4"><div align="left">
                                    <input name="dr_resp" type="text" class="lblForm" id="dr_resp2" onKeyUp=fn(this.form,this) size="60" value="<?php echo $filas['dr_resp'];?>">
                                  </div></td>
                                  <td colspan="2"></td>
                                </tr>
                                <tr>
                                  <td class="trCabecera Estilo1"><div align="right" class="Estilo2">Documento de Id. del Paciente </div></td>
                                  <td colspan="4">
                                    <div align="left">
                                      <table width="298" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="109"><div align="left">
                                              <input name="doc_id" type="text" class="lblForm" id="doc_id3" onKeyUp=fn(this.form,this) value="<?php echo $filas['doc_id'];?>" size="20" readonly>
                                            </div></td>
                                          <td><div align="left"> </div>
                                              <div align="left"> </div></td>
                                        </tr>
                                      </table>
                                  </div></td>
                                  <td colspan="2">&nbsp;</td>
                                </tr>
                                <tr>
                                  <td class="trCabecera Estilo1"><div align="right" class="Estilo2">Nombre del Paciente </div></td>
                                  <td><div align="left">
                                    <input name="nom" type="text" class="lblForm" id="nom" value="<?php echo $filas['nombre'];?>" readonly>
                                  </div></td>
                                  <td width="66"><div align="left"></div></td>
                                  <td width="42" class="Estilo5"><div align="left">Fecha</div></td>
                                  <td width="104"><div align="left">
                                    <input name="fecha" type="text" class="lblForm" id="fecha3" onKeyUp=fn(this.form,this) value="<?php echo extraerfechanormal($filas['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></div></td>
                                  <td width="30">&nbsp;</td>
                                  <td width="35">&nbsp;</td>
                                </tr>
                                <tr>
                                  <td class="trCabecera Estilo1"><div align="right" class="Estilo2">Apellidos del Paciente </div></td>
                                  <td colspan="4"><div align="left">
                                    <input name="ape" type="text" class="lblForm" id="ape" value="<?php echo $filas['apellido'];?>" readonly>
                                  </div></td>
                                  <td colspan="2">&nbsp;</td>
                                </tr>
                                <tr>
                                  <td class="trCabecera Estilo1"><div align="right" class="Estilo2">Edad del Paciente </div></td>
                                  <td width="169"><div align="left">
                                    <input name="edad" type="text" class="lblForm" id="edad" onkeyup=fn(this.form,this) value="<?php echo $filas['edad'];?>">
                                  </div></td>
                                  <td colspan="3" class="trCabecera"><div align="right" class="Estilo2">
                                      <div align="left">Codigo de Laboratorio</div>
                                  </div></td>
                                  <td colspan="2"><input name="codi" type="text" class="lblForm" id="codi" onKeyUp=fn(this.form,this) value="<?php echo $filas['cod_lab'];?>" readonly></td>
                                </tr>
                            </table></td>
                          </tr>
                          <tr>
                            <td><span class="trCabecera"> </span>
                                <table width="720" border="0" cellpadding="0" cellspacing="0" class="filForm">
                                  <tr>
                                    <td height="37" colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="center" class="Estilo2 Estilo3"><u>HEMATOLOGIA</u></div></td>
                                    <td colspan="3" background="imagenes/fondo2.jpg" class="trCabecera"><div align="center" class="Estilo4"><u>INMUNOLOGIA</u></div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="center" class="Estilo4"><u>BIOQUIMICA </u></div></td>
                                  </tr>
                                  <tr>
                                    <td width="86" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Grupo</div></td>
                                    <td width="129" background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="grup" type="text" class="lblForm" id="grup" onkeyup=fn(this.form,this) value="<?php echo $filas['grupo'];?>">
                                    </div></td>
                                    <td width="134" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">
                                        <div align="right">RPR (S&iacute;filis)</div>
                                    </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="rpr_sif" type="text" class="lblForm" id="rpr_sifi2" onKeyUp=fn(this.form,this) value="<?php echo $filas['rpr_sifilis'];?>">
                                    </div></td>
                                    <td width="65" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Glicemia</div></td>
                                    <td width="148" background="imagenes/fondo2.jpg"><div align="left"><span class="trCabecera">
                                        <input name="glic" type="text" class="lblForm" id="glice3" onKeyUp=fn(this.form,this) value="<?php echo $filas['glicemia'];?>">
                                    </span></div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Factor RH </div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="factor_rh" type="text" class="lblForm" id="fact_rh2" onKeyUp=fn(this.form,this) value="<?php echo $filas['factor_rh'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Ant. de Superficie</div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="art_sup" type="text" class="lblForm" id="art_sup" onKeyUp=fn(this.form,this) value="<?php echo $filas['art_supervision'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Urea</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="ur" type="text" class="lblForm" id="urea2" onKeyUp=fn(this.form,this) value="<?php echo $filas['urea'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2"><strong>N&ordm; Leucocitos</strong></div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left"><span class="trCabecera">
                                        <input name="n_leuc" type="text" class="lblForm" id="N_leuco3" onKeyUp=fn(this.form,this) value="<?php echo $filas['n_leucocitos'];?>">
                                    </span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Parat&iacute;fico A </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg"><div align="left"><span class="trCabecera">
                                        <input name="para_a" type="text" class="lblForm" id="para_a4" onKeyUp=fn(this.form,this) value="<?php echo $filas['paratifico_a'];?>">
                                    </span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Creatinina</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="crea" type="text" class="lblForm" id="crea3" onKeyUp=fn(this.form,this) value="<?php echo $filas['creatitina'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Abastonados</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="abast" type="text" class="lblForm" id="abas3" onKeyUp=fn(this.form,this) value="<?php echo $filas['abastonados'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Para&iacute;ifico B </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="para_b" type="text" class="lblForm" id="para_b2" onKeyUp=fn(this.form,this) value="<?php echo $filas['paratifico_b'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">Colesterol</span></div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="cole" type="text" class="lblForm" id="cole" onKeyUp=fn(this.form,this) value="<?php echo $filas['colesterol'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Segmentados</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left"><span class="trCabecera">
                                        <input name="segm" type="text" class="lblForm" id="segm" onKeyUp=fn(this.form,this) value="<?php echo $filas['segmentados'];?>">
                                    </span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">T&iacute;fico H </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="tif_h" type="text" class="lblForm" id="tifi_h4" onKeyUp=fn(this.form,this) value="<?php echo $filas['tifico_h'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">Trigliceridos</span></div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="trigli" type="text" class="lblForm" id="trigli" onKeyUp=fn(this.form,this) value="<?php echo $filas['triglicerios'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Eosin&oacute;filos</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left"><span class="Estilo2">
                                        <input name="eosi" type="text" class="lblForm" id="eosi3" onKeyUp=fn(this.form,this) value="<?php echo $filas['eosinofilios'];?>">
                                    </span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">T&iacute;fico O </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="tif_o" type="text" class="lblForm" id="tifi_o3" onKeyUp=fn(this.form,this) value="<?php echo $filas['tifico_o'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">LDL</span></div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="ldl" type="text" class="lblForm" id="ldl" onKeyUp=fn(this.form,this) value="<?php echo $filas['ldl'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Bas&oacute;filos</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left"><span class="trCabecera">
                                        <input name="basof" type="text" class="lblForm" id="baso4" onKeyUp=fn(this.form,this) value="<?php echo $filas['basofilios'];?>">
                                    </span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Brucella AB </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="bru_ab" type="text" class="lblForm" id="brul_ab3" onKeyUp=fn(this.form,this) value="<?php echo $filas['brucella_ab'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">HDL</span></div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="hdl" type="text" class="lblForm" id="hdl" onKeyUp=fn(this.form,this) value="<?php echo $filas['hdl'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Monocitos</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="mono" type="text" class="lblForm" id="moni3" onKeyUp=fn(this.form,this) value="<?php echo $filas['monocitos'];?>">
                                    </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">HIV</span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                        <input name="hiv" type="text" class="lblForm" id="brul_ab2" onKeyUp=fn(this.form,this) value="<?php echo $filas['hiv'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">TGP</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left"><span class="trCabecera">
                                        <input name="tgp" type="text" class="lblForm" id="tgp3" onKeyUp=fn(this.form,this) value="<?php echo $filas['tgp'];?>">
                                    </span></div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Linfocitos</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="linf" type="text" class="lblForm" id="linf" onKeyUp=fn(this.form,this) value="<?php echo $filas['linfocito'];?>">
                                    </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">BK (TBC) </span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                        <input name="bk" type="text" class="lblForm" id="brul_ab" onKeyUp=fn(this.form,this) value="<?php echo $filas['bk'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">TGO</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="tgo" type="text" class="lblForm" id="tgo2" onKeyUp=fn(this.form,this) value="<?php echo $filas['tgo'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Hemoglobina</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="hemo" type="text" class="lblForm" id="hemo2" onKeyUp=fn(this.form,this) value="<?php echo $filas['hemoglobina'];?>">
                                    </div></td>
                                    <td colspan="5" bgcolor="#A1CCB0" class="trCabecera"><div align="center" class="Estilo4"><u><u>ORINA</u></u></div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Mielocitos</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="melo" type="text" class="lblForm" id="hemo2" onKeyUp=fn(this.form,this) value="<?php echo $filas['melocitos'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">Color Orina</span></div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="color" type="text" class="lblForm" id="colo3" onKeyUp=fn(this.form,this) value="<?php echo $filas['color'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Cetonas</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left"><span class="trCabecera">
                                      <input name="cetom" type="text" class="lblForm" id="cetom2" onKeyUp=fn(this.form,this) value="<?php echo $filas['cetomas'];?>">
                                    </span></div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Metamielocitos</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="metam" type="text" class="lblForm" id="hemo2" onKeyUp=fn(this.form,this) value="<?php echo $filas['metamielocitos'];?>">
                                    </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">Aspecto</span></div></td>
                                    <td width="155" background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                      <input name="aspe" type="text" class="lblForm" id="aspe2" onKeyUp=fn(this.form,this) value="<?php echo $filas['aspecto'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Nitritos</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="nitrit" type="text" class="lblForm" id="nitri2"onKeyUp=fn(this.form,this) value="<?php echo $filas['nitritos'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Plaquetas</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                        <input name="h_otros" type="text" class="lblForm" id="hemo2" onKeyUp=fn(this.form,this) value="<?php echo $filas['hema_otros'];?>">
                                    </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">Densidad</span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                      <input name="dens" type="text" class="lblForm" id="dens2" onKeyUp=fn(this.form,this) value="<?php echo $filas['densidad'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">C&eacute;lulas</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="celul" type="text" class="lblForm" id="celu2" onKeyUp=fn(this.form,this) value="<?php echo $filas['celulas'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera">&nbsp;</td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">PH</div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                      <input name="ph" type="text" class="lblForm" id="ph2" onKeyUp=fn(this.form,this) value="<?php echo $filas['ph'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Leucocitos</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="leuc" type="text" class="lblForm" id="leuc2" onKeyUp=fn(this.form,this) value="<?php echo $filas['leucocitos'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="center"><span class="Estilo2 Estilo3"><u>TOXICOLOGICO</u></span></div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">Prote&iacute;nas</span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                      <input name="prote" type="text" class="lblForm" id="prote2" onKeyUp=fn(this.form,this) value="<?php echo $filas['proteinas'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Hematies</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="hemat" type="text" class="lblForm" id="hemat2" onKeyUp=fn(this.form,this) value="<?php echo $filas['hematies'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">Test de Coca&iacute;na </span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                      <input name="t_coca" type="text" class="lblForm" id="h_otros" onKeyUp=fn(this.form,this) value="<?php echo $filas['test_cocaina'];?>">
                                    </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Glucosa </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                      <input name="gluco" type="text" class="lblForm" id="gluc2" onKeyUp=fn(this.form,this) value="<?php echo $filas['glucosa'];?>">
                                    </div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Otros</div></td>
                                    <td background="imagenes/fondo2.jpg"><div align="left">
                                      <input name="otros" type="text" class="lblForm" id="otro2" onKeyUp=fn(this.form,this) value="<?php echo $filas['otros'];?>">
                                    </div></td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">Test de Marihuana </span></div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                      <input name="t_mari" type="text" class="lblForm" id="h_otros2" onKeyUp=fn(this.form,this) value="<?php echo $filas['test_marihuana'];?>">
                                    </div></td>
                                    <td colspan="3" background="imagenes/fondo2.jpg" class="trCabecera">&nbsp;</td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"></div>                                      <div align="left"></div></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2"></div></td>
                                    <td colspan="3" background="imagenes/fondo2.jpg" class="trCabecera">&nbsp; </td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2"></div>                                      <div align="left"></div></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera">&nbsp;</td>
                                    <td colspan="3" background="imagenes/fondo2.jpg" class="trCabecera">&nbsp;</td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera">&nbsp;</td>
                                  </tr>
                                  <tr>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2">Heces</div></td>
                                    <td background="imagenes/fondo2.jpg" class="trCabecera"><div align="left">
                                      <input name="heces" type="text" class="lblForm" id="heces" onKeyUp=fn(this.form,this) value="<?php echo $filas['heces'];?>">
                                    </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"><span class="Estilo2">KOH EN LECHO UNGUEAL</span></div></td>
                                    <td background="imagenes/fondo2.jpg" bgcolor="#C1DECC" class="trCabecera"><div align="left">
                                      <input name="koh" type="text" class="lblForm" id="k_l_u2" onKeyUp=fn(this.form,this) value="<?php echo $filas['koh_e_lu'];?>">
                                    </div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2"></div>                                      <div align="left"></div></td>
                                  </tr>
                                  <tr>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><table cellspacing="0" cellpadding="0">
                      <td width="206"><div align="right"></div></td>
                                    </table></td>
                                    <td colspan="3" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right"></div>                                      <div align="left"></div></td>
                                    <td colspan="2" background="imagenes/fondo2.jpg" class="trCabecera"><div align="right" class="Estilo2"></div>                                      <div align="left"></div></td>
                                  </tr>
                              </table></td>
                          </tr>
                          <tr>
                            <td><table width="720" border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                  <td width="102">&nbsp;</td>
                                  <td width="157"><div align="center"> </div></td>
                                  <td width="11">&nbsp;</td>
                                  <td width="164"><div align="center">
                                  </div></td>
                                  <td width="10">&nbsp;</td>
                                  <td width="168"><div align="center">
                                    </div></td>
                                  <td width="26" >&nbsp;</td>
                                </tr>
                                <tr>
                                  <td>&nbsp;</td>
                                  <td>
                                    <div align="right">
                                      <input name="grabar" type="button" class="lblForm" id="grabar4" value=".:   ACTUALIZAR :." onClick="enviar_url(form1,'actua_exa.php')">
                                    </div></td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td>&nbsp;</td>
                                  <td><input name="grabar2" type="button" class="lblForm" id="grabar22" value=".:   RETORNAR :." onClick="retorna('edit_exacli.php')"></td>
                                  <td >&nbsp;</td>
                                </tr>
                                <?php }?>
                            </table></td>
                          </tr>
                      </table></td>
                    <td width="71">&nbsp;</td>
                  </tr>
                  <tr>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                    <td>&nbsp;</td>
                  </tr>
                </table>
              </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="11,11,9" href="fondo.php">
</map>
</body>
</html>
