<?php 
  include("clases/BDConexion.php");
  include("clases/clsclinico.php");
  include("funcion/funciones.php");
  include("Funciones.php");
  $objclinico = new clsclinico;
  function edadFmysql($fecha_nac)
{
//Esta funcion toma una fecha de nacimiento 
//desde una base de datos mysql
//en formato aaaa/mm/dd y calcula la edad en números enteros
/************************************************************************/

	$dia=date("j");
	$mes=date("m");
	$anno=date("Y");

	//descomponer fecha de nacimiento
	$dia_nac=substr($fecha_nac, 8, 2);
	$mes_nac=substr($fecha_nac, 5, 2);
	$anno_nac=substr($fecha_nac, 0, 4);

	if($mes_nac>$mes){
		$calc_edad= $anno-$anno_nac-1;
	}else{
		if($mes==$mes_nac AND $dia_nac>$dia){
			$calc_edad= $anno-$anno_nac-1;  
		}else{
			$calc_edad= $anno-$anno_nac;
		}
	}
	return $calc_edad;
}
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>FICHA MEDICA - 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}
.Estilo9 {color: #000000}
.Estilo10 {
	font-size: 12px;
	color: #FFFFFF;
}
.Estilo13 {
	font-size: 11px;
	color: #000000;
}
.Estilo14 {font-size: 11px}
.Estilo24 {color: #FFFFFF}
-->
</style>
<script language="javascript" type="text/javascript">
    function Nueva_Ficha(URL){
	          window.location =URL;	
	         }
</script>
<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 Salir(URL){
  location.reload(URL);
  
  }
</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 las Fechas de las Vacunas satisfactoriamente");
          window.location="cvp_registrar_vacunas.php";
            }
}
</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'>";}
	}
