<div id="greige_grstyle2_form_form4" 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_4"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_4" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['date']))
           {
               $this->nmgp_cmp_readonly['date'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['lbs_rack']))
           {
               $this->nmgp_cmp_readonly['lbs_rack'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['racks_lb']))
           {
               $this->nmgp_cmp_readonly['racks_lb'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_weight']))
           {
               $this->nmgp_cmp_readonly['bot_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['bot_percen']))
           {
               $this->nmgp_cmp_readonly['bot_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_weight']))
           {
               $this->nmgp_cmp_readonly['top_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['top_percen']))
           {
               $this->nmgp_cmp_readonly['top_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_weight']))
           {
               $this->nmgp_cmp_readonly['l3_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l3_percen']))
           {
               $this->nmgp_cmp_readonly['l3_percen'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4d']))
           {
               $this->nmgp_cmp_readonly['l4d'] = 'on';
           }
?>
<?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['l4_yarn']))
           {
               $this->nmgp_cmp_readonly['l4_yarn'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_patter']))
           {
               $this->nmgp_cmp_readonly['l4_patter'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_thread']))
           {
               $this->nmgp_cmp_readonly['l4_thread'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['l4d']))
    {
        $this->nm_new_label['l4d'] = "L4D";
    }
?>
<?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);
   $l4d = $this->l4d;
   $sStyleHidden_l4d = '';
   if (isset($this->nmgp_cmp_hidden['l4d']) && $this->nmgp_cmp_hidden['l4d'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['l4d']);
       $sStyleHidden_l4d = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_l4d = 'display: none;';
   $sStyleReadInp_l4d = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["l4d"]) &&  $this->nmgp_cmp_readonly["l4d"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['l4d']);
       $sStyleReadLab_l4d = '';
       $sStyleReadInp_l4d = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['l4d']) && $this->nmgp_cmp_hidden['l4d'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="l4d" value="<?php echo NM_encode_input($l4d) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_l4d" style="<?php echo $sStyleHidden_l4d; ?>;"><span id="id_label_l4d"><?php echo $this->nm_new_label['l4d']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4d']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4d'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_l4d" style="<?php echo $sStyleHidden_l4d; ?>;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["l4d"]) &&  $this->nmgp_cmp_readonly["l4d"] == "on")) { 

 ?>
<input type=hidden name="l4d" value="<?php echo NM_encode_input($l4d) . "\"><span id=\"id_ajax_label_l4d\">" . $l4d . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_l4d" class="sc-ui-readonly-l4d" style=";<?php echo $sStyleReadLab_l4d; ?>"><?php echo NM_encode_input($this->l4d); ?></span><span id="id_read_off_l4d" style="white-space: nowrap;<?php echo $sStyleReadInp_l4d; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_l4d" type=text name="l4d" value="<?php echo NM_encode_input($l4d) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['l4d']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['l4d']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, 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_l4d_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_l4d_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['l4_yarn']))
    {
        $this->nm_new_label['l4_yarn'] = "L4 YARN";
    }
?>
<?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);
   $l4_yarn = $this->l4_yarn;
   $sStyleHidden_l4_yarn = '';
   if (isset($this->nmgp_cmp_hidden['l4_yarn']) && $this->nmgp_cmp_hidden['l4_yarn'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['l4_yarn']);
       $sStyleHidden_l4_yarn = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_l4_yarn = 'display: none;';
   $sStyleReadInp_l4_yarn = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["l4_yarn"]) &&  $this->nmgp_cmp_readonly["l4_yarn"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['l4_yarn']);
       $sStyleReadLab_l4_yarn = '';
       $sStyleReadInp_l4_yarn = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['l4_yarn']) && $this->nmgp_cmp_hidden['l4_yarn'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="l4_yarn" value="<?php echo NM_encode_input($l4_yarn) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_l4_yarn" style="<?php echo $sStyleHidden_l4_yarn; ?>;"><span id="id_label_l4_yarn"><?php echo $this->nm_new_label['l4_yarn']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_yarn']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_yarn'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_l4_yarn" style="<?php echo $sStyleHidden_l4_yarn; ?>;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["l4_yarn"]) &&  $this->nmgp_cmp_readonly["l4_yarn"] == "on")) { 

 ?>
<input type=hidden name="l4_yarn" value="<?php echo NM_encode_input($l4_yarn) . "\"><span id=\"id_ajax_label_l4_yarn\">" . $l4_yarn . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_l4_yarn" class="sc-ui-readonly-l4_yarn" style=";<?php echo $sStyleReadLab_l4_yarn; ?>"><?php echo NM_encode_input($this->l4_yarn); ?></span><span id="id_read_off_l4_yarn" style="white-space: nowrap;<?php echo $sStyleReadInp_l4_yarn; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_l4_yarn" type=text name="l4_yarn" value="<?php echo NM_encode_input($l4_yarn) ?>"
 size=20 maxlength=20 alt="{datatype: 'text', maxLength: 20, allowedChars: '', lettersCase: '', enterTab: true, 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_l4_yarn_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_l4_yarn_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['l4_patter']))
    {
        $this->nm_new_label['l4_patter'] = "L4 PATTER";
    }
?>
<?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);
   $l4_patter = $this->l4_patter;
   $sStyleHidden_l4_patter = '';
   if (isset($this->nmgp_cmp_hidden['l4_patter']) && $this->nmgp_cmp_hidden['l4_patter'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['l4_patter']);
       $sStyleHidden_l4_patter = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_l4_patter = 'display: none;';
   $sStyleReadInp_l4_patter = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["l4_patter"]) &&  $this->nmgp_cmp_readonly["l4_patter"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['l4_patter']);
       $sStyleReadLab_l4_patter = '';
       $sStyleReadInp_l4_patter = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['l4_patter']) && $this->nmgp_cmp_hidden['l4_patter'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="l4_patter" value="<?php echo NM_encode_input($l4_patter) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_l4_patter" style="<?php echo $sStyleHidden_l4_patter; ?>;"><span id="id_label_l4_patter"><?php echo $this->nm_new_label['l4_patter']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_patter']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_patter'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_l4_patter" style="<?php echo $sStyleHidden_l4_patter; ?>;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["l4_patter"]) &&  $this->nmgp_cmp_readonly["l4_patter"] == "on")) { 

 ?>
<input type=hidden name="l4_patter" value="<?php echo NM_encode_input($l4_patter) . "\"><span id=\"id_ajax_label_l4_patter\">" . $l4_patter . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_l4_patter" class="sc-ui-readonly-l4_patter" style=";<?php echo $sStyleReadLab_l4_patter; ?>"><?php echo NM_encode_input($this->l4_patter); ?></span><span id="id_read_off_l4_patter" style="white-space: nowrap;<?php echo $sStyleReadInp_l4_patter; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_l4_patter" type=text name="l4_patter" value="<?php echo NM_encode_input($l4_patter) ?>"
 size=38 maxlength=38 alt="{datatype: 'text', maxLength: 38, allowedChars: '', lettersCase: '', enterTab: true, 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_l4_patter_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_l4_patter_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['l4_runnrs']))
           {
               $this->nmgp_cmp_readonly['l4_runnrs'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_weight']))
           {
               $this->nmgp_cmp_readonly['l4_weight'] = 'on';
           }
?>
<?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['l4_percen']))
           {
               $this->nmgp_cmp_readonly['l4_percen'] = 'on';
           }
?>


   <?php
    if (!isset($this->nm_new_label['l4_thread']))
    {
        $this->nm_new_label['l4_thread'] = "L4 THREAD";
    }
?>
<?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);
   $l4_thread = $this->l4_thread;
   $sStyleHidden_l4_thread = '';
   if (isset($this->nmgp_cmp_hidden['l4_thread']) && $this->nmgp_cmp_hidden['l4_thread'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['l4_thread']);
       $sStyleHidden_l4_thread = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_l4_thread = 'display: none;';
   $sStyleReadInp_l4_thread = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["l4_thread"]) &&  $this->nmgp_cmp_readonly["l4_thread"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['l4_thread']);
       $sStyleReadLab_l4_thread = '';
       $sStyleReadInp_l4_thread = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['l4_thread']) && $this->nmgp_cmp_hidden['l4_thread'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="l4_thread" value="<?php echo NM_encode_input($l4_thread) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_l4_thread" style="<?php echo $sStyleHidden_l4_thread; ?>;"><span id="id_label_l4_thread"><?php echo $this->nm_new_label['l4_thread']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_thread']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_thread'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_l4_thread" style="<?php echo $sStyleHidden_l4_thread; ?>;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["l4_thread"]) &&  $this->nmgp_cmp_readonly["l4_thread"] == "on")) { 

 ?>
<input type=hidden name="l4_thread" value="<?php echo NM_encode_input($l4_thread) . "\"><span id=\"id_ajax_label_l4_thread\">" . $l4_thread . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_l4_thread" class="sc-ui-readonly-l4_thread" style=";<?php echo $sStyleReadLab_l4_thread; ?>"><?php echo NM_encode_input($this->l4_thread); ?></span><span id="id_read_off_l4_thread" style="white-space: nowrap;<?php echo $sStyleReadInp_l4_thread; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_l4_thread" type=text name="l4_thread" value="<?php echo NM_encode_input($l4_thread) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, allowedChars: '', lettersCase: '', enterTab: true, 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_l4_thread_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_l4_thread_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['l4_runnrs']))
    {
        $this->nm_new_label['l4_runnrs'] = "L4 RUNNRS";
    }
