<?
include("../fnc.php");
enlinea_a();

if($idalumno){
$qver=mysql_query("select * from alumnos where carnet = '$idalumno'");
 if(mysql_num_rows($qver)==0){
  alert("El número de carnet no existe","javascript:history.go(-1)");
 }else{
  $info=mysql_fetch_array($qver);
  $qgrado=mysql_query("select grado from grados where id = '{$info[grado_estudio]}'");
  $igrado=mysql_fetch_array($qgrado);
  $mgradoe=strtolower($igrado[grado]);
  $tipo="Update";
  $link_foto="<a href='frm_alumno_foto.php?idalumno={$info[carnet]}&backurl=frm_alumno.php' class='link_parrafo'>Agregar/Modificar Foto</a>";
  if(file_exists("../fotos_usr/{$info[carnet]}.jpg")){
   //$foto="<img src=\"../fotos_usr/{$info[carnet]}.jpg\" width=\"95\" height=\"125\" border=\"1\">";
   $foto=rd_imagen("../fotos_usr/",$info[carnet].".jpg",125,"border='1'?$fechahora");
  }else{
   //$foto="<img src=\"../fotos_usr/sin_foto.jpg\" width=\"95\" height=\"125\" border=\"1\">";
   $foto=rd_imagen("../fotos_usr/","sin_foto.jpg",125,"border='0'");
  }
 }
}else{
 $tipo="Add";
 $foto="";
 $link_foto="";
}
if($info[ddepto]=="" or $info[ddepto]==0){$info[ddepto]==1;}
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>e-Ducativo - Bienvenido</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="../estilo1.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="../jsincludes/overlib.js"></script>

<script language="javascript">
function mostrar_carnet(){
  if(document.form2.txtalumno.value != "SV"){
    document.form2.idalumno.value = document.form2.txtalumno.value;
  }else{
    document.form2.idalumno.value = "" ;
  }
}

function seleccionar_alumno(){
  var combo = document.form2.txtalumno;
  var mcarnet = document.form2.idalumno.value;
  var respuesta;

  for(i=0;i<combo.length;i++){
    if(combo.options[i].value==mcarnet){
         combo.selectedIndex = i;
    }
  }
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}

function validar(formulario){

  if(document.form1.txtcarnet.value==""){
   alert("Por favor ingrese un número de carné");
   document.form1.txtcarnet.focus();
   return (false);
  }

  if(document.form1.txtnombre.value==""){
   alert("Por favor ingrese el nombre del alumno");
   document.form1.txtnombre.focus();
   return (false);
  }

  if(document.form1.txtapellido.value==""){
   alert("Por favor ingrese los apellidos del alumno");
   document.form1.txtapellido.focus();
   return (false);
  }

  if(document.form1.txtyear_estudio.value==""){
   alert("Por favor ingrese el año escolar del alumno");
   document.form1.txtyearestudio.focus();
   return (false);
  }
  
  return (true);
}

function contratos(){
  if(document.form1.txtyear_estudio.value==""){
   alert("Debe ingresar el año escolar del alumno");
   return (false);
  }

  self.location='./frm_contrato.php?tipo=alumnos&idalumno=<?=$idalumno;?>';
}

// CODIGO PARA DEPARTAMENTOS
var depto= new Array();
//var tmp = new Array(300);
var municipio = new Array();
<?php
 $q=mysql_query("select * from departamentos order by departamento");
 echo mysql_error();
 while($idepto=mysql_fetch_array($q)){
  echo "depto[{$idepto[id]}]='".$idepto[departamento]."';\n";
 }

 $qm=mysql_query("select * from municipios order by departamento, municipio");
 $n=0;
 while($imun=mysql_fetch_array($qm)){
  echo "municipio[$n]='".$imun[departamento]."|".$imun[municipio]."|".$imun[id]."';\n";
  $n++;
 }
?>

function llenard(){
 var cont = 0;
 document.form1.txtddepto.options[cont] = new Option ("Seleccione un departamento...","SV");
 cont++;
 for(i=1;i<depto.length;i++){
  document.form1.txtddepto.options[cont] = new Option(depto[i],i);
  cont++;
 }
}

function llenarm(){
 for(i=document.form1.txtdmunicipio.length; i>-1; i--){
   document.form1.txtdmunicipio.options[i]=null;
 }

 var mDepto=document.form1.txtddepto.value;

 cont=0;
 for(i=0;i<municipio.length;i++){
   var tmp = municipio[i].split("|");
   if(tmp[0]==mDepto){
    document.form1.txtdmunicipio.options[cont] = new Option (tmp[1], tmp[2]);
    cont++;
   }
 }
}
// FIN DEL CODIGO PARA DEPARTAMENTOS

