<div class="t">MATRICULAS</div>
    <center><br><table style='font-size:12px' border='1' cellspacing="0" cellpadding="0" class="hovertable">

         <tr>
             <td colspan="2" align="center"><B><FONT COLOR="#A71111">
                <input type="radio" id="btningresar" name="acc" value="ingmat" checked="checked" onclick="principal()"> INGRESAR MATR&Iacute;CULA
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="radio" id="btneliminar" name="acc" value="ingmat" onclick="btneliminar()"> ELIMINAR MATR&Iacute;CULA
                &nbsp;&nbsp;&nbsp;&nbsp;
                <input type="radio" id="btnmodificar" name="acc" value="ingmat" onclick="btnmodificar()"> MODIFICAR MATR&Iacute;CULA
                </B></FONT>
                <br><br>
            </td>
         </tr>
         <tr>
             <td colspan="2" >&nbsp;</td>
         </tr>
         <tr>         
         <td><b>C&Oacute;DIGO</b>&nbsp;</td>
         <td>
        <input style='font-weight:bold;text-align:center;' onblur="comprobar_codigo();"  type='text' id='codigo' size='2'>
        <input style='font-weight:bold;text-align:center;background-color: #dfdcdc' type='text' id='nombres' size='50' readonly="readonly">

        &nbsp;&nbsp;<b>ESTADO</b>
        <input style='font-weight:bold;text-align:center;' VALUE='A' type='text' id='estado' size='3' onkeyup = 'this.value=this.value.toUpperCase()'>

         </td>
         </tr>
         <tr>
             <td colspan="2" >&nbsp;</td>
        </tr>
        <tr>
            <td><b>GRADO</b>&nbsp;
            </td>
            <td>
            <input style='font-weight:bold;text-align:center;' onclick="mostrargrad('g_id1','g_id2','grados',250,310);" type='text' id='g_id1' size='2'>
            <input style='font-weight:bold;text-align:center;background-color: #dfdcdc' type='text' id='g_id2' size='22' readonly="readonly">
            &nbsp;&nbsp;&nbsp;&nbsp;
            <b>CURSO</b>
            <input style='font-weight:bold;text-align:center;' onclick="mostrar2('c_id1','c_id2','cursos',250,280);" type='text' id='c_id1' size='2'>
            <input style='font-weight:bold;text-align:center;background-color: #dfdcdc' type='text' id='c_id2' size='22' readonly="readonly"></td>

       </tr>
       <tr>
             <td colspan="2" >&nbsp;</td>
       </tr>
       <tr>
           <td>
                <b>FECHA</b>
           </td>
           <td>
                <input type="text" style='font-weight:bold;text-align:center;' id="fecha" size="8">
                &nbsp;&nbsp;
            
                <b>No. DE MATR&Iacute;CULA</b>
            
                <input type="text" style='font-weight:bold;text-align:center;' id="nmatr" size="5">

                &nbsp;&nbsp;&nbsp;
                <b>A&Ntilde;O LECTIVO</b>
            
                <input type="text" id="lec" style='font-weight:bold;text-align:center;' size="4">

                <script>

            var mydate=new Date();
            var year=mydate.getYear();
            if (year < 1000)
            year+=1900;
            var day=mydate.getDay();
            var month=mydate.getMonth()+1;
            if (month<10)
            month="0"+month;
            var daym=mydate.getDate();
            if (daym<10)
            daym="0"+daym;
            document.getElementById("fecha").value=daym+"/"+month+"/"+year;

            document.getElementById("lec").value=year;
            </script>
            </td>
        </tr>
        </table>

        <table width="71%" style='font-size:12px' border='1' cellspacing="0" cellpadding="0" class="hovertable">
        <tr>
             <td colspan="2" >&nbsp;</td>
        </tr>
        <tr>
            <td width="20">
                <b>OBSERVACIONES</b>&nbsp;&nbsp;
            
          </td>
            <td width="30">
                <textarea id="obser" style='font-weight:bold;text-align:left;'></textarea>

            </td>
        </tr>


        <tr>
            <td colspan='2' align='center'><div id="btn">
                <br>
                <input type='button' class="button medium green" name='btnguardar' onclick='grabar()' value=' Guardar '>
                <input type='button' class="button medium green" name='btnlimpiar' onclick='limpiarmat()' value=' Limpiar '>
                <input type='button' class="button medium green" name='btnregistrar' onclick='registrar_alumno()' value=' Registrar Alumno '>
                <input type='button' class="button medium green" name='btnretornar' onclick='retornarmat()' value=' Retornar '></div>
            </td>
        </tr>
     </table>
   </center>
 
   <div id='dialog' style='background-color:#003366; ' title='SELECCIONE ITEM' style="display:none;"></div>
 