<div id="custbill_form_form2" style='display: none; width: 1px; height: 0px; overflow: scroll'>
<?php $sc_hidden_no = 1; $sc_hidden_yes = 0; ?>
   <a name="bloco_0"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_3"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_3" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['updated']))
           {
               $this->nmgp_cmp_readonly['updated'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['tdate']))
           {
               $this->nmgp_cmp_readonly['tdate'] = 'on';
           }
?>
   <tr>


    <TD colspan="2" height="20" class="scFormBlock">
     <TABLE style="padding: 0px; spacing: 0px; border-width: 0px;" width="100%" height="100%">
      <TR>
       <TD align="" valign="" class="scFormBlockFont"><?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col) { echo "<table style=\"border-collapse: collapse; height: 100%; width: 100%\"><tr><td style=\"vertical-align: middle; border-width: 0px; padding: 0px 2px 0px 0px\"><img src=\"" . $this->Ini->path_icones . "/" . $this->Ini->Block_img_col . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%\" class=\"scFormBlockAlign\">"; } ?>Categories<?php if ('' != $this->Ini->Block_img_exp && '' != $this->Ini->Block_img_col) { echo "</td></tr></table>"; } ?></TD>
       
      </TR>
     </TABLE>
    </TD>

   </tr>
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['cat1']))
    {
        $this->nm_new_label['cat1'] = "CAT1";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cat1 = $this->cat1;
   $sStyleHidden_cat1 = '';
   if (isset($this->nmgp_cmp_hidden['cat1']) && $this->nmgp_cmp_hidden['cat1'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cat1']);
       $sStyleHidden_cat1 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cat1 = 'display: none;';
   $sStyleReadInp_cat1 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cat1']) && $this->nmgp_cmp_readonly['cat1'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cat1']);
       $sStyleReadLab_cat1 = '';
       $sStyleReadInp_cat1 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cat1']) && $this->nmgp_cmp_hidden['cat1'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cat1" value="<?php echo NM_encode_input($cat1) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cat1" style="<?php echo $sStyleHidden_cat1; ?>;"><span id="id_label_cat1"><?php echo $this->nm_new_label['cat1']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['custbill_form']['php_cmp_required']['cat1']) || $_SESSION['sc_session'][$this->Ini->sc_page]['custbill_form']['php_cmp_required']['cat1'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cat1" style="<?php echo $sStyleHidden_cat1; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cat1"]) &&  $this->nmgp_cmp_readonly["cat1"] == "on") { 

 ?>
<input type=hidden name="cat1" value="<?php echo NM_encode_input($cat1) . "\">" . $cat1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_cat1" class="sc-ui-readonly-cat1" style=";<?php echo $sStyleReadLab_cat1; ?>"><?php echo NM_encode_input($this->cat1); ?></span><span id="id_read_off_cat1" style="white-space: nowrap;<?php echo $sStyleReadInp_cat1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cat1" type=text name="cat1" value="<?php echo NM_encode_input($cat1) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cat1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cat1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['cat2']))
    {
        $this->nm_new_label['cat2'] = "CAT2";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cat2 = $this->cat2;
   $sStyleHidden_cat2 = '';
   if (isset($this->nmgp_cmp_hidden['cat2']) && $this->nmgp_cmp_hidden['cat2'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cat2']);
       $sStyleHidden_cat2 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cat2 = 'display: none;';
   $sStyleReadInp_cat2 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cat2']) && $this->nmgp_cmp_readonly['cat2'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cat2']);
       $sStyleReadLab_cat2 = '';
       $sStyleReadInp_cat2 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cat2']) && $this->nmgp_cmp_hidden['cat2'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cat2" value="<?php echo NM_encode_input($cat2) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cat2" style="<?php echo $sStyleHidden_cat2; ?>;"><span id="id_label_cat2"><?php echo $this->nm_new_label['cat2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cat2" style="<?php echo $sStyleHidden_cat2; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cat2"]) &&  $this->nmgp_cmp_readonly["cat2"] == "on") { 

 ?>
<input type=hidden name="cat2" value="<?php echo NM_encode_input($cat2) . "\">" . $cat2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_cat2" class="sc-ui-readonly-cat2" style=";<?php echo $sStyleReadLab_cat2; ?>"><?php echo NM_encode_input($this->cat2); ?></span><span id="id_read_off_cat2" style="white-space: nowrap;<?php echo $sStyleReadInp_cat2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cat2" type=text name="cat2" value="<?php echo NM_encode_input($cat2) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cat2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cat2_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['cat3']))
    {
        $this->nm_new_label['cat3'] = "CAT3";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cat3 = $this->cat3;
   $sStyleHidden_cat3 = '';
   if (isset($this->nmgp_cmp_hidden['cat3']) && $this->nmgp_cmp_hidden['cat3'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cat3']);
       $sStyleHidden_cat3 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cat3 = 'display: none;';
   $sStyleReadInp_cat3 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cat3']) && $this->nmgp_cmp_readonly['cat3'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cat3']);
       $sStyleReadLab_cat3 = '';
       $sStyleReadInp_cat3 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cat3']) && $this->nmgp_cmp_hidden['cat3'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cat3" value="<?php echo NM_encode_input($cat3) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cat3" style="<?php echo $sStyleHidden_cat3; ?>;"><span id="id_label_cat3"><?php echo $this->nm_new_label['cat3']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cat3" style="<?php echo $sStyleHidden_cat3; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cat3"]) &&  $this->nmgp_cmp_readonly["cat3"] == "on") { 

 ?>
<input type=hidden name="cat3" value="<?php echo NM_encode_input($cat3) . "\">" . $cat3 . ""; ?>
<?php } else { ?>
<span id="id_read_on_cat3" class="sc-ui-readonly-cat3" style=";<?php echo $sStyleReadLab_cat3; ?>"><?php echo NM_encode_input($this->cat3); ?></span><span id="id_read_off_cat3" style="white-space: nowrap;<?php echo $sStyleReadInp_cat3; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cat3" type=text name="cat3" value="<?php echo NM_encode_input($cat3) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cat3_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cat3_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['cat4']))
    {
        $this->nm_new_label['cat4'] = "CAT4";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cat4 = $this->cat4;
   $sStyleHidden_cat4 = '';
   if (isset($this->nmgp_cmp_hidden['cat4']) && $this->nmgp_cmp_hidden['cat4'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cat4']);
       $sStyleHidden_cat4 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cat4 = 'display: none;';
   $sStyleReadInp_cat4 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cat4']) && $this->nmgp_cmp_readonly['cat4'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cat4']);
       $sStyleReadLab_cat4 = '';
       $sStyleReadInp_cat4 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cat4']) && $this->nmgp_cmp_hidden['cat4'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cat4" value="<?php echo NM_encode_input($cat4) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cat4" style="<?php echo $sStyleHidden_cat4; ?>;"><span id="id_label_cat4"><?php echo $this->nm_new_label['cat4']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cat4" style="<?php echo $sStyleHidden_cat4; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cat4"]) &&  $this->nmgp_cmp_readonly["cat4"] == "on") { 

 ?>
<input type=hidden name="cat4" value="<?php echo NM_encode_input($cat4) . "\">" . $cat4 . ""; ?>
<?php } else { ?>
<span id="id_read_on_cat4" class="sc-ui-readonly-cat4" style=";<?php echo $sStyleReadLab_cat4; ?>"><?php echo NM_encode_input($this->cat4); ?></span><span id="id_read_off_cat4" style="white-space: nowrap;<?php echo $sStyleReadInp_cat4; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cat4" type=text name="cat4" value="<?php echo NM_encode_input($cat4) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cat4_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cat4_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['cat5']))
    {
        $this->nm_new_label['cat5'] = "CAT5";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cat5 = $this->cat5;
   $sStyleHidden_cat5 = '';
   if (isset($this->nmgp_cmp_hidden['cat5']) && $this->nmgp_cmp_hidden['cat5'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cat5']);
       $sStyleHidden_cat5 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cat5 = 'display: none;';
   $sStyleReadInp_cat5 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cat5']) && $this->nmgp_cmp_readonly['cat5'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cat5']);
       $sStyleReadLab_cat5 = '';
       $sStyleReadInp_cat5 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cat5']) && $this->nmgp_cmp_hidden['cat5'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cat5" value="<?php echo NM_encode_input($cat5) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cat5" style="<?php echo $sStyleHidden_cat5; ?>;"><span id="id_label_cat5"><?php echo $this->nm_new_label['cat5']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cat5" style="<?php echo $sStyleHidden_cat5; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cat5"]) &&  $this->nmgp_cmp_readonly["cat5"] == "on") { 

 ?>
<input type=hidden name="cat5" value="<?php echo NM_encode_input($cat5) . "\">" . $cat5 . ""; ?>
<?php } else { ?>
<span id="id_read_on_cat5" class="sc-ui-readonly-cat5" style=";<?php echo $sStyleReadLab_cat5; ?>"><?php echo NM_encode_input($this->cat5); ?></span><span id="id_read_off_cat5" style="white-space: nowrap;<?php echo $sStyleReadInp_cat5; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cat5" type=text name="cat5" value="<?php echo NM_encode_input($cat5) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cat5_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cat5_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


   <?php
    if (!isset($this->nm_new_label['cat6']))
    {
        $this->nm_new_label['cat6'] = "CAT6";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cat6 = $this->cat6;
   $sStyleHidden_cat6 = '';
   if (isset($this->nmgp_cmp_hidden['cat6']) && $this->nmgp_cmp_hidden['cat6'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cat6']);
       $sStyleHidden_cat6 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cat6 = 'display: none;';
   $sStyleReadInp_cat6 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cat6']) && $this->nmgp_cmp_readonly['cat6'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cat6']);
       $sStyleReadLab_cat6 = '';
       $sStyleReadInp_cat6 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cat6']) && $this->nmgp_cmp_hidden['cat6'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cat6" value="<?php echo NM_encode_input($cat6) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cat6" style="<?php echo $sStyleHidden_cat6; ?>;"><span id="id_label_cat6"><?php echo $this->nm_new_label['cat6']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cat6" style="<?php echo $sStyleHidden_cat6; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cat6"]) &&  $this->nmgp_cmp_readonly["cat6"] == "on") { 

 ?>
<input type=hidden name="cat6" value="<?php echo NM_encode_input($cat6) . "\">" . $cat6 . ""; ?>
<?php } else { ?>
<span id="id_read_on_cat6" class="sc-ui-readonly-cat6" style=";<?php echo $sStyleReadLab_cat6; ?>"><?php echo NM_encode_input($this->cat6); ?></span><span id="id_read_off_cat6" style="white-space: nowrap;<?php echo $sStyleReadInp_cat6; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cat6" type=text name="cat6" value="<?php echo NM_encode_input($cat6) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cat6_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cat6_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['mtd']))
           {
               $this->nmgp_cmp_readonly['mtd'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['cat7']))
    {
        $this->nm_new_label['cat7'] = "CAT7";
    }
?>
<?php
   $nm_cor_fun_cel  = ($nm_cor_fun_cel  == $this->Ini->cor_grid_impar ? $this->Ini->cor_grid_par : $this->Ini->cor_grid_impar);
   $nm_img_fun_cel  = ($nm_img_fun_cel  == $this->Ini->img_fun_imp    ? $this->Ini->img_fun_par  : $this->Ini->img_fun_imp);
   $cat7 = $this->cat7;
   $sStyleHidden_cat7 = '';
   if (isset($this->nmgp_cmp_hidden['cat7']) && $this->nmgp_cmp_hidden['cat7'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cat7']);
       $sStyleHidden_cat7 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cat7 = 'display: none;';
   $sStyleReadInp_cat7 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cat7']) && $this->nmgp_cmp_readonly['cat7'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cat7']);
       $sStyleReadLab_cat7 = '';
       $sStyleReadInp_cat7 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cat7']) && $this->nmgp_cmp_hidden['cat7'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cat7" value="<?php echo NM_encode_input($cat7) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cat7" style="<?php echo $sStyleHidden_cat7; ?>;"><span id="id_label_cat7"><?php echo $this->nm_new_label['cat7']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cat7" style="<?php echo $sStyleHidden_cat7; ?>vertical-align: top;;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["cat7"]) &&  $this->nmgp_cmp_readonly["cat7"] == "on") { 

 ?>
<input type=hidden name="cat7" value="<?php echo NM_encode_input($cat7) . "\">" . $cat7 . ""; ?>
<?php } else { ?>
<span id="id_read_on_cat7" class="sc-ui-readonly-cat7" style=";<?php echo $sStyleReadLab_cat7; ?>"><?php echo NM_encode_input($this->cat7); ?></span><span id="id_read_off_cat7" style="white-space: nowrap;<?php echo $sStyleReadInp_cat7; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cat7" type=text name="cat7" value="<?php echo NM_encode_input($cat7) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_cat7_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cat7_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


<?php if ($sc_hidden_yes > 0 && $sc_hidden_no > 0) { ?>


    <TD class="scFormDataOdd" colspan="<?php echo $sc_hidden_yes * 2; ?>" >&nbsp;</TD>

<?php } 
?> 
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['qtd']))
           {
               $this->nmgp_cmp_readonly['qtd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['ytd']))
           {
               $this->nmgp_cmp_readonly['ytd'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['jan']))
           {
               $this->nmgp_cmp_readonly['jan'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['feb']))
           {
               $this->nmgp_cmp_readonly['feb'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['mar']))
           {
               $this->nmgp_cmp_readonly['mar'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['apr']))
           {
               $this->nmgp_cmp_readonly['apr'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['may']))
           {
               $this->nmgp_cmp_readonly['may'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['jun']))
           {
               $this->nmgp_cmp_readonly['jun'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['jul']))
           {
               $this->nmgp_cmp_readonly['jul'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['aug']))
           {
               $this->nmgp_cmp_readonly['aug'] = 'on';
           }
?>


   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
   </div>
