  //VARIABLES ANTECEDENTES ODONTOLOGICOS
  ////////////////////////////////////////////////////////////
  $query = "SELECT * FROM SIO_ANT_ODYMED WHERE numtratamiento = $e_tratamiento";//numConsulta= $nConsulta" ;
  $result = mysql_query($query) or die('Consulta  de Antecedentes fallida: ' . mysql_error());
  $line = mysql_fetch_array($result, MYSQL_ASSOC);


    //-------------------------------------------------------//
    $s_discrasiasSang    = $line['discrasiasSang'];
    if ($s_discrasiasSang =="N" OR $s_discrasiasSang =="")
    {
      $s_discrasiasSangNo = "selected";
    }
    else
    {    
      $s_discrasiasSangSi = "selected";
    }
    $s_obsDiscrasiasSang= $line['obsDiscrasiasSang'];
    //-------------------------------------------------------//
    $s_cardiopatias      = $line['cardiopatias'];
    if ($s_cardiopatias =="N" OR $s_cardiopatias =="")
    {
      $s_cardiopatiasNo = "selected";
    }
    else
    {    
      $s_cardiopatiasSi = "selected";
    }
    $s_obsCardiopatias  = $line['obsCardiopatias'];
    //-------------------------------------------------------//
    $s_embarazo          = $line['embarazo'];
    if ($s_embarazo =="N" OR $s_embarazo =="")
    {
      $s_embarazoNo = "selected";
    }
    else
    {    
      $s_embarazoSi = "selected";
    }
    $s_obsEmbarazo = $line['obsEmbarazo'];
    //-------------------------------------------------------//
    $s_altPresArterial   = $line['altPresArterial'];
    if ($s_altPresArterial =="N" OR $s_altPresArterial =="")
    {
      $s_altPresArterialNo = "selected";
    }
    else
    {
      $s_altPresArterialSi = "selected";
    }
    $s_obsAltPresArterial = $line['obsAltPresArterial'];
    //-------------------------------------------------------//
    $s_tomaMedicamentos  = $line['tomaMedicamentos'];
    if ($s_tomaMedicamentos =="N" OR $s_tomaMedicamentos =="")
    {
      $s_tomaMedicamentosNo = "selected";
    }
    else
    {    
      $s_tomaMedicamentosSi = "selected";
    }
    $s_obsTomaMedicamentos = $line['obsTomaMedicamentos'];
    //-------------------------------------------------------//
    $s_tratMedActual     = $line['tratMedActual'];
    if ($s_tratMedActual =="N" OR $s_tratMedActual =="")
    {
      $s_tratMedActualNo = "selected";
    }
    else
    {    
      $s_tratMedActualSi = "selected";
    }
    $s_obsTratMedActual= $line['obsTratMedActual'];
    //-------------------------------------------------------//
    $s_hepatitis         = $line['hepatitis'];
    if ($s_hepatitis =="N" OR $s_hepatitis =="")
    {
      $s_hepatitisNo = "selected";
    }
    else
    {    
      $s_hepatitisSi = "selected";
    }
    $s_obsHepatitis = $line['obsHepatitis'];
    //-------------------------------------------------------//
    $s_diabetes          = $line['diabetes'];
    if ($s_diabetes =="N" OR $s_diabetes =="")
    {
      $s_diabetesNo = "selected";
    }
    else
    {    
      $chkDiabetesSi = "selected";
    }
    $s_obsDiabetes = $line['obsDiabetes'];
    //-------------------------------------------------------//
    $s_fiebreReum        = $line['fiebreReum'];
    if ($s_fiebreReum =="N" OR $s_fiebreReum =="")
    {
      $s_fiebreReumNo = "selected";
    }
    else
    {    
     $s_fiebreReumSi = "selected";
    }
    $s_obsFiebreReum = $line['obsFiebreReum'];
    //-------------------------------------------------------//
    $s_sida              = $line['sida'];
    if ($s_sida =="N" OR $s_sida =="")
    {
      $s_sidaNo = "selected";
    }
    else
    {    
      $s_sidaSi = "selected";
    }
    $s_obsSida = $line['obsSida'];
    //-------------------------------------------------------//
    $s_inmunosupresion   = $line['inmunosupresion'];
    if ($s_inmunosupresion =="N" OR $s_inmunosupresion =="")
    {
      $s_inmunosupresionNo = "selected";
    }
    else
    {    
      $s_inmunosupresionSi = "selected";
    }
    $s_obsInmunosupresion = $line['obsInmunosupresion'];
    //-------------------------------------------------------//
    $s_patologiasRenales = $line['patologiasRenales'];
    if ($s_patologiasRenales =="N" OR $s_patologiasRenales =="")
    {
      $s_patologiasRenalesNo = "selected";
    }
    else
    {    
      $s_patologiasRenalesSi = "selected";
    }
    $s_obsPatologiasRenales = $line['obsPatologiasRenales'];
    //-------------------------------------------------------//
    $s_patRespiratoria   = $line['patRespiratoria'];
    if ($s_patRespiratoria =="N" OR $s_patRespiratoria =="")
    {
      $s_patRespiratoriaNo = "selected";
    }
    else
    {    
      $s_patRespiratoriaSi = "selected";
    }
    $s_obsPatRespiratoria = $line['obsPatRespiratoria'];
    //-------------------------------------------------------//
    $s_trasGastricos     = $line['trasGastricos'];
    if ($s_trasGastricos =="N" OR $s_trasGastricos =="")
    {
     $s_trasGastricosNo = "selected";
    }
    else
    {    
     $s_trasGastricosSi = "selected";
    }
    $s_obsTrasGastricos = $line['obsTrasGastricos'];
    //-------------------------------------------------------//
    $s_trasEmocional     = $line['trasEmocional'];
    if ($s_trasEmocional =="N" OR $s_trasEmocional =="")
    {
      $s_trasEmocionalNo = "selected";
    }
    else
    {    
      $s_trasEmocionalSi = "selected";
    }
    $s_obsTrasEmocional = $line['obsTrasEmocional'];
    //-------------------------------------------------------//
    $s_sinusitis         = $line['sinusitis'];
    if ($s_sinusitis =="N" OR $s_sinusitis =="")
    {
      $s_sinusitisNo = "selected";
    }
    else
    {    
      $s_sinusitisSi = "selected";
    }
    $s_obsSinusitis= $line['obsSinusitis'];
    //-------------------------------------------------------//
    $s_cirugias          = $line['cirugias'];
    if ($s_cirugias =="N" OR $s_cirugias =="")
    {
      $s_cirugiasNo = "selected";
    }
    else
    {    
      $s_cirugiasSi = "selected";
    }
    $s_obsCirugias = $line['obsCirugias'];
    //-------------------------------------------------------//
    $s_exodoncias        = $line['exodoncias'];
    if ($s_exodoncias =="N" OR $s_exodoncias =="")
    {
      $s_exodonciasNo = "selected";
    }
    else
    {    
      $s_exodonciasSi = "selected";
    }
    $s_obsExodoncias = $line['obsExodoncias'];
    //-------------------------------------------------------//
    $s_enfOrales         = $line['enfOrales'];
    if ($s_enfOrales =="N" OR $s_enfOrales =="")
    {
      $s_enfOralesNo = "selected";
    }
    else
    {    
      $s_enfOralesSi = "selected";
    }
    $s_obsEnfOrales = $line['obsenfOrales'];
    //-------------------------------------------------------//
    $s_usoProtesis       = $line['usoProtesis'];
    if ($s_usoProtesis =="N" OR $s_usoProtesis =="")
    {
      $s_usoProtesisNo = "selected";
    }
    else
    {    
      $s_usoProtesisSi = "selected";
    }
    $s_obsUsoProtesis = $line['obsUsoProtesis'];
    //-------------------------------------------------------//
    $s_habitos           = $line['habitos'];


   //---------------------------- POST --------------------//
   //---------------------------- POST --------------------//
   //---------------------------- POST --------------------//

      //-------------------------------------------------------//
    $s_discrasiasSang    = $_POST['discrasiasSang'];
    if ($s_discrasiasSang =="N" OR $s_discrasiasSang =="")
    {
      $s_discrasiasSangNo = "selected";
    }
    else
    {    
      $s_discrasiasSangSi = "selected";
    }
    $s_obsDiscrasiasSang= $_POST['obsDiscrasiasSang'];
    //-------------------------------------------------------//
    $s_cardiopatias      = $_POST['cardiopatias'];
    if ($s_cardiopatias =="N" OR $s_cardiopatias =="")
    {
      $s_cardiopatiasNo = "selected";
    }
    else
    {    
      $s_cardiopatiasSi = "selected";
    }
    $s_obsCardiopatias  = $_POST['obsCardiopatias'];
    //-------------------------------------------------------//
    $s_embarazo          = $_POST['embarazo'];
    if ($s_embarazo =="N" OR $s_embarazo =="")
    {
      $s_embarazoNo = "selected";
    }
    else
    {    
      $s_embarazoSi = "selected";
    }
    $s_obsEmbarazo = $_POST['obsEmbarazo'];
    //-------------------------------------------------------//
    $s_altPresArterial   = $_POST['altPresArterial'];
    if ($s_altPresArterial =="N" OR $s_altPresArterial =="")
    {
      $s_altPresArterialNo = "selected";
    }
    else
    {
      $s_altPresArterialSi = "selected";
    }
    $s_obsAltPresArterial = $_POST['obsAltPresArterial'];
    //-------------------------------------------------------//
    $s_tomaMedicamentos  = $_POST['tomaMedicamentos'];
    if ($s_tomaMedicamentos =="N" OR $s_tomaMedicamentos =="")
    {
      $s_tomaMedicamentosNo = "selected";
    }
    else
    {    
      $s_tomaMedicamentosSi = "selected";
    }
    $s_obsTomaMedicamentos = $_POST['obsTomaMedicamentos'];
    //-------------------------------------------------------//
    $s_tratMedActual     = $_POST['tratMedActual'];
    if ($s_tratMedActual =="N" OR $s_tratMedActual =="")
    {
      $s_tratMedActualNo = "selected";
    }
    else
    {    
      $s_tratMedActualSi = "selected";
    }
    $s_obsTratMedActual= $_POST['obsTratMedActual'];
    //-------------------------------------------------------//
    $s_hepatitis         = $_POST['hepatitis'];
    if ($s_hepatitis =="N" OR $s_hepatitis =="")
    {
      $s_hepatitisNo = "selected";
    }
    else
    {    
      $s_hepatitisSi = "selected";
    }
    $s_obsHepatitis = $_POST['obsHepatitis'];
    //-------------------------------------------------------//
    $s_diabetes          = $_POST['diabetes'];
    if ($s_diabetes =="N" OR $s_diabetes =="")
    {
      $s_diabetesNo = "selected";
    }
    else
    {    
      $chkDiabetesSi = "selected";
    }
    $s_obsDiabetes = $_POST['obsDiabetes'];
    //-------------------------------------------------------//
    $s_fiebreReum        = $_POST['fiebreReum'];
    if ($s_fiebreReum =="N" OR $s_fiebreReum =="")
    {
      $s_fiebreReumNo = "selected";
    }
    else
    {    
     $s_fiebreReumSi = "selected";
    }
    $s_obsFiebreReum = $_POST['obsFiebreReum'];
    //-------------------------------------------------------//
    $s_sida              = $_POST['sida'];
    if ($s_sida =="N" OR $s_sida =="")
    {
      $s_sidaNo = "selected";
    }
    else
    {    
      $s_sidaSi = "selected";
    }
    $s_obsSida = $_POST['obsSida'];
    //-------------------------------------------------------//
    $s_inmunosupresion   = $_POST['inmunosupresion'];
    if ($s_inmunosupresion =="N" OR $s_inmunosupresion =="")
    {
      $s_inmunosupresionNo = "selected";
    }
    else
    {    
      $s_inmunosupresionSi = "selected";
    }
    $s_obsInmunosupresion = $_POST['obsInmunosupresion'];
    //-------------------------------------------------------//
    $s_patologiasRenales = $_POST['patologiasRenales'];
    if ($s_patologiasRenales =="N" OR $s_patologiasRenales =="")
    {
      $s_patologiasRenalesNo = "selected";
    }
    else
    {    
      $s_patologiasRenalesSi = "selected";
    }
    $s_obsPatologiasRenales = $_POST['obsPatologiasRenales'];
    //-------------------------------------------------------//
    $s_patRespiratoria   = $_POST['patRespiratoria'];
    if ($s_patRespiratoria =="N" OR $s_patRespiratoria =="")
    {
      $s_patRespiratoriaNo = "selected";
    }
    else
    {    
      $s_patRespiratoriaSi = "selected";
    }
    $s_obsPatRespiratoria = $_POST['obsPatRespiratoria'];
    //-------------------------------------------------------//
    $s_trasGastricos     = $_POST['trasGastricos'];
    if ($s_trasGastricos =="N" OR $s_trasGastricos =="")
    {
     $s_trasGastricosNo = "selected";
    }
    else
    {    
     $s_trasGastricosSi = "selected";
    }
    $s_obsTrasGastricos = $_POST['obsTrasGastricos'];
    //-------------------------------------------------------//
    $s_trasEmocional     = $_POST['trasEmocional'];
    if ($s_trasEmocional =="N" OR $s_trasEmocional =="")
    {
      $s_trasEmocionalNo = "selected";
    }
    else
    {    
      $s_trasEmocionalSi = "selected";
    }
    $s_obsTrasEmocional = $_POST['obsTrasEmocional'];
    //-------------------------------------------------------//
    $s_sinusitis         = $_POST['sinusitis'];
    if ($s_sinusitis =="N" OR $s_sinusitis =="")
    {
      $s_sinusitisNo = "selected";
    }
    else
    {    
      $s_sinusitisSi = "selected";
    }
    $s_obsSinusitis= $_POST['obsSinusitis'];
    //-------------------------------------------------------//
    $s_cirugias          = $_POST['cirugias'];
    if ($s_cirugias =="N" OR $s_cirugias =="")
    {
      $s_cirugiasNo = "selected";
    }
    else
    {    
      $s_cirugiasSi = "selected";
    }
    $s_obsCirugias = $_POST['obsCirugias'];
    //-------------------------------------------------------//
    $s_exodoncias        = $_POST['exodoncias'];
    if ($s_exodoncias =="N" OR $s_exodoncias =="")
    {
      $s_exodonciasNo = "selected";
    }
    else
    {    
      $s_exodonciasSi = "selected";
    }
    $s_obsExodoncias = $_POST['obsExodoncias'];
    //-------------------------------------------------------//
    $s_enfOrales         = $_POST['enfOrales'];
    if ($s_enfOrales =="N" OR $s_enfOrales =="")
    {
      $s_enfOralesNo = "selected";
    }
    else
    {    
      $s_enfOralesSi = "selected";
    }
    $s_obsEnfOrales = $_POST['obsenfOrales'];
    //-------------------------------------------------------//
    $s_usoProtesis       = $_POST['usoProtesis'];
    if ($s_usoProtesis =="N" OR $s_usoProtesis =="")
    {
      $s_usoProtesisNo = "selected";
    }
    else
    {    
      $s_usoProtesisSi = "selected";
    }
    $s_obsUsoProtesis = $_POST['obsUsoProtesis'];
    //-------------------------------------------------------//
    $s_habitos           = $_POST['habitos'];


   <!--- ///////////////////////////////////////////////////////////////////////////////
         //////////////ANTECEDENTES ODONTOLOGICOS Y MEDICOS GENERALES//////////////////
         ///////////////////////////////////////////////////////////////////////////////-->

     <table width="960" border="0" align="center" cellpadding="0">
        <tr></td><br></td></tr> 
                <tr class="titulosTabla" align="center">
                  <td colspan="3">ANTECEDENTES ODONTOLOGICOS Y MEDICOS GENERALES</td>
                <tr>  
                <tr class="subtutulosTabla" align="center">
                  <td width="60%">Antecedente</td>
                  <td width="5%">--</td>
                  <td width="35%">Observaciones(Si contesta afirmativamente, debe diligenciar las observaciones)</td>
                </tr>
                <!--<tr class="camposTabla">
                  <td>Alergias</td>
                  <td align="center"><input <?=$chkAlergia?> id="alergias" name="alergias" type="checkbox" value="S" /></td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsAlergia" id="obsAlergia"><?=$s_obsAlergia?></textarea></td>
                </tr>-->
               
                <tr class="camposTabla">
                  <td>Discracias Sanguineas</td>
                  <td align="center">
                      <select id="discrasiasSang" name="discrasiasSang">
                         <option <?=$s_discrasiasSangNo?> value="N">No</option>
                         <option <?=$s_discrasiasSangSi?> value="S">Si V</option>
                     </select>
                  </td>   
                  
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsDiscrasiasSang" id="obsDiscrasiasSang"><?=$s_obsDiscrasiasSang?></textarea></td>
                </tr> 

                <tr class="camposTabla">
                  <td>Cardiopatias</td>
                  <td align="center">
                      <select id="cardiopatias" name="cardiopatias">
                         <option <?=$s_cardiopatiasNo?> value="N">No</option>
                         <option <?=$s_cardiopatiasSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsCardiopatias" id="obsCardiopatias"><?=$s_obsCardiopatias?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Embarazo</td>
                  <td align="center">
                      <select id="embarazo" name="embarazo">
                         <option <?=$s_embarazoNo?> value="N">No</option>
                         <option <?=$s_embarazoSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsEmbarazo" id="obsEmbarazo"><?=$s_obsEmbarazo?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Alteracion presion arterial</td>
                  <td align="center">
                      <select id="altPresArterial" name="altPresArterial">
                         <option <?=$s_altPresArterialNo?> value="N">No</option>
                         <option <?=$s_altPresArterialSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsAltPresArterial" id="obsAltPresArterial"><?=$s_obsAltPresArterial?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Toma Medicamentos</td>
                  <td align="center">
                      <select id="tomaMedicamentos" name="tomaMedicamentos">
                         <option <?=$s_tomaMedicamentosNo?> value="N">No</option>
                         <option <?=$s_tomaMedicamentosSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsTomaMedicamentos" id="obsTomaMedicamentos"><?=$s_obsTomaMedicamentos?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Tratamiento Medico Actual</td>
                  <td align="center">
                      <select id="tratMedActual" name="tratMedActual">
                         <option <?=$s_tratMedActualNo?> value="N">No</option>
                         <option <?=$s_tratMedActualSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsTratMedActual" id="obsTratMedActual"><?=$s_obsTratMedActual?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Hepatitis</td>
                  <td align="center">
                      <select id="hepatitis" name="hepatitis">
                         <option <?=$s_hepatitisNo?> value="N">No</option>
                         <option <?=$s_hepatitisSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsHepatitis" id="obsHepatitis"><?=$s_obsHepatitis?></textarea></td>
                </tr> 

                <tr class="camposTabla">
                  <td>Diabetes</td>
                  <td align="center">
                      <select id="diabetes" name="diabetes">
                         <option <?=$s_diabetesNo?> value="N">No</option>
                         <option <?=$s_diabetesSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsDiabetes" id="obsDiabetes"><?=$s_obsDiabetes?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Fiebre Reumatica</td>
                  <td align="center">
                      <select id="fiebreReum" name="fiebreReum">
                         <option <?=$s_fiebreReumNo?> value="N">No</option>
                         <option <?=$s_fiebreReumSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsFiebreReum" id="obsFiebreReum"><?=$s_obsFiebreReum?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>HIV-Sida</td>
                  <td align="center">
                      <select id="sida" name="sida">
                         <option <?=$s_sidaNo?> value="N">No</option>
                         <option <?=$s_sidaSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsSida" id="obsSida"><?=$s_obsSida?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Inmunosupresion</td>
                  <td align="center">
                      <select id="inmunosupresion" name="inmunosupresion">
                         <option <?=$s_inmunosupresionNo?> value="N">No</option>
                         <option <?=$s_inmunosupresionSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsInmunosupresion" id="obsInmunosupresion"><?=$s_obsInmunosupresion?></textarea></td>
                </tr>

                <tr class="camposTabla">
                 <td>Patologias Renales</td>
                 <td align="center">
                      <select id="patologiasRenales" name="patologiasRenales">
                         <option <?=$s_patologiasRenalesNo?> value="N">No</option>
                         <option <?=$s_patologiasRenalesSi?> value="S">Si V</option>
                     </select>
                  </td>
                 <td><textarea rows="2" cols="80" wrap="soft" name="obsPatologiasRenales" id="obsPatologiasRenales"><?=$s_obsPatologiasRenales?></textarea></td>
                </tr>  

                <tr class="camposTabla">
                  <td>Patologias Respiratoria</td>
                  <td align="center">
                      <select id="patRespiratoria" name="patRespiratoria">
                         <option <?=$s_patRespiratoriaNo?> value="N">No</option>
                         <option <?=$s_patRespiratoriaSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsPatRespiratoria" id="obsPatRespiratoria"><?=$s_obsPatRespiratoria?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Trastornos Gastricos</td>
                  <td align="center">
                      <select id="trasGastricos" name="trasGastricos">
                         <option <?=$s_trasGastricosNo?> value="N">No</option>
                         <option <?=$s_trasGastricosSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsTrasGastricos" id="obsTrasGastricos"><?=$s_obsTrasGastricos?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Trastornos Emocionales</td>
                  <td align="center">
                      <select id="trasEmocional" name="trasEmocional">
                         <option <?=$s_trasEmocionalNo?> value="N">No</option>
                         <option <?=$s_trasEmocionalsSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsTrasEmocional" id="obsTrasEmocional"><?=$s_obsTrasEmocional?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Sinusitis</td>
                  <td align="center">
                      <select id="sinusitis" name="sinusitis">
                         <option <?=$s_sinusitisNo?> value="N">No</option>
                         <option <?=$s_sinusitisSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsSinusitis" id="obsSinusitis"><?=$s_obsSinusitis?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Cirugias (Incluson Orales)</td>
                  <td align="center">
                      <select id="cirugias" name="cirugias">
                         <option <?=$s_cirugiasNo?> value="N">No</option>
                         <option <?=$s_cirugiasSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsCirugias" id="obsCirugias"><?=$s_obsCirugias?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Exodoncias</td>
                  <td align="center">
                      <select id="exodoncias" name="exodoncias">
                         <option <?=$s_exodonciasNo?> value="N">No</option>
                         <option <?=$s_exodonciasSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsExodoncias" id="obsExodoncias"><?=$s_obsExodoncias?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Enfermedades Orales</td>
                  <td align="center">
                      <select id="enfOrales" name="enfOrales">
                         <option <?=$s_enfOralesNo?> value="N">No</option>
                         <option <?=$s_enfOralesSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsEnfOrales" id="obsEnfOrales"><?=$s_obsEnfOrales?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Uso de protesis o aparatologia oral</td>
                  <td align="center">
                      <select id="usoProtesis" name="usoProtesis">
                         <option <?=$s_usoProtesisNo?> value="N">No</option>
                         <option <?=$s_usoProtesisSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsUsoProtesis" id="obsUsoProtesis"><?=$s_obsUsoProtesis?></textarea></td>
                </tr>
                <tr class="camposTabla">
                  <td>Habitos y otras patologias o antecedentes odont&oacute;logicos o m&eacute;dicos </td>
                  <td colspan="2"><textarea rows="2" cols="90" wrap="soft" name="habitos" id="habitos"><?=$s_habitos?></textarea></td>
                </tr>
                <tr>
                  <td colspan="3" align="center">
                  <input type="submit" name="submit" value="Grabar Antecedentes"><br>   
                  </td>
                </tr> 
    </table>  

    ///////////////////////////////////////////////////////////  
    //VARIABLES EXAMEN PULPAR 
    /////////////////////////////////////////////////////////// 
    $query = "SELECT * FROM SIO_EXA_PULPAR WHERE numtratamiento = $e_tratamiento";//numConsulta= $nConsulta" ;
    $result = mysql_query($query) or die('Consulta  de Examen estomatologico fallida: ' . mysql_error());
    $line = mysql_fetch_array($result, MYSQL_ASSOC);
    
    $s_cuelloSencible= $line['cuelloSencible'];
    if ($s_cuelloSencible =="N" OR $s_cuelloSencible =="")
    {
      $s_cuelloSencibleNo = "selected";
    }
    else
    {    
     $s_cuelloSencibleSi = "selected";
    }
    $s_obsCuelloSencible= $line['obsCuelloSencible'];
    //-------------------------------------------------------//
    $s_abscesos= $line['abscesos'];
    if ($s_abscesos =="N" OR $s_abscesos =="")
    {
     $s_abscesosNo = "selected";
    }
    else
    {    
     $s_abscesosSi = "selected";
    }
    $s_obsAbscesos= $line['obsAbscesos'];
    //-------------------------------------------------------//
    $s_exposicionPulpar= $line['exposicionPulpar'];
    if ($s_exposicionPulpar =="N" OR $s_exposicionPulpar =="")
    {
      $s_exposicionPulparNo = "selected";
    }
    else
    {    
      $s_exposicionPulparSi = "selected";
    }
    $s_obsExposicionPulpar= $line['obsExposicionPulpar'];
    //-------------------------------------------------------//
    $s_cambioColor= $line['cambioColor'];
    if ($s_cambioColor =="N" OR $s_cambioColor =="")
    {
      $s_cambioColorNo = "selected";
    }
    else
    {    
      $s_cambioColorSi = "selected";
    }
    $s_obsCambioColor= $line['obsCambioColor'];    

    //---------------------------- POST --------------------//
    //---------------------------- POST --------------------//
    //---------------------------- POST --------------------//

    $s_cuelloSencible= $_POST['cuelloSencible'];
    if ($s_cuelloSencible =="N" OR $s_cuelloSencible =="")
    {
      $s_cuelloSencibleNo = "selected";
    }
    else
    {    
     $s_cuelloSencibleSi = "selected";
    }
    $s_obsCuelloSencible= $_POST['obsCuelloSencible'];
    //-------------------------------------------------------//
    $s_abscesos= $_POST['abscesos'];
    if ($s_abscesos =="N" OR $s_abscesos =="")
    {
     $s_abscesosNo = "selected";
    }
    else
    {    
     $s_abscesosSi = "selected";
    }
    $s_obsAbscesos= $_POST['obsAbscesos'];
    //-------------------------------------------------------//
    $s_exposicionPulpar= $_POST['exposicionPulpar'];
    if ($s_exposicionPulpar =="N" OR $s_exposicionPulpar =="")
    {
      $s_exposicionPulparNo = "selected";
    }
    else
    {    
      $s_exposicionPulparSi = "selected";
    }
    $s_obsExposicionPulpar= $_POST['obsExposicionPulpar'];
    //-------------------------------------------------------//
    $s_cambioColor= $_POST['cambioColor'];
    if ($s_cambioColor =="N" OR $s_cambioColor =="")
    {
      $s_cambioColorNo = "selected";
    }
    else
    {    
      $s_cambioColorSi = "selected";
    }
    $s_obsCambioColor= $_POST['obsCambioColor'];   

      <!--//////////////////////////////////////////////////////////////////////////////////////
      ///////////////////INICIO EXAMEN PULPAR //////////////////////////////////////
      //////////////////////////////////////////////////////////////////////////////////////--> 
 
      <table width="960" border="0" align="center" cellpadding="0">
               <tr></td><br></td></tr>
                <tr class="titulosTabla" align="center">
                  <td colspan="3" >EXAMEN PULPAR</td>
                </tr>
                <tr class="subtutulosTabla" align="center">
                  <td width="30%">Criterio</td>
                  <td width="5%">--</td>
                  <td width="70%">Observaciones</td>
                </tr>
                <tr class="camposTabla">
                  <td>Cuello Sensible</td>
                  <td align="center">
                      <select id="cuelloSencible" name="cuelloSencible">
                         <option <?=$s_cuelloSencibleNo?> value="N">No</option>
                         <option <?=$s_cuelloSencibleSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsCuelloSencible" id="obsCuelloSencible"><?=$s_obsCuelloSencible?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Abscesos</td>
                  <td align="center">
                      <select id="abscesos" name="abscesos">
                         <option <?=$s_abscesosNo?> value="N">No</option>
                         <option <?=$s_abscesosSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsAbscesos" id="obsAbscesos"><?=$s_obsAbscesos?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Exposicion Pulpar</td>
                  <td align="center">
                      <select id="exposicionPulpar" name="exposicionPulpar">
                         <option <?=$s_exposicionPulparNo?> value="N">No</option>
                         <option <?=$s_exposicionPulparSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsExposicionPulpar" id="obsExposicionPulpar"><?=$s_obsExposicionPulpar?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Cambio de Color</td>
                  <td align="center">
                      <select id="cambioColor" name="cambioColor">
                         <option <?=$s_cambioColorNo?> value="N">No</option>
                         <option <?=$s_cambioColorSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td align="center"><input <?=$chkCambioColor?> id="cambioColor" name="cambioColor" type="checkbox" value="S" /></td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsCambioColor" id="obsCambioColor"><?=$s_obsCambioColor?></textarea></td>
                </tr>
                <tr>
                  <td colspan="3" align="center">
                     <input type="submit" name="submit" value="Grabar Examen Pulpar"><br>   
                  </td>
                </tr> 
    </table>  

    ///////////////////////////////////////////////////////////  
    //VARIABLES TEJIDOS DENTARIOS Y OCLUSION
    ///////////////////////////////////////////////////////////  
    $query = "SELECT * FROM SIO_TEJ_DENTARIOS WHERE numtratamiento = $e_tratamiento";//numConsulta= $nConsulta" ;
    $result = mysql_query($query) or die('Consulta  de Tabla: SIO_TEJ_DENTARIOS fallida: ' . mysql_error());
    $line = mysql_fetch_array($result, MYSQL_ASSOC);

    $s_supernumerarios= $line['supernumerarios'];
    if ($s_supernumerarios =="N" OR $s_supernumerarios =="")
    {
     $s_supernumerariosNo = "selected";
    }
    else
    {    
      $s_supernumerariosSi = "selected";
    }
    $s_obsSupernumerarios= $line['obsSupernumerarios'];
    //-------------------------------------------------------//
    $s_decoloracion= $line['decoloracion'];
    if ($s_decoloracion =="N" OR $s_decoloracion =="")
    {
     $s_decoloracionNo = "selected";
    }
    else
    {    
     $s_decoloracionSi = "selected";
    }
    $s_obsDecoloracion= $line['obsDecoloracion'];
    //-------------------------------------------------------//
    $s_descalsificacion= $line['descalsificacion'];
    if ($s_descalsificacion =="N" OR $s_descalsificacion =="")
    {
     $s_descalsificacionNo = "selected";
    }
    else
    {    
      $s_descalsificacionSi = "selected";
    }
    $s_obsDescalsificacion= $line['obsDescalsificacion'];
    //-------------------------------------------------------//
    $s_facetaDesgaste= $line['facetaDesgaste'];
    if ($s_facetaDesgaste =="N" OR $s_facetaDesgaste =="")
    {
      $s_facetaDesgasteNo = "selected";
    }
    else
    {    
      $s_facetaDesgasteSi = "selected";
    }
    $s_obsFacetaDesgaste= $line['obsFacetaDesgaste'];
    //-------------------------------------------------------//
    $s_abrasion= $line['abrasion'];
    if ($s_abrasion =="N" OR $s_abrasion =="")
    {
     $s_abrasionNo = "selected";
    }
    else
    {    
     $s_abrasionSi = "selected";
    }
    $s_obsAbrasion= $line['obsAbrasion'];
    //-------------------------------------------------------//
    $s_fluorosis= $line['fluorosis'];
    if ($s_fluorosis =="N" OR $s_fluorosis =="")
    {
      $s_fluorosisNo = "selected";
    }
    else
    {    
     $s_fluorosisSi = "selected";
    }
    $s_obsFluorosis= $line['obsFluorosis'];     
    //-------------------------------------------------------//
    $s_tipOclusion= $line['tipOclusion'];
    if ($s_tipOclusion =="N" OR $s_tipOclusion =="")
    {
      $s_tipOclusionNo = "selected";
    }
    else
    {    
      $s_tipOclusionSi = "selected";
    }
    $s_obsTipOclusion= $line['obsTipOclusion'];

    //---------------------------- POST --------------------//
    //---------------------------- POST --------------------//
    //---------------------------- POST --------------------//

    $s_supernumerarios= $_POST['supernumerarios'];
    if ($s_supernumerarios =="N" OR $s_supernumerarios =="")
    {
     $s_supernumerariosNo = "selected";
    }
    else
    {    
      $s_supernumerariosSi = "selected";
    }
    $s_obsSupernumerarios= $_POST['obsSupernumerarios'];
    //-------------------------------------------------------//
    $s_decoloracion= $_POST['decoloracion'];
    if ($s_decoloracion =="N" OR $s_decoloracion =="")
    {
     $s_decoloracionNo = "selected";
    }
    else
    {    
     $s_decoloracionSi = "selected";
    }
    $s_obsDecoloracion= $_POST['obsDecoloracion'];
    //-------------------------------------------------------//
    $s_descalsificacion= $_POST['descalsificacion'];
    if ($s_descalsificacion =="N" OR $s_descalsificacion =="")
    {
     $s_descalsificacionNo = "selected";
    }
    else
    {    
      $s_descalsificacionSi = "selected";
    }
    $s_obsDescalsificacion= $_POST['obsDescalsificacion'];
    //-------------------------------------------------------//
    $s_facetaDesgaste= $_POST['facetaDesgaste'];
    if ($s_facetaDesgaste =="N" OR $s_facetaDesgaste =="")
    {
      $s_facetaDesgasteNo = "selected";
    }
    else
    {    
      $s_facetaDesgasteSi = "selected";
    }
    $s_obsFacetaDesgaste= $_POST['obsFacetaDesgaste'];
    //-------------------------------------------------------//
    $s_abrasion= $_POST['abrasion'];
    if ($s_abrasion =="N" OR $s_abrasion =="")
    {
     $s_abrasionNo = "selected";
    }
    else
    {    
     $s_abrasionSi = "selected";
    }
    $s_obsAbrasion= $_POST['obsAbrasion'];
    //-------------------------------------------------------//
    $s_fluorosis= $_POST['fluorosis'];
    if ($s_fluorosis =="N" OR $s_fluorosis =="")
    {
      $s_fluorosisNo = "selected";
    }
    else
    {    
     $s_fluorosisSi = "selected";
    }
    $s_obsFluorosis= $_POST['obsFluorosis'];     
    //-------------------------------------------------------//
    $s_tipOclusion= $_POST['tipOclusion'];
    if ($s_tipOclusion =="N" OR $s_tipOclusion =="")
    {
      $s_tipOclusionNo = "selected";
    }
    else
    {    
      $s_tipOclusionSi = "selected";
    }
    $s_obsTipOclusion= $_POST['obsTipOclusion'];

        <!--//////////////////////////////////////////////////////////////////////////////////////
         ///////////////////INICIO TEJIDOS DENTARIOS Y OCLUSION    ///////////////////////////
         //////////////////////////////////////////////////////////////////////////////////////--> 

    <table width="960" border="0" align="center" cellpadding="0">
                <tr></td><br></td></tr>
                <tr class="titulosTabla" align="center">
                  <td colspan="3" >TEJIDOS DENTARIOS Y OCLUSION</td>
                </tr>
                <tr class="subtutulosTabla" align="center">
                  <td width="30%">Criterio</td>
                  <td width="5%">--</td>
                  <td width="70%">Observaciones</td>
                </tr>
                <tr class="camposTabla">
                  <td>Supernumerarios</td>
                  <td align="center">
                      <select id="supernumerarios" name="supernumerarios">
                         <option <?=$s_supernumerariosNo?> value="N">No</option>
                         <option <?=$s_supernumerariosSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsSupernumerarios" id="obsSupernumerarios"><?=$s_obsSupernumerarios?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Decoloracion</td>
                  <td align="center">
                      <select id="decoloracion" name="decoloracion">
                         <option <?=$s_decoloracionNo?> value="N">No</option>
                         <option <?=$s_decoloracionSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsDecoloracion" id="obsDecoloracion"><?=$s_obsDecoloracion?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Descalsificacion</td>
                  <td align="center">
                      <select id="descalsificacion" name="descalsificacion">
                         <option <?=$s_descalsificacionNo?> value="N">No</option>
                         <option <?=$s_descalsificacionSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsDescalsificacion" id="obsDescalsificacion"><?=$s_obsDescalsificacion?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Facetas de Desgaste</td>
                  <td align="center">
                      <select id="facetaDesgaste" name="facetaDesgaste">
                         <option <?=$s_facetaDesgasteNo?> value="N">No</option>
                         <option <?=$s_facetaDesgasteSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsFacetaDesgaste" id="obsFacetaDesgaste"><?=$s_obsFacetaDesgaste?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Abrasi&oacute;n y/o erosi&oacute;n</td>
                  <td align="center">
                      <select id="abrasion" name="abrasion">
                         <option <?=$s_abrasionNo?> value="N">No</option>
                         <option <?=$s_abrasionSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsAbrasion" id="obsAbrasion"><?=$s_obsAbrasion?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Fluorosis</td>
                  <td align="center">
                      <select id="fluorosis" name="fluorosis">
                         <option <?=$s_fluorosisNo?> value="N">No</option>
                         <option <?=$s_fluorosisSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsFluorosis" id="obsFluorosis"><?=$s_obsFluorosis?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Tipo Oclusion </td>
                  <td align="center">
                      <select id="tipOclusion" name="tipOclusion">
                         <option <?=$s_tipOclusionNo?> value="N">No</option>
                         <option <?=$s_tipOclusionSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsTipOclusion" id="obsTipOclusion"><?=$s_obsTipOclusion?></textarea></td>
                </tr>
                <tr>
                  <td colspan="3" align="center">
                     <input type="submit" name="submit" value="Grabar Tejidos Dentarios"><br>   
                  </td>
                </tr> 
     </table>  

    ///////////////////////////////////////////////////////////  
    //VARIABLES ALTERACIONES PERIODENTALES  
    /////////////////////////////////////////////////////////// 
    $query = "SELECT * FROM SIO_ALT_PERIODONTALES WHERE numtratamiento = $e_tratamiento";//numConsulta= $nConsulta" ;
    $result = mysql_query($query) or die('Consulta  de Antecedentes fallida: ' . mysql_error());
    $line = mysql_fetch_array($result, MYSQL_ASSOC);

    $s_sangrado= $line['sangrado'];
    if ($s_sangrado =="N" OR $s_sangrado =="")
    {
      $s_sangradoNo = "selected";
    }
    else
    {    
      $s_sangradoSi = "selected";
    }
    $s_obsSangrado= $line['obsSangrado'];
    //---------------------------------------//
    $s_exudado = $line['exudado'];
    if ($s_exudado=="N" OR $s_exudado=="")
    {
      $s_exudadoNo = "select";
    }
    else
    {    
     $s_exudadoSi = "select";
    }
    $s_obsExudado = $line['obsExudado'];
    //---------------------------------------//
    $s_supuracion = $line['supuracion'];
    if ($s_supuracion =="N" OR $s_supuracion =="")
    {
      $s_supuracionNo = "selected";
    }
    else
    {    
     $s_supuracionSi = "selected";
    }
    $s_obsSupuracion = $line['obsSupuracion'];
    //---------------------------------------// 
    $s_calculos= $line['calculos'];
    if ($s_calculos =="N" OR $s_calculos =="")
    {
       $s_calculosNo = "selected";
    }
    else
    {    
       $s_calculosSi = "selected";
    }
    $s_obsCalculos= $line['obsCalculos'];
    //-------------------------------------------------------//
    $s_inflamacion= $line['inflamacion'];
    if ($s_inflamacion =="N" OR $s_inflamacion =="")
    {
       $s_inflamacionNo = "selected";
    }
    else
    {    
     $s_inflamacionSi = "selected";
    }
    $s_obsInflamacion= $line['obsInflamacion'];
    //-------------------------------------------------------//
    $s_retracciones= $line['retracciones'];
    if ($s_retracciones =="N" OR $s_retracciones =="")
    {
     $s_retraccionesNo = "selected";
    }
    else
    {    
     $s_retraccionesSi = "selected";
    }
    $s_obsRetracciones= $line['obsRetracciones'];
    //-------------------------------------------------------//
    $s_presenciaBolsas= $line['presenciaBolsas'];
    if ($s_presenciaBolsas =="N" OR $s_presenciaBolsas =="")
    {
      $s_presenciaBolsasNo = "selected";
    }
    else
    {    
     $s_presenciaBolsasSi = "selected";
    }
    $s_obsPresenciaBolsas= $line['obsPresenciaBolsas'];

    //---------------------------- POST --------------------//
    //---------------------------- POST --------------------//
    //---------------------------- POST --------------------//
   

    $s_sangrado= $_POST['sangrado'];
    if ($s_sangrado =="N" OR $s_sangrado =="")
    {
      $s_sangradoNo = "selected";
    }
    else
    {    
      $s_sangradoSi = "selected";
    }
    $s_obsSangrado= $_POST['obsSangrado'];
    //---------------------------------------//
    $s_exudado = $_POST['exudado'];
    if ($s_exudado=="N" OR $s_exudado=="")
    {
      $s_exudadoNo = "select";
    }
    else
    {    
     $s_exudadoSi = "select";
    }
    $s_obsExudado = $_POST['obsExudado'];
    //---------------------------------------//
    $s_supuracion = $_POST['supuracion'];
    if ($s_supuracion =="N" OR $s_supuracion =="")
    {
      $s_supuracionNo = "selected";
    }
    else
    {    
     $s_supuracionSi = "selected";
    }
    $s_obsSupuracion = $_POST['obsSupuracion'];
    //---------------------------------------// 
    $s_calculos= $_POST['calculos'];
    if ($s_calculos =="N" OR $s_calculos =="")
    {
       $s_calculosNo = "selected";
    }
    else
    {    
       $s_calculosSi = "selected";
    }
    $s_obsCalculos= $_POST['obsCalculos'];
    //-------------------------------------------------------//
    $s_inflamacion= $_POST['inflamacion'];
    if ($s_inflamacion =="N" OR $s_inflamacion =="")
    {
       $s_inflamacionNo = "selected";
    }
    else
    {    
     $s_inflamacionSi = "selected";
    }
    $s_obsInflamacion= $_POST['obsInflamacion'];
    //-------------------------------------------------------//
    $s_retracciones= $_POST['retracciones'];
    if ($s_retracciones =="N" OR $s_retracciones =="")
    {
     $s_retraccionesNo = "selected";
    }
    else
    {    
     $s_retraccionesSi = "selected";
    }
    $s_obsRetracciones= $_POST['obsRetracciones'];
    //-------------------------------------------------------//
    $s_presenciaBolsas= $_POST['presenciaBolsas'];
    if ($s_presenciaBolsas =="N" OR $s_presenciaBolsas =="")
    {
      $s_presenciaBolsasNo = "selected";
    }
    else
    {    
     $s_presenciaBolsasSi = "selected";
    }
    $s_obsPresenciaBolsas= $_POST['obsPresenciaBolsas'];

          <!--//////////////////////////////////////////////////////////////////////////////////////
         ///////////////////    INICIO ALTERACIONES PERIODONTALES    ///////////////////////////
         //////////////////////////////////////////////////////////////////////////////////////--> 

       <table width="960" border="0" align="center" cellpadding="0">
                <tr></td><br></td></tr>
                <tr class="titulosTabla" align="center">
                  <td colspan="3" >ALTERACIONES PERIODONTALES</td>
                </tr>
                <tr class="subtutulosTabla" align="center">
                  <td width="30%">Criterio</td>
                  <td width="5%">--</td>
                  <td width="70%">Observaciones</td>
                </tr>
                <tr class="camposTabla">
                  <td>Sangrado </td>
                  <td align="center">
                      <select id="sangrado" name="sangrado">
                         <option <?=$s_sangradoNo?> value="N">No</option>
                         <option <?=$s_sangradoSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsSangrado" id="obsSangrado"><?=$s_obsSangrado?></textarea></td>
                </tr>

                 <tr class="camposTabla">
                  <td>Exudado </td>
                  <td align="center">
                      <select id="exudado" name="exudado">
                         <option <?=$s_exudadoNo?> value="N">No</option>
                         <option <?=$s_sexudadoSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsExudado" id="obsExudado"><?=$s_obsExudado?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Supuracion</td>
                  <td align="center">
                      <select id="supuracion" name="supuracion">
                         <option <?=$s_supuracionNo?> value="N">No</option>
                         <option <?=$s_supuracionSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsSupuracion" id="obsSupuracion"><?=$s_obsSupuracion?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Calculos</td>
                  <td align="center">
                      <select id="calculos" name="calculos">
                         <option <?=$s_calculosNo?> value="N">No</option>
                         <option <?=$s_calculosSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td align="center"><input <?=$chkCalculos?> id="calculos" name="calculos" type="checkbox" value="S" /></td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsCalculos" id="obsCalculos"><?=$s_obsCalculos?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Inflamacion </td>
                  <td align="center">
                      <select id="inflamacion" name="inflamacion">
                         <option <?=$s_inflamacionNo?> value="N">No</option>
                         <option <?=$s_inflamacionSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsInflamacion" id="obsInflamacion"><?=$s_obsInflamacion?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Retracciones </td>
                  <td align="center">
                      <select id="retracciones" name="retracciones">
                         <option <?=$s_retraccionesNo?> value="N">No</option>
                         <option <?=$s_retraccionesSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsRetracciones" id="obsRetracciones"><?=$s_obsRetracciones?></textarea></td>
                </tr>

                <tr class="camposTabla">
                  <td>Presencia Bolsas </td>
                  <td align="center">
                      <select id="presenciaBolsas" name="presenciaBolsas">
                         <option <?=$s_presenciaBolsasNo?> value="N">No</option>
                         <option <?=$s_presenciaBolsasSi?> value="S">Si V</option>
                     </select>
                  </td>
                  <td><textarea rows="2" cols="80" wrap="soft" name="obsPresenciaBolsas" id="obsPresenciaBolsas"><?=$s_obsPresenciaBolsas?></textarea></td>
                </tr>

                <tr>
                  <td colspan="3" align="center">
                     <input type="submit" name="submit" value="Grabar Alteraciones Periodontales"><br>   
                  </td>
                </tr>                
     </table> 