?>
<?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);
   $l4_runnrs = $this->l4_runnrs;
   $sStyleHidden_l4_runnrs = '';
   if (isset($this->nmgp_cmp_hidden['l4_runnrs']) && $this->nmgp_cmp_hidden['l4_runnrs'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['l4_runnrs']);
       $sStyleHidden_l4_runnrs = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_l4_runnrs = 'display: none;';
   $sStyleReadInp_l4_runnrs = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["l4_runnrs"]) &&  $this->nmgp_cmp_readonly["l4_runnrs"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['l4_runnrs']);
       $sStyleReadLab_l4_runnrs = '';
       $sStyleReadInp_l4_runnrs = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['l4_runnrs']) && $this->nmgp_cmp_hidden['l4_runnrs'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="l4_runnrs" value="<?php echo NM_encode_input($l4_runnrs) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_l4_runnrs" style="<?php echo $sStyleHidden_l4_runnrs; ?>;"><span id="id_label_l4_runnrs"><?php echo $this->nm_new_label['l4_runnrs']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_runnrs']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_runnrs'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_l4_runnrs" style="<?php echo $sStyleHidden_l4_runnrs; ?>;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["l4_runnrs"]) &&  $this->nmgp_cmp_readonly["l4_runnrs"] == "on")) { 

 ?>
<input type=hidden name="l4_runnrs" value="<?php echo NM_encode_input($l4_runnrs) . "\"><span id=\"id_ajax_label_l4_runnrs\">" . $l4_runnrs . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_l4_runnrs" class="sc-ui-readonly-l4_runnrs" style=";<?php echo $sStyleReadLab_l4_runnrs; ?>"><?php echo NM_encode_input($this->l4_runnrs); ?></span><span id="id_read_off_l4_runnrs" style="white-space: nowrap;<?php echo $sStyleReadInp_l4_runnrs; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_l4_runnrs" type=text name="l4_runnrs" value="<?php echo NM_encode_input($l4_runnrs) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 3, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['l4_runnrs']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['l4_runnrs']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['l4_runnrs']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: true, 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_l4_runnrs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_l4_runnrs_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['l4_weight']))
    {
        $this->nm_new_label['l4_weight'] = "L4 WEIGHT";
    }