?>
<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 Estilo24" >Control de Vacunas del Personal de Barrett </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_vacunas.php?codficha=<?=$codficha?>" 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="479">&nbsp;</td>
                    <td colspan="3">&nbsp;</td>
                  </tr>
                  <tr>
                    <td><div align="center" class="lblParrafo Estilo1"><em>CONTROL DE VACUNAS</em></div></td>
                    <td width="38"><div align="right"><span class="rdoBanners Estilo4">FECHA</span></div></td>
                    <td width="68"><div align="center">
                        <input name="fecha" type="text" class="lblForm" id="fecha4" onkeyup=fn(this.form,this) value="<? if(isset($fechaficha)){echo extraerfechanormal($fechaficha);}?>" size="12" readonly >
                    </div></td>
                    <td width="56">&nbsp;</td>
                  </tr>
                  <tr>
                    <td colspan="5"><table width="720" border="1" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td width="769" bgcolor="#009900" ><div align="center" class="lblSubTitulo Estilo3">
                              <div align="center" class="Estilo9">
                                <input type="hidden" name="hiddenField" value="<?=$codficha?>">
                              </div>
                          </div></td>
                        </tr>
                    </table></td>
                  </tr>
                  <tr>
                    <td colspan="5"><table width="718" border="0" align="left" cellpadding="0" cellspacing="0">
                        <tr>
                          <td height="1" colspan="2">&nbsp;</td>
                        </tr>
                        <tr bgcolor="#009900" >
                          <td colspan="2"><div align="center" class="lblParrafo">DATOS DE IDENTIFICACI&Oacute;N DEL TRABAJADOR</div></td>
                        </tr>
                        <tr>
                          <td colspan="2"><table width="720" border="1" align="left" cellpadding="0" cellspacing="0">
                              <tr>
                                <td width="195" class="rdoBanners Estilo4"><div align="right">APELLIDOS Y NOMBRES </div></td>
                                <td colspan="2" bgcolor="#009900">                                  <div align="left">
                                  <input name="nombres" type="text" class="lblForm" id="nombres" onKeyUp=fn(this.form,this) value="<? echo $nombre?>" size="50" readonly>                                
                                </div></td>
                                <td width="106" ><div align="center">
                                  <input name="btn_ver1" type="button" class="botira" id="btn_ver1" style="<?=$stylo['st2']?>" value="Buscar" onClick="javascript:Abrir_Ventanapopup1('reg_clinico_ver_vacunas.php',465,300)" >
                                </div></td>
                                <td width="131" ><div align="center">
                                  <input name="btn_ver12" type="button" class="botira" id="btn_ver122" style="<?=$stylo['st2']?>" value="Nueva Ficha Medica" onClick="Nueva_Ficha('ficha_medica.php')" >
                                </div></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="right">FECHA DE NACIMIENTO</div></td>
                                <td width="104" bgcolor="#009900" ><div align="left">
                                  <input name="fechanac" type="text" class="lblForm" id="fechanac" onkeyup=fn(this.form,this) value="<? if(isset($fechanac)){echo  extraerfechanormal($fechanac);}?>" size="12" readonly >
                                  </div></td>
                                <td width="172" class="rdoBanners Estilo4">EMPRESA</td>
                                <td colspan="2" bgcolor="#009900"  class="rdoBanners Estilo4"><input name="lug_nac" type="text" class="lblForm" id="lug_nac" onkeyup=fn(this.form,this) value="<? echo $lugarnac?>" size="30" readonly></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="right">EDAD</div></td>
                                <td bgcolor="#009900" ><div align="left">
                                  <input name="edad" type="text" class="lblForm" id="edad" onkeyup=fn(this.form,this) size="12" value="<?php if(isset($fechanac)){echo edadFmysql($fechanac);}?>" readonly>
                                </div></td>
                                <td class="rdoBanners Estilo4">GENERO</td>
                                <td class="rdoBanners Estilo4"><input name="genero_sex" type="radio" class="lblForm" value="MASCULINO" <?php if($sexo=='MASCULINO'){echo "checked";}?> disabled>
                                    <span class="rdoBanners">MASCULINO</span></td>
                                <td class="rdoBanners Estilo4"><input name="genero_sex" type="radio" class="lblForm" value="FEMENINO" <?php if($sexo=='FEMENINO'){echo "checked";}?> disabled>
                                    <span class="rdoBanners">FEMENINO</span></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners"><div align="right">DOCUMENTO DE IDENTIFICACI&Oacute;N</div></td>
                                <td bgcolor="#009900" ><div align="left">
                                  <input name="doc_id" type="text" class="lblForm" id="doc_id" onkeyup=fn(this.form,this) value="<? echo $docid?>" size="20" readonly>
                                </div></td>
                                <td class="rdoBanners Estilo4">N&ordm; DE PASAPORTE</td>
                                <td colspan="2" bgcolor="#009900"  class="rdoBanners Estilo4"><input name="exp_en" type="text" class="lblForm" id="exp_en" onkeyup=fn(this.form,this) value="<? echo $expedida?>" size="30" readonly></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr>
                          <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr bgcolor="#009900" >
						<?
						if(!isset($codficha)){$codficha=0;}else{$codficha=$codficha;}
						$resul = $objclinico->DevolverFichaMedica($codficha);
						while($filas=$objclinico->NextRow($resul)){?>
                          <td colspan="2"><div align="center"><span class="rdoBanners Estilo10"><span class="lblCampoBlanco Estilo3">ESQUEMA DE VACUNACI&Oacute;N</span></span></div></td>
                        </tr>
                        <tr>
                          <td colspan="2"><table width="720" border="1" align="left" cellpadding="0" cellspacing="0">
                              <tr >
                                <td width="55" rowspan="6" bgcolor="#009900" class="rdoBanners Estilo13">&nbsp;</td>
                                <td width="74" bgcolor="#009900" class="rdoBanners Estilo13"><div align="center" class="Estilo24">DOSIS</div></td>
                                <td width="100" bgcolor="#009900" class="rdoBanners Estilo13"><div align="center" class="Estilo24">HEPATITIS A</div></td>
                                <td width="104" bgcolor="#009900" class="rdoBanners Estilo13"><div align="center" class="Estilo24">HEPATITIS B</div></td>
                                <td width="103" bgcolor="#009900" class="rdoBanners Estilo13"><div align="center" class="Estilo24">T&Eacute;TANO</div></td>
                                <td width="102" bgcolor="#009900" class="rdoBanners Estilo13"><div align="center" class="Estilo24">RABIA</div></td>
                                <td width="107" bgcolor="#009900" class="rdoBanners Estilo13"><span class="Estilo24">F. AMARILLA</span></td>
                                <td width="57" rowspan="6" bgcolor="#009900" class="rdoBanners Estilo13">&nbsp;</td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Primera</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha3" type="text" class="lblForm" id="fecha3" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatia_1'])?>" size="12">
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha3');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha8" type="text" class="lblForm" id="fecha8" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatib_1'])?>" size="12">
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha8');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha18" type="text" class="lblForm" id="fecha18" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtetano_1'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha18');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha43" type="text" class="lblForm" id="fecha43" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vrabia_1'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha43');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha28" type="text" class="lblForm" id="fecha28" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vfamarilla_1'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha28');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Segunda</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                  <input name="fecha100" type="text" class="lblForm" id="fecha100" onKeyUp=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatia_2'])?>" size="12">                                  
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha100');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                  <input name="fecha9" type="text" class="lblForm" id="fecha92" onKeyUp=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatib_2'])?>" size="12">                                  
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha9');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha19" type="text" class="lblForm" id="fecha19" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtetano_2'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha19');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha44" type="text" class="lblForm" id="fecha44" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vrabia_2'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha44');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha29" type="text" class="lblForm" id="fecha29" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vfamarilla_2'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha29');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Tercera</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha5" type="text" class="lblForm" id="fecha5" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatia_3'])?>" size="12">
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha5');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha10" type="text" class="lblForm" id="fecha10" onKeyUp=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatib_3'])?>" size="12">
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha10');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha20" type="text" class="lblForm" id="fecha20" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtetano_3'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha20');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha45" type="text" class="lblForm" id="fecha45" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vrabia_3'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha45');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha30" type="text" class="lblForm" id="fecha30" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vfamarilla_3'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha30');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Refuerzo</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha6" type="text" class="lblForm" id="fecha6" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatia_r'])?>" size="12">
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha6');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha11" type="text" class="lblForm" id="fecha11" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatib_r'])?>" size="12">
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha11');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha21" type="text" class="lblForm" id="fecha21" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtetano_r'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha21');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha46" type="text" class="lblForm" id="fecha46" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vrabia_r'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha46');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha31" type="text" class="lblForm" id="fecha312" onKeyUp=fn(this.form,this) value="<? echo extraerfechanormal($filas['vfamarilla_r'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha31');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Inmunizado</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha7" type="text" class="lblForm" id="fecha7" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatia_e'])?>" size="12">
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha7');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha12" type="text" class="lblForm" id="fecha12" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vhepatib_e'])?>" size="12">
                                  <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha12');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha22" type="text" class="lblForm" id="fecha22" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtetano_e'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha22');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha47" type="text" class="lblForm" id="fecha47" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vrabia_e'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha47');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha32" type="text" class="lblForm" id="fecha32" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vfamarilla_e'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha32');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                              </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900" >
                          <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                          <td colspan="2"><table width="720" border="1" align="left" cellpadding="0" cellspacing="0">
                              <tr >
                                <td width="56" rowspan="6" bgcolor="#009900" class="rdoBanners Estilo13">&nbsp;</td>
                                <td width="73" bgcolor="#009900" class="rdoBanners Estilo13"><div align="center" class="Estilo24">DOSIS</div></td>
                                <td width="101" bgcolor="#009900" class="rdoBanners Estilo14"><div align="center" class="Estilo24">F. TIFOIDEA</div></td>
                                <td width="103" bgcolor="#009900" class="rdoBanners Estilo14"><div align="center" class="Estilo24">OTRAS</div></td>
                                <td width="103" bgcolor="#009900" class="rdoBanners Estilo14"><div align="center" class="Estilo24">INFLUENZA</div></td>
                                <td width="270" rowspan="6" bgcolor="#009900" class="rdoBanners Estilo14">&nbsp;</td>
                              </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Primera</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha33" type="text" class="lblForm" id="fecha33" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtifoidea_1'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha33');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha38" type="text" class="lblForm" id="fecha38" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['votras_1'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha38');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha48" type="text" class="lblForm" id="fecha48" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vinfluenza_1'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha48');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Segunda</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha34" type="text" class="lblForm" id="fecha34" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtifoidea_2'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha34');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha39" type="text" class="lblForm" id="fecha39" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['votras_2'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha39');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha49" type="text" class="lblForm" id="fecha49" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vinfluenza_2'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha49');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Tercera</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha35" type="text" class="lblForm" id="fecha35" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtifoidea_3'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha35');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha40" type="text" class="lblForm" id="fecha40" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['votras_3'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha40');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha50" type="text" class="lblForm" id="fecha50" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vinfluenza_3'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha50');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Refuerzo</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha36" type="text" class="lblForm" id="fecha36" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtifoidea_r'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha36');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha41" type="text" class="lblForm" id="fecha412" onKeyUp=fn(this.form,this) value="<? echo extraerfechanormal($filas['votras_r'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha41');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha51" type="text" class="lblForm" id="fecha51" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vinfluenza_r'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha51');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                </tr>
                              <tr>
                                <td class="rdoBanners Estilo4"><div align="center">Inmunizado</div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha37" type="text" class="lblForm" id="fecha37" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vtifoidea_e'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha37');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><div align="center">
                                    <input name="fecha42" type="text" class="lblForm" id="fecha422" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['votras_e'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha42');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></div></td>
                                <td bgcolor="#009900" class="rdoBanners Estilo4"><input name="fecha52" type="text" class="lblForm" id="fecha52" onkeyup=fn(this.form,this) value="<? echo extraerfechanormal($filas['vinfluenza_e'])?>" size="12">
                                    <a onMouseOver="window.status='Calendario';return true;" onMouseOut="window.status='';return true;"  href="javascript:show_calendar('form1.fecha52');"><img src="imagenes/calendar.jpg" alt="Calendario" width="16" height="15" border="0"></a></td>
                                </tr>
                          </table></td>
                        </tr>
                        <tr bgcolor="#009900" >
                          <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr bgcolor="#009900" >
                          <td colspan="2">&nbsp;</td>
                        </tr>
                        <tr>
                          <td width="571" bgcolor="#99CC99"><div align="center"> </div>                            
                            <div align="center">
                              <input name="grabar" type="button" class="lblForm" id="grabar6" value=".:   Actualizar Vacunas   :." onClick="enviar_url(form1,'procesos/actualiza_vacunas.php')">                            
                            </div>                            <div align="center"> </div>                            <div align="center"> </div></td>
                          <td width="149" bgcolor="#99CC99"><div align="center">
                            <input name="btn_ver122" type="button" class="botira" id="btn_ver12" style="<?=$stylo['st2']?>" value=".:   SALIR  :." onClick="Salir('fondo.php')" >
                          </div></td>
                        </tr>
						  <?php }?>
                    </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="9,10,8" href="fondo.php">
</map>
</body>
</html>