// CODIGO COMBOS PLANES DE PAGO - GRADOS
var grado= new Array();
var plan_pago = new Array();
<?php
 $qgrado=mysql_query("select grados.id as idgrado, grados.grado, niveles.nivel, niveles.id as idnivel
                      from grados inner join niveles on niveles.id = grados.nivel
                      order by niveles.id, grados.id");

 $n=1;
 while($igrado=mysql_fetch_array($qgrado)){
  echo "grado[$n]='".$igrado[grado]." ".$igrado[nivel]."|".$igrado[idgrado]."';\n";
  $n++;
 }

 $qpp=mysql_query("select * from cp_planesdepagos order by plan");
 $n=0;
 while($ipp=mysql_fetch_array($qpp)){
  echo "plan_pago[$n]='".$ipp[grado]."|".$ipp[plan]."|".$ipp[id]."';\n";
  $n++;
 }
?>

function llenarg(){
 var cont = 0;
 <?
 if($info[grado_estudio]>0){
 ?>
 var migrado=<?=$info[grado_estudio];?>;
 <?
 }else{
 ?>
 var migrado=0;
 <?
 }
 ?>
 document.form1.txtgrado.options[cont] = new Option ("Seleccione un grado...","SV");
 cont++;
 for(i=1;i<grado.length;i++){
  var tmp = grado[i].split("|");
  document.form1.txtgrado.options[cont] = new Option(tmp[0],tmp[1]);
  if(migrado>0){
   if(migrado==tmp[1]){
    document.form1.txtgrado.options[cont].selected = true;
   }
  }
  cont++;
 }
}

function llenarpp(){
    <?
     if($info[plan_pago]>0){
    ?>
     var mipp=<?=$info[plan_pago];?>;
    <?
    }else{
    ?>
     var mipp=0;
   <?
    }
   ?>

 for(i=document.form1.txtplanpago.length; i>-1; i--){
   document.form1.txtplanpago.options[i]=null;
 }
 cont=0;
 document.form1.txtplanpago.options[cont] = new Option ("Seleccione un plan de pago...","SV");
 cont++;
 var mGrado=document.form1.txtgrado.value;

 for(i=0;i<plan_pago.length;i++){

   var tmp = plan_pago[i].split("|");
   var encontrado=false;
   var tmp2 = tmp[0].split(",");

   for(k=0;k<=tmp2.length;k++){
     if (tmp2[k]==mGrado){
       encontrado = true;
     }
   }

   if(encontrado==true){
    document.form1.txtplanpago.options[cont] = new Option (tmp[1], tmp[2]);
    if(mipp==tmp[2]){
      document.form1.txtplanpago.options[cont].selected = true;
    }
    cont++;
   }
 }
}

// FIN CODIGO COMBOS PLANES DE PAGO - GRADOS
</script>
<style type="text/css">
<!--
body {
	background-image: url(../images/tema/bg_pagina.png);
}
-->
</style></head>

<body>
<table width="750" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#333333">
  <tr>
    <td bgcolor="#336699">    <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0" background="../images/tema/bg_contenido.png" bgcolor="#FFFFCC">
      <tr bgcolor="#FFFFFF">
        <td width="40%" bgcolor="#FFFFCC"><img src="../images/logo_5.gif" width="300" height="50"></td>
        <td width="60%" background="../images/back_header_admin.gif" bgcolor="#FFFFFF"><div align="right" class="usuario_nombre_enc"><strong><?echo "$unombre $uapellido";?><br>
          </strong>Tiene <?=mensajes($uuser);?> mensaje(s) sin leer</div></td>
      </tr>
      <tr bgcolor="#FFFFFF">
        <td height="15" colspan="2" background="../images/barra_encabezado.gif">&nbsp;</td>
        </tr>
    </table>
      <table width="100%"  border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td width="20%" valign="top" background="../images/tema/bg_contenido.png"><?php include("menu.php"); ?>&nbsp;</td>
          <td width="80%" valign="top" background="../images/tema/bg_contenido.png"><table width="100%"  border="0" cellpadding="0" cellspacing="0">
            <tr align="center" valign="middle" bgcolor="#FFFFCC">
              <td width="65" height="20" background="../images/tema/bg_contenido.png" class="titulo_pagina"><div align="center" class="titulo_pagina"></div></td>
              <td width="433" background="../images/tema/bg_contenido.png" class="titulo_pagina"><strong>ADMINISTRACION DE ALUMNOS</strong></td>
              <td width="65" align="center" valign="middle" background="../images/tema/bg_contenido.png" class="titulo_pagina"><a href="inicio.php" class="link_parrafo">Inicio<img src="../images/ic_home.png" width="21" height="21" border="0"></a></td>
            </tr>
            <tr>
              <td colspan="3" align="left" valign="top"><div align="left" class="parrafo">
                <form name="form2" method="post" action="frm_alumno.php" autocomplete="off">
                  <table width="99%"  border="0" align="center" cellpadding="1" cellspacing="1" bgcolor="#009900">
                    <tr>
                      <td width="83%" background="../images/tema/bg_frm_campos.png" bgcolor="#FFFFE6"><div align="left" class="font_blue_11"> 
                        <div align="left"><strong> MODIFICAR INFORMACION  DE ALUMNOS <br>
                          Ingrese el n&uacute;mero de carnet
                          <input name="idalumno" type="text" class="txt_buscar" id="idalumno3" dir="rtl" size="15" maxlength="15" onkeyup="seleccionar_alumno();">
                            <br>
                          Seleccione un alumno: 
                          <select name="txtalumno" class="textbox" id="txtalumno" onchange="mostrar_carnet();">
                            <option value="SV" selected>Seleccione uno...</option>
                            <?
                          $qal=mysql_query("select carnet, nombre, apellido from alumnos where year_estudio > 0 order by apellido, nombre");
                          while($ial2=mysql_fetch_array($qal)){
                            echo "<option value='{$ial2[carnet]}'>{$ial2[apellido]}, {$ial2[nombre]} </option>";
                          }
                          ?>
                          </select>
                          <input name="Submit3" type="submit" class="boton_modificar" value="Modificar">
                        </strong> </div>
                      </div></td>
                      <td width="17%" background="../images/tema/bg_frm_campos.png" bgcolor="#FFFFE6"><div align="center"><strong><a href="frm_buscar_alumno.php" class="lbl_buscar">Buscar Alumno </a></strong></div></td>
                    </tr>
                  </table>
                </form>
                                <hr size="1">
                                <?if(!$idalumno){exit();}?>
                    <form name="form1" method="post" action="mnt_alumno.php" onSubmit="return validar(this.form)" autocomplete="off">
                      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td><div align="center">
                          <?
                          if($idalumno=="Nul"){
                          ?>
                              <input name="Submit32" type="button" class="boton_deshacer" onClick="self.location='rpt_frm_boletas_mensuales.php?idalumno=<?=$idalumno;?>'" value="Imprimir boletas mensualidades">
                          <?}?>
                          </div></td>
                          <td><div align="center">
                          <?
                          if($idalumno){
                          ?>
                              <input name="Submit322" type="button" class="boton_deshacer"  onclick="contratos();" value="Imprimir Contrato">
                          <?}?>
                          </div></td>
                        </tr>
                      </table>
                      <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                        <tr>
                          <td>
                            <table width="100%"  border="0" cellspacing="0" cellpadding="0">
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="3" class="titulo_seccion"><table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#CFDFEF">
                                          <tr bgcolor="#6699CC">
                                            <td width="71%" height="32" bgcolor="#FFFFFF" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                              <tr>
                                                <td width="2%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                                <td width="98%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n general del alumno
                                                  <input name="idalumno" type="hidden" id="idalumno" value="<?=$idalumno;?>"></td>
                                              </tr>
                                            </table>                                            </td>
                                            <td width="29%" background="../images/tema/bg_titulo_frm.png" bgcolor="#ECF2F9" class="titulo_formulario"><?if($idalumno){?>
                                            <div align="right"><a href="frm_alumno_expv2.php?idalumno=<?=$idalumno;?>" class="link_parrafo_blanco"><strong>[ Editar  Expediente ]</strong></a></div>
                                            <?}?></td>
                                          </tr>
                                      </table></td>
                                    </tr>
                                    <tr bgcolor="#A4DBFF" class="font_red_11">
                                      <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" class="lbl_campo">Plan de pago </td>
                                      <td background="../images/tema/bg_frm_campos.png" class="lbl_roja">
                                      <select name="txtplanpago" class="textbox" id="txtplanpago">
                                      <?
                                      if($info[plan_pago]==0){
                                        echo "<option value='0' class='selected_option'>Plan General</option>";
                                      }
                                      $qplanpago=seleccionar("cp_planesdepagos","id, plan","id = '{$info[plan_pago]}'");
                                      while($iplanpago=registro($qplanpago)){
                                        echo "<option value='{$iplanpago[id]}' class='selected_option'>{$iplanpago[plan]}</option>";
                                      }
                                      ?>
                                      </select>
                                      </td>
                                      <td width="28%" rowspan="6" background="../images/tema/bg_frm_campos.png" bgcolor="#FFFFFF"><div align="center" class="lbl_formulario"><?=$foto;?><br>
                                      <?=$link_foto;?></div></td>
                                    </tr>
                                    <tr bgcolor="#A4DBFF" class="font_red_11">
                                      <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" class="lbl_campo">Grado</td>
                                      <td width="59%" background="../images/tema/bg_frm_campos.png" class="lbl_roja">
                                        <select name="txtgrado" class="textbox" id="select">
                                          <?
                   $where="";
                   if(isset($idalumno)){
                     $where="where grados.id = {$info[grado_estudio]}";

                    $qgrado=mysql_query("select grados.id as idgrado, grados.grado, niveles.nivel, niveles.id as idnivel
                                         from grados inner join niveles on niveles.id = grados.nivel
                                         $where
                                         order by niveles.id, grados.id");
                    ?>
                                          <?
                    while($igrado=mysql_fetch_array($qgrado)){
                     echo "<option value='$igrado[idgrado]' class='selected_option' selected>{$igrado[grado]} {$igrado[nivel]}</option>";
                    }
                   }
                   /*
                    $qgrado=mysql_query("select grados.id as idgrado, grados.grado, niveles.nivel, niveles.id as idnivel
                                         from grados inner join niveles on niveles.id = grados.nivel
                                         order by niveles.id, grados.id");

                    while($igrado=mysql_fetch_array($qgrado)){
                     echo "<option value='$igrado[idgrado]'>{$igrado[grado]} {$igrado[nivel]}</option>";
                    }  */
                    ?>
                                        </select>
                                      <strong>Secci&oacute;n:
                                      <select name="txtseccion" class="textbox" id="txtseccion">
                                        <option value="SV">Seleccione...</option>
                                        <?
                                  $qsecciones=mysql_query("select * from secciones_grados where grado = '{$info[grado_estudio]}' and estado='A' order by seccion");
                                  while($iseccion=mysql_fetch_array($qsecciones)){
                                    $sel="";
                                    if($info[seccion]==$iseccion[seccion]){
                                      $sel="selected class='selected_option'";
                                    }
                                    echo "<option value='{$iseccion[seccion]}' $sel>{$iseccion[seccion]}</option>";
                                  }
                                  ?>
                                      </select>
</strong></td>
                                    </tr>
                                    <tr bgcolor="#A4DBFF" class="font_red_11">
                                      <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" class="lbl_campo"><strong class="lbl_campo">A&ntilde;o escolar </strong></td>
                                      <td background="../images/tema/bg_frm_campos.png"><input name="txtyear_estudio" type="text" class="font_red_11" id="txtyear_estudio" size="4" maxlength="4" value="<?=$info[year_estudio];?>" readonly="true"></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">No. Carnet</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtcarnet" type="text" class="textbox" id="txtcarnet" value="<?=$info[carnet];?>" <?if($tipo=="Update"){echo "Readonly='true'";}?>></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td width="13%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre(s)</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left">
                                          <input name="txtnombre" type="text" class="textbox" id="txtnombre2" value="<?=$info[nombre];?>" size="60" maxlength="100">
                                      </div></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td width="13%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Apellido(s)</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left">
                                          <input name="txtapellido" type="text" class="textbox" id="txtapellido2" value="<?=$info[apellido];?>" size="60" maxlength="100">
                                      </div></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td width="13%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n residencia </td>
                                      <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#D9E4F2"><div align="left">
                                          <table width="100%"  border="0" cellspacing="1" cellpadding="1">
                                            <tr class="lbl_formulario">
                                              <td><div align="center">N&uacute;mero de calle<br>
                            o avenida </div></td>
                                              <td><div align="center">N&uacute;mero <br>
                            de casa </div></td>
                                              <td><div align="center">Zona</div></td>
                                              <td colspan="3"><div align="left">Colonia</div>
                                              <div align="left"></div>
                                              <div align="center"></div>                                                <div align="left"></div></td>
                                            </tr>
                                            <tr>
                                              <td width="14%"><div align="center">
                                                  <input name="txtdcalleavenida" type="text" class="textbox" id="txtdcalleavenida2" size="15" maxlength="15" value="<?=$info[dcalle_avenida];?>">
                                              </div></td>
                                              <td width="9%"><div align="center">
                                                  <input name="txtdnumcasa" type="text" class="textbox" id="txtdnumcasa2" size="6" maxlength="10" value="<?=$info[dnumero_casa];?>">
                                              </div></td>
                                              <td width="5%"><div align="center">
                                                  <input name="txtdzona" type="text" class="textbox" id="txtdzona2" size="3" maxlength="3" value="<?=$info[dzona];?>">
                                              </div></td>
                                              <td colspan="3">                                                <div align="left">
                                                <input name="txtdcolonia" type="text" class="textbox" id="txtdcolonia2" size="50" maxlength="100" value="<?=$info[dcolonia];?>">                                              
                                              </div></td>
                                            </tr>
                                            <tr class="font_red_11">
                                              <td><div align="center">Ej: 21 Avenida</div></td>
                                              <td><div align="center">1-57</div></td>
                                              <td><div align="center">3</div></td>
                                              <td colspan="3"><div align="left">Alamedas Sta. Clara </div>
                                              <div align="center"></div>                                                <div align="left"></div></td>
                                            </tr>
                                            <tr class="font_red_11">
                                              <td colspan="4" class="lbl_formulario">Departamento </td>
                                              <td width="63%" colspan="2" class="lbl_formulario">Municipio</td>
                                            </tr>
                                            <tr class="font_red_11">
                                              <td colspan="4"><select name="txtddepto" class="textbox" id="txtddepto" onChange="llenarm()">
                                                <option value="SV">Seleccione un departamento...</option>
                                                <?

                            $qd=mysql_query("select * from departamentos order by departamento");
                            while($id=mysql_fetch_array($qd)){
                              $sel="";
                              if($id[id]==$info[ddepto]){
                               $sel="selected";
                              }
                              echo "<option value='{$id[id]}' $sel>{$id[departamento]}</option>";
                            }
                           ?>
                                              </select>
                                                <input name="txtdp" type="hidden" id="txtdp" value="<?=$dp;?>"></td>
                                              <td colspan="2"><select name="txtdmunicipio" class="textbox" id="select3">
                                                <?
                            $qd=mysql_query("select * from municipios where departamento = '{$info[ddepto]}' order by municipio");
                            while($id=mysql_fetch_array($qd)){
                             $sel="";
                             if($id[id]==$info[dmunicipio]){
                               $sel="selected";
                             }
                              echo "<option value='{$id[id]}' $sel>{$id[municipio]}</option>";
                            }
                            ?>
                                              </select></td>
                                            </tr>
                                          </table>
                                      </div></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td width="13%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s)</td>
                                      <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left"> <span class="lbl_campo"> Casa:</span>
                                              <input name="txttelefono" type="text" class="textbox" id="txttelefono2" value="<?=$info[tel_casa];?>" size="14" maxlength="10">
                                              <span class="lbl_campo">Tel&eacute;fono M&oacute;vil (Celular):
                                              <input name="txttelefonom" type="text" class="textbox" id="txttelefonom" value="<?=$info[tel_movil];?>" size="14" maxlength="10">
                                      </span></div></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td width="13%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Sexo</td>
                                      <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><select name="txtsexo" class="textbox" id="select4">
                                          <option value="SV" selected>Seleccione uno...</option>
                                          <option value="M" <?if($info[sexo]=="M"){echo "selected";}?>>Masculino</option>
                                          <option value="F" <?if($info[sexo]=="F"){echo "selected";}?>>Femenino</option>
                                        </select>
                                      <div align="left"> </div></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de Nacimiento </td>
                                      <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtlugarnac" type="text" class="textbox" id="txtlugarnac" value="<?=$info[lugar_nacimiento];?>" size="30" maxlength="24">
                                          <span class="lbl_campo">Fecha:</span>
                                          <input name="txtfnd" type="text" class="textbox" id="txtfnd2" value="<?=day_of_date($info[fecha_nacimiento]);?>" size="3" maxlength="2">
                  -
                  <select name="txtfnm" class="textbox" id="select5">
                    <option value="SV">Seleccione uno...</option>
                    <?
/*                      if(strval(month_of_date($info[fecha_nacimiento]))<10){
                       $mimes=str_replace("0","",month_of_date($info[fecha_nacimiento]));
                      }
                      */
                      for($i=1;$i<=12;$i++){
                        $sel="";
                        if($i<10){
                        $n="0".$i;
                        }else{
                         $n=$i;
                        }
                        if($n==month_of_date($info[fecha_nacimiento])){
                         $sel="selected";
                        }
                        echo "<option value='$i' $sel>".mes_letras($i)."</option>";
                      }
                      ?>
                  </select>
                  <input name="txtfny" type="text" class="textbox" id="txtfny" value="<?=year_of_date($info[fecha_nacimiento]);?>" size="5" maxlength="4">
                  [dia-mes-a&ntilde;o] </td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Religi&oacute;n</td>
                                      <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><select name="txtreligion" class="textbox" id="select6">
                                          <option value="SV">Seleccione una...</option>
                                          <?
                                          $qrel=mysql_query("select * from religiones order by id");
                                          while($irel=mysql_fetch_array($qrel)){
                                          $sel="";
                                          if($irel[id]==$info[religion]){
                                           $sel="selected class='selected_option'";
                                          }
                                          ?>
                                          <option value="<?=$irel[id];?>" <?=$sel;?>><?=$irel[religion];?></option>
                                          <?
                                          }
                                          ?>
                                      </select></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Correo Electr&oacute;nico </td>
                                      <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtmail" type="text" class="textbox" id="txtmail" value="<?=$info[mail];?>" size="60" maxlength="100"></td>
                                    </tr>
                                    <tr bgcolor="#E8E8E8">
                                      <td width="13%" align="left" valign="middle" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tipo de Sangre</td>
                                      <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><div align="left">
                                          <input name="txttiposangre" type="text" class="textbox" id="txttiposangre2" value="<?=$info[tipo_sangre];?>" size="6" maxlength="5">
                                      </div></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td height="32" colspan="2" background="../images/tema/bg_titulo_frm.png" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                            <td width="94%">Informaci&oacute;n del padre</td>
                                          </tr>
                                        </table></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre del padre</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtpadrenombre" type="text" class="textbox" id="txtpadrenombre2" value="<?=$info[padre_nombre];?>" size="60" maxlength="100"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><textarea name="txtpadredireccion" cols="60" rows="3" class="textbox" id="textarea"><?=$info[padre_direccion];?>
                      </textarea></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s)</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="lbl_campo">Casa:
                                          <input name="txtpadretelefono" type="text" class="textbox" id="txtpadretelefono2" value="<?=$info[padre_telefono];?>" size="24" maxlength="24">
                  Tel&eacute;fono M&oacute;vil (celular)
                  <input name="txtpadretelefonom" type="text" class="textbox" id="txtpadretelefonom" value="<?=$info[padre_telefonom];?>" size="24" maxlength="24"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de trabajo </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtpadrelugartrabajo" type="text" class="textbox" id="txtpadrelugartrabajo2" value="<?=$info[padre_lugartrabajo];?>" size="60" maxlength="100">
                                          <span class="lbl_campo">Tel&eacute;fono:
                                          <input name="txtpadretelefonotrab" type="text" class="textbox" id="txtpadretelefonotrab" value="<?=$info[padre_teltrabajo];?>" size="24" maxlength="24">
                                      </span></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n de correo electr&oacute;nico </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtpadremail" type="text" class="textbox" id="txtpadremail2" value="<?=$info[padre_mail];?>" size="60" maxlength="255">                                      </td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                          <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n de la madre </td>
                                        </tr>
                                      </table></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre de la madre </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtmadrenombre" type="text" class="textbox" id="txtnombrepadre24" value="<?=$info[madre_nombre];?>" size="60" maxlength="100"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><textarea name="txtmadredireccion" cols="60" rows="3" class="textbox" id="txtmadredireccion"><?=$info[madre_direccion];?>
                      </textarea></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s)</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><span class="lbl_campo">Casa: </span>
                                          <input name="txtmadretelefono" type="text" class="textbox" id="txtmadretelefono" value="<?=$info[madre_telefono];?>" size="30" maxlength="24">
                                          <span class="lbl_campo">Tel&eacute;fono M&oacute;vil (celular):
                                          <input name="txtmadretelefonom" type="text" class="textbox" id="txttelefonoencargado3223" size="24" maxlength="24" value="<?=$info[madre_telefonom];?>">
                                      </span></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de trabajo </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtmadrelugartrabajo" type="text" class="textbox" id="txtmadrelugartrabajo" value="<?=$info[madre_lugartrabajo];?>" size="60" maxlength="100">
                                          <strong>Tel&eacute;fono:
                                          <input name="txtmadretelefonotrab" type="text" class="textbox" id="txtteltrabajopadre23" value="<?=$info[madre_teltrabajo];?>" size="24" maxlength="24">
                                      </strong></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n de correo electr&oacute;nico </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtmadremail" type="text" class="textbox" id="txtmadremail" value="<?=$info[madre_mail];?>" size="60" maxlength="255">                                      </td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                          <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n de la persona encargada </td>
                                        </tr>
                                      </table></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre del encargado </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtencnombre" type="text" class="textbox" id="txtencnombre" value="<?=$info[enc_nombre];?>" size="60" maxlength="100"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Parentesco</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtencparentesco" type="text" class="textbox" id="txtencparentesco" value="<?=$info[enc_parentesco];?>" size="25" maxlength="25"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">No. c&eacute;dula</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtenccedula" type="text" class="textbox" id="txtenccedula" value="<?=$info[enc_cedula];?>" size="20" maxlength="20">
                                          <span class="lbl_campo"> Extendida en: </span>
                                      <input name="txtencextendidaen" type="text" class="textbox" id="txtencextendidaen" value="<?=$info[enc_cedulaextendidaen];?>" size="40" maxlength="100"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><textarea name="txtencdireccion" cols="60" rows="3" class="textbox" id="txtencdireccion"><?=$info[enc_direccion];?>
                          </textarea></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s):</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><span class="lbl_campo">Casa</span>:
                                          <input name="txtenctelefono" type="text" class="textbox" id="txtenctelefono" value="<?=$info[enc_telefono];?>" size="30" maxlength="24">
                                          <span class="lbl_campo"> Tel&eacute;fono M&oacute;vil (celular)</span>
                                      <input name="txtenctelefonom" type="text" class="textbox" id="txttelefonoencargado32223" value="<?=$info[enc_telefonom];?>" size="30" maxlength="24"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de trabajo</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtenclugartrabajo" type="text" class="textbox" id="txtenclugartrabajo" value="<?=$info[enc_lugartrabajo];?>" size="60" maxlength="100">
                                          <span class="lbl_campo">Tel&eacute;fono del trabajo
                                          <input name="txtenctelefonotrab" type="text" class="textbox" id="txtteltrabajopadre223" value="<?=$info[enc_teltrabajo];?>" size="24" maxlength="24">
                                      </span></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n de correo electr&oacute;nico </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtencmail" type="text" class="textbox" id="txtencmail" value="<?=$info[enc_mail];?>" size="60" maxlength="255">                                      </td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2" class="titulo_formulario"><table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                          <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n para casos de emergencia </td>
                                        </tr>
                                      </table></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">En caso de una emergencia avisar a: </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtemgnombre" type="text" class="textbox" id="txtemgnombre" value="<?=$info[emg_avisara];?>" size="60" maxlength="100"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Parentesco</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtemgparentesco" type="text" class="textbox" id="txtemgparentesco" value="<?=$info[emg_parentesco];?>" size="30" maxlength="100"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><textarea name="txtemgdireccion" cols="60" rows="3" class="textbox" id="txtemgdireccion"><?=$info[emg_direccion];?>
                          </textarea></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono(s)</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><span class="lbl_campo">Casa:</span>
                                          <input name="txtemgtelefono" type="text" class="textbox" id="txtemgtelefono" value="<?=$info[emg_telefono];?>" size="30" maxlength="24">
                                          <span class="lbl_campo">Tel&eacute;fono M&oacute;vil (celular):
                                          <input name="txtemgtelefonom" type="text" class="textbox" id="txttelefonoencargado322222" value="<?=$info[emg_telefonom];?>" size="30" maxlength="24">
                                      </span></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Lugar de trabajo </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9"><input name="txtemglugartrabajo" type="text" class="textbox" id="txtemglugartrabajo" value="<?=$info[emg_lugartrabajo];?>" size="60" maxlength="100">
                                          <span class="lbl_campo">Tel&eacute;fono del trabajo
                                          <input name="txtemgtelefonotrab" type="text" class="textbox" id="txtteltrabajopadre224" value="<?=$info[emg_teltrabajo];?>" size="24" maxlength="24">
                                      </span></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2"><div align="left" class="titulo_formulario">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                            <td width="94%" background="../images/tema/bg_titulo_frm.png">Servicio de Bus Escolar </td>
                                          </tr>
                                        </table>
                                      </div></td>
                                    </tr>
                                    <?
                  $chks=$chkn="";
                  if($info[bus]=="S"){
                    $chks="checked";
                  }
                  if($info[bus]=="N"){
                    $chkn="checked";
                  }

                  ?>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Desea obtener el <br>
                  servicio de bus? </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>[Si
                                            <input name="txtbus" type="radio" value="S" <?=$chks;?>>
                  ] [No
                  <input name="txtbus" type="radio" value="N" <?=$chkn;?>>
                  ] </strong></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <?
                        $chks=$chkh=$chkl=$chkp=$chkv=$chkr=$chka=$chkm=$chkne="";
                        if($info[sarampion]=="S"){$chks="checked";}
                        if($info[hepatitis]=="S"){$chkh="checked";}
                        if($info[laringitis]=="S"){$chkl="checked";}
                        if($info[paperas]=="S"){$chkp="checked";}
                        if($info[varicela]=="S"){$chkv="checked";}
                        if($info[rubeola]=="S"){$chkr="checked";}
                        if($info[amigdalitis]=="S"){$chka="checked";}
                        if($info[meningitis]=="S"){$chkm="checked";}
                        if($info[ningunaenfermedad]=="S"){$chkne="checked";}
                        ?>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2"><div align="left" class="titulo_formulario">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                            <td width="94%" background="../images/tema/bg_titulo_frm.png">Enfermedades padecidas por el alumno(a) </td>
                                          </tr>
                                        </table>
                                      </div></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Sarampi&oacute;n</td>
                                      <td width="78%" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtsarampion" type="checkbox" id="txtsarampion" value="S" <?=$chks;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Hepatitis</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthepatitis" type="checkbox" id="txthepatitis" value="S" <?=$chkh;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Laringitis</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtlaringitis" type="checkbox" id="txtlaringitis" value="S" <?=$chkl;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Paperas</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtpaperas" type="checkbox" id="txtpaperas" value="S" <?=$chkp;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Varicela</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtvaricela" type="checkbox" id="txtvaricela" value="S" <?=$chkv;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Rub&eacute;ola</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtrubeola" type="checkbox" id="txtrubeola" value="S" <?=$chkr;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Amigdalitis</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtamigdalitis" type="checkbox" id="txtvaricela3" value="S" <?=$chka;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Meningitis</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmeningitis" type="checkbox" id="txtvaricela4" value="S" <?=$chkm;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Ninguna enfermedad</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtningunaenfermedad" type="checkbox" id="txtningunaenfermedad" value="S" <?=$chkne;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Alguna otra enfermedad:</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtotraenfermedad" type="text" class="textbox" id="txtotraenfermedad" size="75" maxlength="255" value="<?=$info[otraenfermedad];?>">
                                      <strong> <span class="lbl_campo"> </span></strong></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <?
                        $huevo=$humedad=$aspirina=$frutas=$grama=$chocolates=$leche=$polvo=$antibiotico=$al_ninguna="";
                        if($info[al_huevo]=="S"){$huevo="checked";}
                        if($info[al_humedad]=="S"){$humedad="checked";}
                        if($info[al_aspirina]=="S"){$aspirina="checked";}
                        if($info[al_frutas]=="S"){$frutas="checked";}
                        if($info[al_grama]=="S"){$grama="checked";}
                        if($info[al_chocolate]=="S"){$chocolate="checked";}
                        if($info[al_leche]=="S"){$leche="checked";}
                        if($info[al_polvo]=="S"){$polvo="checked";}
                        if($info[al_antibiotico]=="S"){$antibiotico="checked";}
                        if($info[al_ninguna]=="S"){$al_ninguna="checked";}
                        ?>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2"><div align="left" class="titulo_formulario">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                            <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n sobre alergias del alumno(a) </td>
                                          </tr>
                                        </table>
                                      </div></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Huevo</td>
                                      <td width="78%" background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthuevo" type="checkbox" id="txthuevo" value="S" <?=$huevo;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Humedad</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthumedad" type="checkbox" id="txthumedad" value="S" <?=$humedad;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Aspirina</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtaspirina" type="checkbox" id="txtaspirina" value="S" <?=$aspirina;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Frutas</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtfrutas" type="checkbox" id="txtfrutas" value="S" <?=$frutas;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Grama</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtgrama" type="checkbox" id="txtgrama" value="S" <?=$grama;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Chocolates</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtchocolate" type="checkbox" id="txtchocolate" value="S" <?=$chocolate;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Leche</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtleche" type="checkbox" id="txtleche" value="S" <?=$leche;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Polvo</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtpolvo" type="checkbox" id="txtpolvo" value="S" <?=$polvo;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Antibi&oacute;tico</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtantibiotico" type="checkbox" id="txtmeningitis" value="S" <?=$antibiotico;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Ninguna alergia </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtningunaalergia" type="checkbox" id="txtmeningitis3" value="S" <?=$al_ninguna;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Alguna otra alergia:</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtotraalergia" type="text" class="textbox" id="txtotraalergia" size="75" maxlength="255" value="<?=$info[otraalergia];?>">
                                      <strong> <span class="lbl_campo"> </span></strong></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <?
                        $donafen=$alcohol=$neobol=$acetaminofen=$milanta=$peptobismol=$loratadina=$axuaoxigenada="";
                        if($info[md_donafen]=="S"){$donafen="checked";}
                        if($info[md_alcohol]=="S"){$alcohol="checked";}
                        if($info[md_neobol]=="S"){$neobol="checked";}
                        if($info[md_acetaminofen]=="S"){$acetaminofen="checked";}
                        if($info[md_milanta]=="S"){$milanta="checked";}
                        if($info[md_peptobismol]=="S"){$peptobismol="checked";}
                        if($info[md_loratadina]=="S"){$loratadina="checked";}
                        if($info[md_aguaoxigenada]=="S"){$aguaoxigenada="checked";}
                        ?>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2"><div align="left" class="titulo_formulario">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                            <td width="94%" background="../images/tema/bg_titulo_frm.png">Medicamentos que el alumno(a) puede utilizar </td>
                                          </tr>
                                        </table>
                                      </div></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Dorival</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtdonafen" type="checkbox" id="txtdonafen" value="S" <?=$donafen;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Alcohol</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtalcohol" type="checkbox" id="txtalcohol" value="S" <?=$alcohol;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Neobol</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtneobol" type="checkbox" id="txtneobol" value="S" <?=$neobol;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Acetaminof&eacute;n</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtacetaminofen" type="checkbox" id="txtacetaminofen" value="S" <?=$acetaminofen;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Milanta</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmilanta" type="checkbox" id="txtmilanta" value="S" <?=$milanta;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Peptobismol</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtpeptobismol" type="checkbox" id="txtpeptobismol" value="S" <?=$peptobismol;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Loratadina</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtloratadina" type="checkbox" id="txtloratadina" value="S" <?=$loratadina;?>></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Advil</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtaguaoxigenada" type="checkbox" id="txtaguaoxigenada" value="S" <?=$aguaoxigenada;?>></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2"><div align="left" class="titulo_formulario">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                            <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n del m&eacute;dico / hospital</td>
                                          </tr>
                                        </table>
                                      </div></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre completo del m&eacute;dico</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtnombremedico" type="text" class="textbox" id="txtnombre3" size="75" maxlength="100" value="<?=$info[med_nombre];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n Cl&iacute;nica </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicodireccion" type="text" class="textbox" id="txtmedicodireccion" size="50" maxlength="100" value="<?=$info[med_direccion];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fonos de Cl&iacute;nica </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicotelefono" type="text" class="textbox" id="txttelefono4" size="24" maxlength="30" value="<?=$info[med_telefono];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fono M&oacute;vil </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicomovil" type="text" class="textbox" id="txtmedicomovil" size="24" maxlength="30" value="<?=$info[med_movil];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Beeper</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicobeeper" type="text" class="textbox" id="txtmedicobeeper" size="50" maxlength="100" value="<?=$info[med_beeper];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo"><p>Nombre del hospital al que debe ser enviado el alumno en caso de emergencia </p></td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtmedicohospital" type="text" class="textbox" id="txtmedicohospital" size="100" maxlength="100" value="<?=$info[med_hospital];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n de Hospital </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthospitaldireccion" type="text" class="textbox" id="txthospitaldireccion" size="50" maxlength="100" value="<?=$info[med_hospitaldireccion];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fonos del Hospital</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txthospitaltelefonos" type="text" class="textbox" id="txtnombre9" size="50" maxlength="100" value="<?=$info[med_hospitaltelefono];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td colspan="2" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">&nbsp;</td>
                                    </tr>
                                    <?
                             if($info[med_servicioemg]=="S"){
                               $chkservicioemgS="checked";
                               $chkservicioemgN="";
                             }else{
                               $chkservicioemgN="checked";
                               $chkservicioemgS="";
                             }
                            ?>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Se encuentra afiliado a alguna empresa que preste servicio de emergencias<br>
                  (Rescate 911, Alerta M&eacute;dica, etc)?</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>[Si
                                            <input name="txtservicioemg" type="radio" value="S" <?=$chkservicioemgS;?>>
                  ] [No
                  <input name="txtservicioemg" type="radio" value="N" <?=$chkservicioemgN;?>>
                  ]</strong></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Nombre de la empresa </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>
                                        <input name="txtemgempresa" type="text" class="textbox" id="txtnombre10" size="50" maxlength="100" value="<?=$info[med_emgempresa];?>">
                                      <span class="lbl_campo"> </span> </strong></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Tel&eacute;fonos de la empresa </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtemgempresatelefono" type="text" class="textbox" id="txtnombre11" size="50" maxlength="100" value="<?=$info[med_emgempresatelefono];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">No. de Afiliaci&oacute;n </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtemgempresaafiliacion" type="text" class="textbox" id="txtnombre12" size="50" maxlength="100" value="<?=$info[med_emgempresaafiliacion];?>"></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                    <tr bgcolor="#6699CC">
                                      <td colspan="2"><div align="left" class="titulo_formulario">
                                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                          <tr>
                                            <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                            <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n de facturaci&oacute;n (utilizada para cobros) </td>
                                          </tr>
                                        </table>
                                      </div></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">A nombre de: </td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtfacturanombre" type="text" class="textbox" id="txtfacturanombre" size="75" maxlength="100" value="<?=$info[factura_nombre];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Direcci&oacute;n:</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtfacturadireccion" type="text" class="textbox" id="txtfacturadireccion" size="50" maxlength="100" value="<?=$info[factura_direccion];?>"></td>
                                    </tr>
                                    <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                      <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">NIT:</td>
                                      <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>
                                        <input name="txtfacturanit" type="text" class="textbox" id="txtfacturanit" size="10" maxlength="10" value="<?=$info[factura_nit];?>">
                                        <strong><span class="lbl_campo">                                        <strong><strong>
                                        <input name="tipo_trn" type="hidden" id="idi6" value="<?=$tipo;?>">
                                      </strong></strong> </span></strong> <span class="lbl_campo"> </span> </strong></td>
                                    </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                  <tr bgcolor="#6699CC">
                                    <td colspan="2"><div align="left" class="titulo_formulario">
                                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                          <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n de beca </td>
                                        </tr>
                                      </table>
                                    </div></td>
                                  </tr>
                                  <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                    <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Valor de descuento en matr&iacute;cula: </td>
                                    <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtbeca_matricula" type="text" class="textbox" id="txtbeca_matricula" value="<?=$info[beca_matricula];?>"></td>
                                  </tr>
                                  <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                    <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Valor de descuento en mensualidades: </td>
                                    <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtbeca_mensualidad" type="text" class="textbox" id="txtbeca_mensualidad" value="<?=$info[beca_mensualidad];?>"></td>
                                  </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td>&nbsp;</td>
                              </tr>
                              <tr>
                                <td bgcolor="#FFFFFF"><table width="100%"  border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#FFFFFF">
                                  <tr bgcolor="#6699CC">
                                    <td colspan="2"><div align="left" class="titulo_formulario">
                                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                        <tr>
                                          <td width="6%"><img src="../images/tema/ic_formularios.png" width="35" height="32"></td>
                                          <td width="94%" background="../images/tema/bg_titulo_frm.png">Informaci&oacute;n de acceso por internet </td>
                                        </tr>
                                      </table>
                                    </div></td>
                                  </tr>
                                  <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                    <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Clave del alumno: </td>
                                    <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtclave" type="text" class="textbox" id="txtclave" size="25" maxlength="25" value="<?=base64_decode($info[clave]);?>"></td>
                                  </tr>
                                  <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                    <td background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Clave del padre:</td>
                                    <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><input name="txtclaveweb" type="text" class="textbox" id="txtclaveweb" size="25" maxlength="25" value="<?=base64_decode($info[clave_web]);?>"></td>
                                  </tr>
                                  <tr align="left" valign="middle" bgcolor="#E8E8E8">
                                    <td width="22%" background="../images/tema/bg_frm_campos.png" bgcolor="#CFDFEF" class="lbl_campo">Usuario Activo :</td>
                                    <td background="../images/tema/bg_frm_campos.png" bgcolor="#ECF2F9" class="font_red_11"><strong>
                                      <input name="txtactivo" type="checkbox" id="txtactivo" value="S" <?if($info[activo]=="S"){echo "checked";}?>>
                                      <span class="lbl_campo"> </span> <br>
                                      Si elimina la marca de la casilla, bloquea el acceso del padre de familia al sistema. </strong></td>
                                  </tr>
                                </table></td>
                              </tr>
                              <tr>
                                <td bgcolor="#FFFFFF"><table width="100%"  border="0" cellspacing="0" cellpadding="0">
                                    <tr>
                                      <td width="21%" background="../images/tema/bg_frm_campos.png"><div align="center">
                                          <input name="Submit2" type="button" class="boton_guardar" value="Guardar Cambios" onclick="document.form1.submit();">
                                      </div></td>
                                      <td width="23%" background="../images/tema/bg_frm_campos.png"><div align="center">
                                          <input name="Submit4" type="reset" class="boton_deshacer" value="Recargar Informaci&oacute;n">
                                      </div></td>
                                    </tr>
                                </table></td>
                              </tr>
                          </table></td>
                        </tr>
                      </table>
                      <br>
                    </form>
              </div></td>
              </tr>
          </table></td>
        </tr>
    </table>    </td>
  </tr>
</table>
</body>
</html>