?>
<?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);
   $l4_weight = $this->l4_weight;
   $sStyleHidden_l4_weight = '';
   if (isset($this->nmgp_cmp_hidden['l4_weight']) && $this->nmgp_cmp_hidden['l4_weight'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['l4_weight']);
       $sStyleHidden_l4_weight = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_l4_weight = 'display: none;';
   $sStyleReadInp_l4_weight = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["l4_weight"]) &&  $this->nmgp_cmp_readonly["l4_weight"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['l4_weight']);
       $sStyleReadLab_l4_weight = '';
       $sStyleReadInp_l4_weight = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['l4_weight']) && $this->nmgp_cmp_hidden['l4_weight'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="l4_weight" value="<?php echo NM_encode_input($l4_weight) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_l4_weight" style="<?php echo $sStyleHidden_l4_weight; ?>;"><span id="id_label_l4_weight"><?php echo $this->nm_new_label['l4_weight']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_l4_weight" style="<?php echo $sStyleHidden_l4_weight; ?>;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["l4_weight"]) &&  $this->nmgp_cmp_readonly["l4_weight"] == "on")) { 

 ?>
<input type=hidden name="l4_weight" value="<?php echo NM_encode_input($l4_weight) . "\"><span id=\"id_ajax_label_l4_weight\">" . $l4_weight . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_l4_weight" class="sc-ui-readonly-l4_weight" style=";<?php echo $sStyleReadLab_l4_weight; ?>"><?php echo NM_encode_input($this->l4_weight); ?></span><span id="id_read_off_l4_weight" style="white-space: nowrap;<?php echo $sStyleReadInp_l4_weight; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_l4_weight" type=text name="l4_weight" value="<?php echo NM_encode_input($l4_weight) ?>"
 size=10 alt="{datatype: 'decimal', maxLength: 10, precision: 4, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['l4_weight']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['l4_weight']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['l4_weight']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, enterTab: true, 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_l4_weight_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_l4_weight_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['l4_percen']))
    {
        $this->nm_new_label['l4_percen'] = "L4 PERCEN";
    }
?>
<?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);
   $l4_percen = $this->l4_percen;
   $sStyleHidden_l4_percen = '';
   if (isset($this->nmgp_cmp_hidden['l4_percen']) && $this->nmgp_cmp_hidden['l4_percen'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['l4_percen']);
       $sStyleHidden_l4_percen = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_l4_percen = 'display: none;';
   $sStyleReadInp_l4_percen = '';
   if (/*($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir") || */(isset($this->nmgp_cmp_readonly["l4_percen"]) &&  $this->nmgp_cmp_readonly["l4_percen"] == "on"))
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['l4_percen']);
       $sStyleReadLab_l4_percen = '';
       $sStyleReadInp_l4_percen = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['l4_percen']) && $this->nmgp_cmp_hidden['l4_percen'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="l4_percen" value="<?php echo NM_encode_input($l4_percen) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_l4_percen" style="<?php echo $sStyleHidden_l4_percen; ?>;"><span id="id_label_l4_percen"><?php echo $this->nm_new_label['l4_percen']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_l4_percen" style="<?php echo $sStyleHidden_l4_percen; ?>;"><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" && $this->nmgp_opc_ant != "incluir") || (isset($this->nmgp_cmp_readonly["l4_percen"]) &&  $this->nmgp_cmp_readonly["l4_percen"] == "on")) { 

 ?>
<input type=hidden name="l4_percen" value="<?php echo NM_encode_input($l4_percen) . "\"><span id=\"id_ajax_label_l4_percen\">" . $l4_percen . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_l4_percen" class="sc-ui-readonly-l4_percen" style=";<?php echo $sStyleReadLab_l4_percen; ?>"><?php echo NM_encode_input($this->l4_percen); ?></span><span id="id_read_off_l4_percen" style="white-space: nowrap;<?php echo $sStyleReadInp_l4_percen; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_l4_percen" type=text name="l4_percen" value="<?php echo NM_encode_input($l4_percen) ?>"
 size=6 alt="{datatype: 'decimal', maxLength: 6, precision: 2, decimalSep: '<?php echo str_replace("'", "\'", $this->field_config['l4_percen']['symbol_dec']); ?>', thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['l4_percen']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['l4_percen']['symbol_fmt']; ?>, manualDecimals: false, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, 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_l4_percen_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_l4_percen_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


   <?php
    if (!isset($this->nm_new_label['l4_ends']))
    {
        $this->nm_new_label['l4_ends'] = "L4 ENDS";
    }
?>
<?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);
   $l4_ends = $this->l4_ends;
   $sStyleHidden_l4_ends = '';
   if (isset($this->nmgp_cmp_hidden['l4_ends']) && $this->nmgp_cmp_hidden['l4_ends'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['l4_ends']);
       $sStyleHidden_l4_ends = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_l4_ends = 'display: none;';
   $sStyleReadInp_l4_ends = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['l4_ends']) && $this->nmgp_cmp_readonly['l4_ends'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['l4_ends']);
       $sStyleReadLab_l4_ends = '';
       $sStyleReadInp_l4_ends = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['l4_ends']) && $this->nmgp_cmp_hidden['l4_ends'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="l4_ends" value="<?php echo NM_encode_input($l4_ends) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_l4_ends" style="<?php echo $sStyleHidden_l4_ends; ?>;"><span id="id_label_l4_ends"><?php echo $this->nm_new_label['l4_ends']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_ends']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['php_cmp_required']['l4_ends'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_l4_ends" style="<?php echo $sStyleHidden_l4_ends; ?>;"><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["l4_ends"]) &&  $this->nmgp_cmp_readonly["l4_ends"] == "on") { 

 ?>
<input type=hidden name="l4_ends" value="<?php echo NM_encode_input($l4_ends) . "\">" . $l4_ends . ""; ?>
<?php } else { ?>
<span id="id_read_on_l4_ends" class="sc-ui-readonly-l4_ends" style=";<?php echo $sStyleReadLab_l4_ends; ?>"><?php echo NM_encode_input($this->l4_ends); ?></span><span id="id_read_off_l4_ends" style="white-space: nowrap;<?php echo $sStyleReadInp_l4_ends; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_l4_ends" type=text name="l4_ends" value="<?php echo NM_encode_input($l4_ends) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['l4_ends']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['l4_ends']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', enterTab: true, 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_l4_ends_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_l4_ends_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


    <TD class="scFormDataOdd" colspan="2" >&nbsp;</TD>

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


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

<?php } ?>
   </td></tr></table>
   </tr>
</TABLE></div><!-- bloco_f -->
   </div>
</td></tr>
</td></tr>
<tr><td class="scFormPageText">
<span class="scFormRequiredOddColor">* <?php echo $this->Ini->Nm_lang['lang_othr_reqr']; ?></span>
</td></tr> 
<tr><td>
<?php
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "R")
{
?>
    <table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormToolbar" style="padding: 0px; spacing: 0px">
    <table style="border-collapse: collapse; border-width: 0px; width: 100%">
    <tr> 
     <td nowrap align="left" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($opcao_botoes != "novo" && $this->nmgp_botoes['goto'] == "on")
      {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "birpara", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", "brec_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
?> 
   <input type="text" class="scFormToolbarInput" name="nmgp_rec_b" value="" style="width:25px;vertical-align: middle;"/> 
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
if ($opcao_botoes != "novo" && $this->nmgp_botoes['navpage'] == "on")
{
?> 
     <span nowrap id="sc_b_navpage_b" class="scFormToolbarPadding"></span> 
<?php 
}
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['first'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "binicio", "nm_move ('inicio'); return false;", "nm_move ('inicio'); return false;", "sc_b_ini_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['back'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bretorna", "nm_move ('retorna'); return false;", "nm_move ('retorna'); return false;", "sc_b_ret_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['forward'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bavanca", "nm_move ('avanca'); return false;", "nm_move ('avanca'); return false;", "sc_b_avc_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['last'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bfinal", "nm_move ('final'); return false;", "nm_move ('final'); return false;", "sc_b_fim_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
if ($opcao_botoes != "novo" && $this->nmgp_botoes['summary'] == "on")
{
?> 
     <span nowrap id="sc_b_summary_b" class="scFormToolbarPadding"></span> 
<?php 
}
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "R")
{
?>
   </td></tr> 
   </table> 
   </td></tr></table> 
<?php
}
?>
<?php
if (!$NM_btn && isset($NM_ult_sep))
{
    echo "    <script language=\"javascript\">";
    echo "      document.getElementById('" .  $NM_ult_sep . "').style.display='none';";
    echo "    </script>";
}
unset($NM_ult_sep);
?>
<?php if ('novo' != $this->nmgp_opcao || $this->Embutida_form) { ?><script>nav_atualiza(Nav_permite_ret, Nav_permite_ava, 'b');</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "F") { ?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['total'] + 1)?>);</script><?php } ?>
<?php if (('novo' != $this->nmgp_opcao || $this->Embutida_form) && !$this->nmgp_form_empty && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['run_iframe'] != "F") { ?><script>navpage_atualiza('<?php echo $this->SC_nav_page ?>');</script><?php } ?>
</td></tr> 
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['mostra_cab'] != "N"))
  {
?>
</td></tr> 
<tr><td><table width="100%"> 
<style>
#rod_col1 { margin:0px; padding: 3px 0 0 5px; float:left; overflow:hidden;}
#rod_col2 { margin:0px; padding: 3px 5px 0 0; float:right; overflow:hidden; text-align:right;}

</style>

<table style="width: 100%; height:20px;" cellpadding="0px" cellspacing="0px" class="scFormFooter">
    <tr>
        <td>
            <span class="scFormFooterFont" id="rod_col1"><?php echo date($this->dateDefaultFormat()); ?></span>
        </td>
        <td>
            <span class="scFormFooterFont" id="rod_col2"><?php echo "application = grieige_grstyle2_form" ?></span>
        </td>
    </tr>
</table><?php
  }
?>
</table> 

<div id="id_debug_window" style="display: none; position: absolute; left: 50px; top: 50px"><table class="scFormMessageTable">
<tr><td class="scFormMessageTitle"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideDebug()", "scAjaxHideDebug()", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
&nbsp;&nbsp;Output</td></tr>
<tr><td class="scFormMessageMessage" style="padding: 0px; vertical-align: top"><div style="padding: 2px; height: 200px; width: 350px; overflow: auto" id="id_debug_text"></div></td></tr>
</table></div>

</form> 
<script> 
<?php
 $NM_pag_atual = "greige_grstyle2_form_form0";
 if (isset($this->nmgp_ancora) && $this->nmgp_ancora != "")
 {
     $NM_pag_atual = "greige_grstyle2_form_form" . $this->nmgp_ancora;
 }
?>
  document.getElementById('<?php echo $NM_pag_atual; ?>').style.width='';
  document.getElementById('<?php echo $NM_pag_atual; ?>').style.height='';
  document.getElementById('<?php echo $NM_pag_atual; ?>').style.display='';
  document.getElementById('<?php echo $NM_pag_atual; ?>').style.overflow='visible';
</script> 
<script> 
<?php
  $nm_sc_blocos_da_pag = array(0,1,2,3,4);

  foreach ($this->Ini->nm_hidden_blocos as $bloco => $hidden)
  {
      if ($hidden == "off" && in_array($bloco, $nm_sc_blocos_da_pag))
      {
          echo "document.getElementById('hidden_bloco_" . $bloco . "').style.display = 'none';";
          if (isset($nm_sc_blocos_aba[$bloco]))
          {
               echo "document.getElementById('id_tabs_" . $nm_sc_blocos_aba[$bloco] . "_" . $bloco . "').style.display = 'none';";
          }
      }
  }
?>
</script> 
<script>
function updateHeaderFooter(sFldName, sFldValue)
{
  if (sFldValue[0] && sFldValue[0]["value"])
  {
    sFldValue = sFldValue[0]["value"];
  }
  if ("new_style" == sFldName)
  {
    document.getElementById("head_mark_new_style_0").innerHTML = sFldValue;
  }
}
</script>
<?php
if (isset($_POST['master_nav']) && 'on' == $_POST['master_nav'])
{
    $sTamanhoIframe = isset($_POST['sc_ifr_height']) && '' != $_POST['sc_ifr_height'] ? '"' . $_POST['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailStatus("greige_grstyle2_form");
 parent.scAjaxDetailHeight("greige_grstyle2_form", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
}
elseif (isset($_GET['script_case_detail']) && 'Y' == $_GET['script_case_detail'])
{
    $sTamanhoIframe = isset($_GET['sc_ifr_height']) && '' != $_GET['sc_ifr_height'] ? '"' . $_GET['sc_ifr_height'] . '"' : '$(document).innerHeight()';
?>
<script>
 parent.scAjaxDetailHeight("greige_grstyle2_form", <?php echo $sTamanhoIframe; ?>);
</script>
<?php
}
?>
<?php
if (isset($this->NM_ajax_info['displayMsg']) && $this->NM_ajax_info['displayMsg'])
{
?>
<script type="text/javascript">
_scAjaxShowMessage(scMsgDefTitle, "<?php echo $this->NM_ajax_info['displayMsgTxt']; ?>", false, sc_ajaxMsgTime, false, "Ok", 0, 0, 0, 0, "", "", "", false, true);
</script>
<?php
}
?>
<?php
if ('' != $this->scFormFocusErrorName)
{
?>
<script>
scAjaxFocusError();
</script>
<?php
}
?>
<script>
bLigEditLookupCall = <?php if ($this->lig_edit_lookup_call) { ?>true<?php } else { ?>false<?php } ?>;
function scLigEditLookupCall()
{
<?php
if ($this->lig_edit_lookup && isset($_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['greige_grstyle2_form']['sc_modal'])
{
?>
  parent.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>);
<?php
}
elseif ($this->lig_edit_lookup)
{
?>
  opener.<?php echo $this->lig_edit_lookup_cb; ?>(<?php echo $this->lig_edit_lookup_row; ?>);
<?php
}
?>
}
if (bLigEditLookupCall)
{
  scLigEditLookupCall();
}
<?php
if (isset($this->redir_modal) && !empty($this->redir_modal))
{
    echo $this->redir_modal;
}
?>
</script>
</body> 
</html> 
