<?php

if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output'])
{
    $sOBContents = ob_get_contents();
    ob_end_clean();
}

?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
            "http://www.w3.org/TR/1999/REC-html401-19991224/loose.dtd">

<html<?php echo $_SESSION['scriptcase']['reg_conf']['html_dir'] ?>>
<HEAD>
 <TITLE><?php if ('novo' == $this->nmgp_opcao) { echo strip_tags("Standard Dyeing and Finishing Instructions"); } else { echo strip_tags("Standard Dyeing and Finishing Instructions"); } ?></TITLE>
 <META http-equiv="Content-Type" content="text/html; charset=<?php echo $_SESSION['scriptcase']['charset_html'] ?>" />
 <META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT"/>
 <META http-equiv="Last-Modified" content="<?php echo gmdate("D, d M Y H:i:s"); ?> GMT"/>
 <META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate"/>
 <META http-equiv="Cache-Control" content="post-check=0, pre-check=0"/>
 <META http-equiv="Pragma" content="no-cache"/>
 <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/thickbox.css" type="text/css" media="screen" />
 <SCRIPT type="text/javascript">
  var sc_pathToTB = '<?php echo $this->Ini->path_prod ?>/third/jquery_plugin/thickbox/';
  var sc_blockCol = '<?php echo $this->Ini->Block_img_col; ?>';
  var sc_blockExp = '<?php echo $this->Ini->Block_img_exp; ?>';
  var sc_ajaxBg = '<?php echo $this->Ini->Color_bg_ajax; ?>';
  var sc_ajaxBordC = '<?php echo $this->Ini->Border_c_ajax; ?>';
  var sc_ajaxBordS = '<?php echo $this->Ini->Border_s_ajax; ?>';
  var sc_ajaxBordW = '<?php echo $this->Ini->Border_w_ajax; ?>';
  var sc_ajaxMsgTime = 2;
  var sc_img_status_ok = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_ok; ?>';
  var sc_img_status_err = '<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Img_status_err; ?>';
  var sc_css_status = '<?php echo $this->Ini->Css_status; ?>';
 </SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery/js/jquery-ui.js"></SCRIPT>
 <link rel="stylesheet" href="<?php echo $this->Ini->path_prod ?>/third/jquery/css/smoothness/jquery-ui.css" type="text/css" media="screen" />
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.iframe-transport.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fileupload.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/malsup-blockui/jquery.blockUI.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->path_prod; ?>/third/jquery_plugin/thickbox/thickbox-compressed.js"></SCRIPT>
 <style type="text/css">
  #quicksearchph_t {
   position: relative;
  }
  #quicksearchph_t img {
   position: absolute;
   top: 0;
   right: 0;
  }
 </style>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.scInput.js"></SCRIPT>
 <SCRIPT type="text/javascript" src="<?php echo $this->Ini->url_lib_js; ?>jquery.fieldSelection.js"></SCRIPT>
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_form.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_tab.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/buttons/<?php echo $this->Ini->Str_btn_form . '/' . $this->Ini->Str_btn_form ?>.css" />
 <link rel="stylesheet" type="text/css" href="<?php echo $this->Ini->path_link ?>_lib/css/<?php echo $this->Ini->str_schema_all ?>_calendar.css" />
<?php
include_once("../_lib/css/" . $this->Ini->str_schema_all . "_tab.php");
?>

<script>
var scFocusFirstErrorField = false;
var scFocusFirstErrorName  = "<?php echo $this->scFormFocusErrorName; ?>";
</script>

<?php
include_once("dye_standdf_form_sajax_js.php");
?>
<script type="text/javascript">
if (document.getElementById("id_error_display_fixed"))
{
 scCenterFixedElement("id_error_display_fixed");
}
var posDispLeft = 0;
var posDispTop = 0;
var Nm_Proc_Atualiz = false;
function findPos(obj)
{
 var posCurLeft = posCurTop = 0;
 if (obj.offsetParent)
 {
  posCurLeft = obj.offsetLeft
  posCurTop = obj.offsetTop
  while (obj = obj.offsetParent)
  {
   posCurLeft += obj.offsetLeft
   posCurTop += obj.offsetTop
  }
 }
 posDispLeft = posCurLeft - 10;
 posDispTop = posCurTop + 30;
}
var Nav_permite_ret = "<?php if ($this->Nav_permite_ret) { echo 'S'; } else { echo 'N'; } ?>";
var Nav_permite_ava = "<?php if ($this->Nav_permite_ava) { echo 'S'; } else { echo 'N'; } ?>";
var Nav_binicio     = "<?php echo $this->arr_buttons['binicio']['type']; ?>";
var Nav_binicio_off = "<?php echo $this->arr_buttons['binicio_off']['type']; ?>";
var Nav_bavanca     = "<?php echo $this->arr_buttons['bavanca']['type']; ?>";
var Nav_bavanca_off = "<?php echo $this->arr_buttons['bavanca_off']['type']; ?>";
var Nav_bretorna    = "<?php echo $this->arr_buttons['bretorna']['type']; ?>";
var Nav_bretorna_off = "<?php echo $this->arr_buttons['bretorna_off']['type']; ?>";
var Nav_bfinal      = "<?php echo $this->arr_buttons['bfinal']['type']; ?>";
var Nav_bfinal_off  = "<?php echo $this->arr_buttons['bfinal_off']['type']; ?>";
function nav_atualiza(str_ret, str_ava, str_pos)
{
 if ('S' == str_ret)
 {
  if (Nav_binicio == 'image')
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        document.getElementById("sc_b_ini_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ini_" + str_pos)){
        document.getElementById("sc_b_ini_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['binicio']['style'] ?>";
        document.getElementById("sc_b_ini_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['binicio']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['binicio']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bretorna == 'image')
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        document.getElementById("sc_b_ret_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        document.getElementById("sc_b_ret_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bretorna']['style'] ?>";
        document.getElementById("sc_b_ret_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bretorna']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bretorna']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        }
      }
  }
 }
 else
 {
  if (Nav_binicio_off == 'image')
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        document.getElementById("sc_b_ini_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ini_" + str_pos)) {
        document.getElementById("sc_b_ini_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['binicio_off']['style'] ?>";
        document.getElementById("sc_b_ini_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['binicio_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['binicio_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ini_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_ini_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bretorna_off == 'image')
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        document.getElementById("sc_b_ret_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_ret_" + str_pos)) {
        document.getElementById("sc_b_ret_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bretorna_off']['style'] ?>";
        document.getElementById("sc_b_ret_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bretorna_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bretorna_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_ret_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_ret_" + str_pos).src = sImg;
        }
      }
  }
 }
 if ('S' == str_ava)
 {
  if (Nav_bavanca == 'image')
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        document.getElementById("sc_b_avc_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        document.getElementById("sc_b_avc_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bavanca']['style'] ?>";
        document.getElementById("sc_b_avc_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bavanca']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bavanca']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bfinal == 'image')
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
        nav_liga_img();
        document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        document.getElementById("sc_b_fim_" + str_pos).disabled = false;
      }
  }
  else
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        document.getElementById("sc_b_fim_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bfinal']['style'] ?>";
        document.getElementById("sc_b_fim_" + str_pos).disabled = false;
        if('only_img' == '<?php echo $this->arr_buttons['bfinal']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bfinal']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
            nav_liga_img();
            document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        }
      }
  }
 }
 else
 {
  if (Nav_bavanca_off == 'image')
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        document.getElementById("sc_b_avc_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_avc_" + str_pos)) {
        document.getElementById("sc_b_avc_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bavanca_off']['style'] ?>";
        document.getElementById("sc_b_avc_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bavanca_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bavanca_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_avc_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_avc_" + str_pos).src = sImg;
        }
      }
  }
  if (Nav_bfinal_off == 'image')
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
        nav_desliga_img();
        document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        document.getElementById("sc_b_fim_" + str_pos).disabled = true;
      }
  }
  else
  {
      if (document.getElementById("sc_b_fim_" + str_pos)) {
        document.getElementById("sc_b_fim_" + str_pos).className = "scButton_<?php echo $this->arr_buttons['bfinal_off']['style'] ?>";
        document.getElementById("sc_b_fim_" + str_pos).disabled = true;
        if('only_img' == '<?php echo $this->arr_buttons['bfinal_off']['display']; ?>' || 'text_img' == '<?php echo $this->arr_buttons['bfinal_off']['display']; ?>')
        {
            sImg = document.getElementById("id_img_sc_b_fim_" + str_pos).src;
            nav_desliga_img();
            document.getElementById("id_img_sc_b_fim_" + str_pos).src = sImg;
        }
      }
  }
 }
}
function nav_liga_img()
{
 sExt = sImg.substr(sImg.length - 4);
 sImg = sImg.substr(0, sImg.length - 4);
 if ('_off' == sImg.substr(sImg.length - 4))
 {
  sImg = sImg.substr(0, sImg.length - 4);
 }
 sImg += sExt;
}
function nav_desliga_img()
{
 sExt = sImg.substr(sImg.length - 4);
 sImg = sImg.substr(0, sImg.length - 4);
 if ('_off' != sImg.substr(sImg.length - 4))
 {
  sImg += '_off';
 }
 sImg += sExt;
}
function summary_atualiza(reg_ini, reg_qtd, reg_tot)
{
    nm_sumario = "[<?php echo substr($this->Ini->Nm_lang['lang_othr_smry_info'], strpos($this->Ini->Nm_lang['lang_othr_smry_info'], "?final?")) ?>]";
    nm_sumario = nm_sumario.replace("?final?", reg_qtd);
    nm_sumario = nm_sumario.replace("?total?", reg_tot);
    if (reg_qtd < 1) {
        nm_sumario = "";
    }
    if (document.getElementById("sc_b_summary_b")) document.getElementById("sc_b_summary_b").innerHTML = nm_sumario;
}
function navpage_atualiza(str_navpage)
{
    if (document.getElementById("sc_b_navpage_b")) document.getElementById("sc_b_navpage_b").innerHTML = str_navpage;
}
<?php

include_once('dye_standdf_form_jquery.php');

?>

 var scQSInit = true;
 var scQSPos = {};
 $(function() {

  scJQElementsAdd('');

  scJQGeneralAdd();

  $('#SC_fast_search_t').keyup(function(e) {
   scQuickSearchKeyUp('t', e);
  });

  $("#hidden_bloco_0,#hidden_bloco_1,#hidden_bloco_2,#hidden_bloco_3,#hidden_bloco_4,#hidden_bloco_5,#hidden_bloco_6").each(function() {
   $(this.rows[0]).bind("click", {block: this}, toggleBlock)
                  .mouseover(function() { $(this).css("cursor", "pointer"); })
                  .mouseout(function() { $(this).css("cursor", ""); });
  });

  $(document).bind('drop dragover', function (e) {
      e.preventDefault();
  });

  var i, iTestWidth, iMaxLabelWidth = 0, $labelList = $(".scUiLabelWidthFix");
  for (i = 0; i < $labelList.length; i++) {
    iTestWidth = $($labelList[i]).width();
    sTestWidth = iTestWidth + "";
    if ("" == iTestWidth) {
      iTestWidth = 0;
    }
    else if ("px" == sTestWidth.substr(sTestWidth.length - 2)) {
      iTestWidth = parseInt(sTestWidth.substr(0, sTestWidth.length - 2));
    }
    iMaxLabelWidth = Math.max(iMaxLabelWidth, iTestWidth);
  }
  if (0 < iMaxLabelWidth) {
    $(".scUiLabelWidthFix").css("width", iMaxLabelWidth + "px");
  }
<?php
if (!$this->NM_ajax_flag && isset($this->NM_non_ajax_info['ajaxJavascript']) && !empty($this->NM_non_ajax_info['ajaxJavascript']))
{
    foreach ($this->NM_non_ajax_info['ajaxJavascript'] as $aFnData)
    {
?>
  <?php echo $aFnData[0]; ?>(<?php echo implode(', ', $aFnData[1]); ?>);

<?php
    }
}
?>
 });

   $(window).load(function() {
     scQuickSearchInit(false, '');
     $('#SC_fast_search_t').listen();
     scQuickSearchKeyUp('t', null);
     scQSInit = false;
   });
   function scQuickSearchSubmit_t() {
     nm_move('fast_search', 't');
   }

   function scQuickSearchInit(bPosOnly, sPos) {
     if (!bPosOnly) {
       if ('' == sPos || 't' == sPos) scQuickSearchSize('SC_fast_search_t', 'SC_fast_search_close_t', 'SC_fast_search_submit_t', 'quicksearchph_t');
     }
   }
   function scQuickSearchSize(sIdInput, sIdClose, sIdSubmit, sPlaceHolder) {
     var oInput = $('#' + sIdInput),
         oClose = $('#' + sIdClose),
         oSubmit = $('#' + sIdSubmit),
         oPlace = $('#' + sPlaceHolder),
         iInputP = parseInt(oInput.css('padding-right')) || 0,
         iInputB = parseInt(oInput.css('border-right-width')) || 0,
         iInputW = oInput.outerWidth(),
         iPlaceW = oPlace.outerWidth(),
         oInputO = oInput.offset(),
         oPlaceO = oPlace.offset(),
         iNewRight;
     iNewRight = (iPlaceW - iInputW) - (oInputO.left - oPlaceO.left) + iInputB + 1;
     oInput.css({
       'height': Math.max(oInput.height(), 16) + 'px',
       'padding-right': iInputP + 16 + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px'
     });
     oClose.css({
       'right': iNewRight + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px',
       'cursor': 'pointer'
     });
     oSubmit.css({
       'right': iNewRight + <?php echo $this->Ini->Str_qs_image_padding ?> + 'px',
       'cursor': 'pointer'
     });
   }
   function scQuickSearchKeyUp(sPos, e) {
     if ('' != scQSInitVal && $('#SC_fast_search_' + sPos).val() == scQSInitVal && scQSInit) {
       $('#SC_fast_search_close_' + sPos).show();
       $('#SC_fast_search_submit_' + sPos).hide();
     }
     else {
       $('#SC_fast_search_close_' + sPos).hide();
       $('#SC_fast_search_submit_' + sPos).show();
     }
     if (null != e) {
       var keyPressed = e.charCode || e.keyCode || e.which;
       if (13 == keyPressed) {
         if ('t' == sPos) scQuickSearchSubmit_t();
       }
     }
   }
 if($(".sc-ui-block-control").length) {
  preloadBlock = new Image();
  preloadBlock.src = "<?php echo $this->Ini->path_icones; ?>/" + sc_blockExp;
 }

 var show_block = {
    "hidden_bloco_0": true,
    "hidden_bloco_1": true,
    "hidden_bloco_2": true,
    "hidden_bloco_3": true,
    "hidden_bloco_4": true,
    "hidden_bloco_5": true,
    "hidden_bloco_6": false
 };

 function toggleBlock(e) {
  var block = e.data.block,
      block_id = $(block).attr("id");
      block_img = $("#" + block_id + " .sc-ui-block-control");

  if (1 >= block.rows.length) {
   return;
  }

  show_block[block_id] = !show_block[block_id];

  if (show_block[block_id]) {
    $(block).css("height", "100%");
    if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockCol));
  }
  else {
    $(block).css("height", "");
    if (block_img.length) block_img.attr("src", changeImgName(block_img.attr("src"), sc_blockExp));
  }

  for (var i = 1; i < block.rows.length; i++) {
   if (show_block[block_id])
    $(block.rows[i]).show();
   else
    $(block.rows[i]).hide();
  }

  if (show_block[block_id]) {
  }
 }

 function changeImgName(imgOld, imgNew) {
   var aOld = imgOld.split("/");
   aOld.pop();
   aOld.push(imgNew);
   return aOld.join("/");
 }

</script>
</HEAD>
<?php
$str_iframe_body = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe']) ? 'margin: 2px;' : '';
 if (isset($_SESSION['nm_aba_bg_color']))
 {
     $this->Ini->cor_bg_grid = $_SESSION['nm_aba_bg_color'];
     $this->Ini->img_fun_pag = $_SESSION['nm_aba_bg_img'];
 }
if ($GLOBALS["erro_incl"] == 1)
{
    $this->nmgp_opcao = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['recarga'];
}
?>
<body class="scFormPage" style="<?php echo $str_iframe_body; ?>">
<?php

if (!isset($this->NM_ajax_info['param']['buffer_output']) || !$this->NM_ajax_info['param']['buffer_output'])
{
    echo $sOBContents;
}

?>
<div id="idJSSpecChar" style="display: none;"></div>
<script type="text/javascript">
function NM_tp_critica(TP)
{
    if (TP == 0 || TP == 1 || TP == 2)
    {
        nmdg_tipo_crit = TP;
    }
}
</script> 
<?php
 include_once("dye_standdf_form_js0.php");
?>
<script type="text/javascript" src="<?php echo str_replace("{str_idioma}", $this->Ini->str_lang, "../_lib/js/tab_erro_{str_idioma}.js"); ?>"> 
</script> 
<script type="text/javascript"> 
 function setLocale(oSel)
 {
  var sLocale = "";
  if (-1 < oSel.selectedIndex)
  {
   sLocale = oSel.options[oSel.selectedIndex].value;
  }
  document.F1.nmgp_idioma_novo.value = sLocale;
 }
 function setSchema(oSel)
 {
  var sLocale = "";
  if (-1 < oSel.selectedIndex)
  {
   sLocale = oSel.options[oSel.selectedIndex].value;
  }
  document.F1.nmgp_schema_f.value = sLocale;
 }
 </script>
<form name="F1" method=post 
               action="./" 
               target="_self"> 
<input type=hidden name="nm_form_submit" value="1">
<input type=hidden name="nmgp_idioma_novo" value="">
<input type=hidden name="nmgp_schema_f" value="">
<input type=hidden name="nmgp_url_saida" value="">
<input type=hidden name="nmgp_opcao" value="">
<input type=hidden name="nmgp_ancora" value="">
<input type=hidden name="nmgp_num_form" value="<?php  echo NM_encode_input($nmgp_num_form); ?>">
<input type=hidden name="nmgp_parms" value="">
<input type=hidden name="script_case_init" value="<?php  echo NM_encode_input($this->Ini->sc_page); ?>"> 
<input type=hidden name="script_case_session" value="<?php  echo NM_encode_input(session_id()); ?>"> 
<?php
$int_iframe_padding = ('F' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['dye_standdf_form'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['dye_standdf_form'] = '' != $this->Ini->Err_ico_title ? $this->Ini->path_icones . '/' . $this->Ini->Err_ico_title : '';
?>
<div style="display: none; position: absolute" id="id_error_display_table_frame">
<table class="scFormErrorTable">
<tr><?php if ($this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><td style="padding: 0px" rowspan="2"><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top"></td><?php } ?><td class="scFormErrorTitle"><table style="border-collapse: collapse; border-width: 0px; width: 100%"><tr><td class="scFormErrorTitleFont" style="padding: 0px; vertical-align: top; width: 100%"><?php if (!$this->Ini->Error_icon_span && '' != $this->Ini->Err_ico_title) { ?><img src="<?php echo $this->Ini->path_icones; ?>/<?php echo $this->Ini->Err_ico_title; ?>" style="border-width: 0px" align="top">&nbsp;<?php } ?><?php echo $this->Ini->Nm_lang['lang_errm_errt'] ?></td><td style="padding: 0px; vertical-align: top"><?php echo nmButtonOutput($this->arr_buttons, "berrm_clse", "scAjaxHideErrorDisplay('table')", "scAjaxHideErrorDisplay('table')", "", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
</td></tr></table></td></tr>
<tr><td class="scFormErrorMessage"><span id="id_error_display_table_text"></span></td></tr>
</table>
</div>
<div style="display: none; position: absolute" id="id_message_display_frame">
 <table class="scFormMessageTable" id="id_message_display_content" style="width: 100%">
  <tr id="id_message_display_title_line">
   <td class="scFormMessageTitle" style="height: 20px"><?php
if ('' != $this->Ini->Msg_ico_title) {
?>
<img src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_title; ?>" style="border-width: 0px; vertical-align: middle">&nbsp;<?php
}
?>
<?php echo nmButtonOutput($this->arr_buttons, "bmessageclose", "_scAjaxMessageBtnClose()", "_scAjaxMessageBtnClose()", "id_message_display_close_icon", "", "", "float: right", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<span id="id_message_display_title" style="vertical-align: middle"></span></td>
  </tr>
  <tr>
   <td class="scFormMessageMessage"><?php
if ('' != $this->Ini->Msg_ico_body) {
?>
<img id="id_message_display_body_icon" src="<?php echo $this->Ini->path_icones . '/' . $this->Ini->Msg_ico_body; ?>" style="border-width: 0px; vertical-align: middle">&nbsp;<?php
}
?>
<span id="id_message_display_text"></span><div id="id_message_display_buttond" style="display: none; text-align: center"><br /><input id="id_message_display_buttone" type="button" class="scButton_default" value="Ok" onClick="_scAjaxMessageBtnClick()" ></div></td>
  </tr>
 </table>
</div>
<script type="text/javascript">
var scMsgDefTitle = "<?php echo $this->Ini->Nm_lang['lang_usr_lang_othr_msgs_titl']; ?>";
var scMsgDefButton = "Ok";
var scMsgDefClick = "close";
var scMsgDefScInit = "<?php echo $this->Ini->page; ?>";
</script>
<table id="main_table_form"  align="center" cellpadding="<?php echo $int_iframe_padding; ?>" cellspacing=0 class="scFormBorder" >
<?php
  if (!$this->Embutida_call && (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['mostra_cab'] != "N"))
  {
?>
<tr><td>
<style>
#lin1_col1 { padding-left:9px; padding-top:7px;  height:27px; overflow:hidden; text-align:left;}			 
#lin1_col2 { padding-right:9px; padding-top:7px; height:27px; text-align:right; overflow:hidden;   font-size:12px; font-weight:normal;}
</style>

<div style="width: 100%">
 <div class="scFormHeader" style="height:11px; display: block; border-width:0px; "></div>
 <div style="height:37px; border-width:0px 0px 1px 0px;  border-style: dashed; border-color:#ddd; display: block">
 	<table style="width:100%; border-collapse:collapse; padding:0;">
    	<tr>
        	<td id="lin1_col1" class="scFormHeaderFont"><span><?php if ($this->nmgp_opcao == "novo") { echo "Standard Dyeing and Finishing Instructions"; } else { echo "Standard Dyeing and Finishing Instructions"; } ?></span></td>
            <td id="lin1_col2" class="scFormHeaderFont"><span><?php echo date($this->dateDefaultFormat()); ?></span></td>
        </tr>
    </table>		 
 </div>
</div>
</td></tr>
<?php
  }
?>
<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]['dye_standdf_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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]['dye_standdf_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($this->nmgp_botoes['qsearch'] == "on" && $opcao_botoes != "novo")
      {
          $OPC_cmp = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <select class="scFormToolbarInput" style="vertical-align: middle;" name="nmgp_fast_search_t" onChange="change_fast_t = 'CH';">
<?php 
          $SC_Label_atu['number'] = (isset($this->nm_new_label['number'])) ? $this->nm_new_label['number'] : 'NUMBER'; 
          $SC_Label_atu['gs'] = (isset($this->nm_new_label['gs'])) ? $this->nm_new_label['gs'] : 'GS'; 
          $SC_Label_atu['fs'] = (isset($this->nm_new_label['fs'])) ? $this->nm_new_label['fs'] : 'FS'; 
          foreach ($SC_Label_atu as $CMP => $LABEL)
          {
              $OPC_sel = ($CMP == $OPC_cmp) ? " selected" : "";
              echo "           <option value='" . $CMP . "'" . $OPC_sel . ">" . $LABEL . "</option>";
          }
?> 
          </select>
          <select class="scFormToolbarInput" style="vertical-align: middle;" name="nmgp_cond_fast_search_t" onChange="change_fast_t = 'CH';">
<?php 
          $OPC_sel = ("eq" == $OPC_arg) ? " selected" : "";
           echo "           <option value='eq'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_exac'] . "</option>";
          $OPC_sel = ("ii" == $OPC_arg) ? " selected" : "";
           echo "           <option value='ii'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_stts_with'] . "</option>";
          $OPC_sel = ("qp" == $OPC_arg) ? " selected" : "";
           echo "           <option value='qp'" . $OPC_sel . ">" . $this->Ini->Nm_lang['lang_srch_like'] . "</option>";
?> 
          </select>
          <script type="text/javascript">var scQSInitVal = "<?php echo $OPC_dat ?>";</script>
          <span id="quicksearchph_t">
           <input type="text" id="SC_fast_search_t" class="scFormToolbarInput" style="vertical-align: middle" name="nmgp_arg_fast_search_t" value="<?php echo NM_encode_input($OPC_dat) ?>" size="10" onChange="change_fast_t = 'CH';" alt="{watermark:'<?php echo $this->Ini->Nm_lang['lang_othr_qk_watermark'] ?>', watermarkClass: 'scFormToolbarInputWm', maxLength: 255}">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_close_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_clean; ?>" onclick="document.getElementById('SC_fast_search_t').value = ''; nm_move('fast_search', 't');">
           <img style="position: absolute; display: none; height: 16px; width: 16px" id="SC_fast_search_submit_t" src="<?php echo $this->Ini->path_botoes ?>/<?php echo $this->Ini->Img_qs_search; ?>" onclick="scQuickSearchSubmit_t();">
          </span>
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['new'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bnovo", "nm_move ('novo'); return false;", "nm_move ('novo'); return false;", "sc_b_new_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bincluir", "nm_atualiza ('incluir'); return false;", "nm_atualiza ('incluir'); return false;", "sc_b_ins_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!$this->Embutida_call || $this->sc_evento == "novo" || $this->sc_evento == "insert" || $this->sc_evento == "incluir")) {
        $sCondStyle = ($this->nmgp_botoes['insert'] == "on") && ($this->nm_flag_saida_novo != "S" || $this->nmgp_botoes['exit'] != "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bcancelar", "document.F5.submit();return false;", "document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['update'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "balterar", "nm_atualiza ('alterar'); return false;", "nm_atualiza ('alterar'); return false;", "sc_b_upd_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ($opcao_botoes != "novo") {
        $sCondStyle = ($this->nmgp_botoes['delete'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bexcluir", "nm_atualiza ('excluir'); return false;", "nm_atualiza ('excluir'); return false;", "sc_b_del_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if ('' != $this->url_webhelp) {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bhelp", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "window.open('" . $this->url_webhelp. "', '', 'resizable, scrollbars'); ", "", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && ($nm_apl_dependente != 1 || $this->nm_Start_new) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "R") && (!$this->Embutida_call)) {
        $sCondStyle = (($this->nm_flag_saida_novo == "S" || ($this->nm_Start_new && !$this->aba_iframe)) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes == "novo") && (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] == "R") && (!$this->Embutida_call)) {
        $sCondStyle = ($this->nm_flag_saida_novo == "S" && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "document.F5.action='" . $nm_url_saida. "'; document.F5.submit();return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (isset($_SESSION['scriptcase']['nm_sc_retorno']) && !empty($_SESSION['scriptcase']['nm_sc_retorno']) && $nm_apl_dependente != 1 && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "R" && (!$this->aba_iframe || $this->is_calendar_app) && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente == 1 && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bvoltar", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
    if (($opcao_botoes != "novo") && (!$this->Embutida_call)) {
        $sCondStyle = (!isset($_SESSION['scriptcase']['nm_sc_retorno']) || empty($_SESSION['scriptcase']['nm_sc_retorno']) || $nm_apl_dependente == 1 || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $this->nmgp_botoes['exit'] == "on") && ($nm_apl_dependente != 1 || $this->nmgp_botoes['exit'] != "on") && (!$this->aba_iframe && $this->nmgp_botoes['exit'] == "on") ? '' : 'display: none;';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "bsair", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "document.F6.action='" . $nm_url_saida. "'; document.F6.submit(); return false;", "sc_b_sai_t", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
        $NM_btn = true;
    }
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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, 't');</script><?php } ?>
</td></tr> 
<tr><td>
<?php
  if ($this->nmgp_form_empty)
  {
       echo "</td></tr><tr><td align=center>";
       echo "<font face=\"" . $this->Ini->pag_fonte_tipo . "\" color=\"" . $this->Ini->cor_txt_grid . "\" size=\"2\"><b>" . $this->Ini->Nm_lang['lang_errm_empt'] . "</b></font>";
       echo "</td></tr>";
  }
  else
  {
?>
<?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_0"><!-- bloco_c -->
<?php
?>
<TABLE align="center" id="hidden_bloco_0" class="scFormTable" width="100%" style="height: 100%;"><?php
           if ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['number']))
           {
               $this->nmgp_cmp_readonly['number'] = 'on';
           }
?>
   <tr>


    <TD colspan="10" 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\">"; } ?>Main<?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 ('novo' != $this->nmgp_opcao && !isset($this->nmgp_cmp_readonly['date']))
           {
               $this->nmgp_cmp_readonly['date'] = 'on';
           }
?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_number" style="<?php echo $sStyleHidden_number; ?>;"><span id="id_label_number"><?php echo $this->nm_new_label['number']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_number" style="<?php echo $sStyleHidden_number; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php if ((isset($this->Embutida_form) && $this->Embutida_form) || ($this->nmgp_opcao != "novo" && $this->nmgp_opc_ant != "incluir")) { 
 ?>
<span id="id_read_on_number" style=";<?php echo $sStyleReadLab_number; ?>"><?php echo NM_encode_input($this->number); ?></span><span id="id_read_off_number" style="<?php echo $sStyleReadInp_number; ?>"><input type=hidden name="number" value="<?php echo NM_encode_input($number) . "\">"?><span id="id_ajax_label_number"><?php echo nl2br($number); ?></span>
</span><?php } else { ?>
&nbsp;
<?php } ?>
</span></td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_number_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_number_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_date" style="<?php echo $sStyleHidden_date; ?>;"><span id="id_label_date"><?php echo $this->nm_new_label['date']; ?></span><?php if (!isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['php_cmp_required']['date']) || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['php_cmp_required']['date'] == "on") { ?> <span class="scFormRequiredOdd">*</span> <?php }?></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_date" style="<?php echo $sStyleHidden_date; ?>;"><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["date"]) &&  $this->nmgp_cmp_readonly["date"] == "on")) { 

 ?>
<input type=hidden name="date" value="<?php echo NM_encode_input($date) . "\"><span id=\"id_ajax_label_date\">" . $date . "</span>"; ?>
<?php } else { ?>
<span id="id_read_on_date" class="sc-ui-readonly-date" style=";<?php echo $sStyleReadLab_date; ?>"><?php echo NM_encode_input($this->date); ?></span><span id="id_read_off_date" style="white-space: nowrap;<?php echo $sStyleReadInp_date; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_date" type=text name="date" value="<?php echo NM_encode_input($date) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['date']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['date']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['date']['date_format'];
$tmp_form_data = str_replace('aaaa', 'yyyy', $tmp_form_data);
$tmp_form_data = str_replace('dd'  , $this->Ini->Nm_lang['lang_othr_date_days'], $tmp_form_data);
$tmp_form_data = str_replace('mm'  , $this->Ini->Nm_lang['lang_othr_date_mnth'], $tmp_form_data);
$tmp_form_data = str_replace('yyyy', $this->Ini->Nm_lang['lang_othr_date_year'], $tmp_form_data);
$tmp_form_data = str_replace('hh'  , $this->Ini->Nm_lang['lang_othr_date_hour'], $tmp_form_data);
$tmp_form_data = str_replace('ii'  , $this->Ini->Nm_lang['lang_othr_date_mint'], $tmp_form_data);
$tmp_form_data = str_replace('ss'  , $this->Ini->Nm_lang['lang_othr_date_scnd'], $tmp_form_data);
$tmp_form_data = str_replace(';'   , ' '                                       , $tmp_form_data);
?>
&nbsp;<?php echo $tmp_form_data; ?></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_date_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_date_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gs" style="<?php echo $sStyleHidden_gs; ?>;"><span id="id_label_gs"><?php echo $this->nm_new_label['gs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gs" style="<?php echo $sStyleHidden_gs; ?>;"><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["gs"]) &&  $this->nmgp_cmp_readonly["gs"] == "on") { 

 ?>
<input type=hidden name="gs" value="<?php echo NM_encode_input($gs) . "\">" . $gs . ""; ?>
<?php } else { ?>
<span id="id_read_on_gs" class="sc-ui-readonly-gs" style=";<?php echo $sStyleReadLab_gs; ?>"><?php echo NM_encode_input($this->gs); ?></span><span id="id_read_off_gs" style="white-space: nowrap;<?php echo $sStyleReadInp_gs; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gs" type=text name="gs" value="<?php echo NM_encode_input($gs) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, 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_gs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gs_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fs" style="<?php echo $sStyleHidden_fs; ?>;"><span id="id_label_fs"><?php echo $this->nm_new_label['fs']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fs" style="<?php echo $sStyleHidden_fs; ?>;"><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["fs"]) &&  $this->nmgp_cmp_readonly["fs"] == "on") { 

 ?>
<input type=hidden name="fs" value="<?php echo NM_encode_input($fs) . "\">" . $fs . ""; ?>
<?php } else { ?>
<span id="id_read_on_fs" class="sc-ui-readonly-fs" style=";<?php echo $sStyleReadLab_fs; ?>"><?php echo NM_encode_input($this->fs); ?></span><span id="id_read_off_fs" style="white-space: nowrap;<?php echo $sStyleReadInp_fs; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fs" type=text name="fs" value="<?php echo NM_encode_input($fs) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, 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_fs_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fs_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 } ?>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_1"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_1"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_1" class="scFormTable" width="100%" style="height: 100%;">   <tr>


    <TD colspan="8" 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\">"; } ?>Frame<?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['frame']))
    {
        $this->nm_new_label['frame'] = "FRAME";
    }
?>
<?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);
   $frame = $this->frame;
   $sStyleHidden_frame = '';
   if (isset($this->nmgp_cmp_hidden['frame']) && $this->nmgp_cmp_hidden['frame'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['frame']);
       $sStyleHidden_frame = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_frame = 'display: none;';
   $sStyleReadInp_frame = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['frame']) && $this->nmgp_cmp_readonly['frame'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['frame']);
       $sStyleReadLab_frame = '';
       $sStyleReadInp_frame = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['frame']) && $this->nmgp_cmp_hidden['frame'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="frame" value="<?php echo NM_encode_input($frame) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_frame" style="<?php echo $sStyleHidden_frame; ?>;"><span id="id_label_frame"><?php echo $this->nm_new_label['frame']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_frame" style="<?php echo $sStyleHidden_frame; ?>;"><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["frame"]) &&  $this->nmgp_cmp_readonly["frame"] == "on") { 

 ?>
<input type=hidden name="frame" value="<?php echo NM_encode_input($frame) . "\">" . $frame . ""; ?>
<?php } else { ?>
<span id="id_read_on_frame" class="sc-ui-readonly-frame" style=";<?php echo $sStyleReadLab_frame; ?>"><?php echo NM_encode_input($this->frame); ?></span><span id="id_read_off_frame" style="white-space: nowrap;<?php echo $sStyleReadInp_frame; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_frame" type=text name="frame" value="<?php echo NM_encode_input($frame) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, 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_frame_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_frame_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fwidth" style="<?php echo $sStyleHidden_fwidth; ?>;"><span id="id_label_fwidth"><?php echo $this->nm_new_label['fwidth']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fwidth" style="<?php echo $sStyleHidden_fwidth; ?>;"><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["fwidth"]) &&  $this->nmgp_cmp_readonly["fwidth"] == "on") { 

 ?>
<input type=hidden name="fwidth" value="<?php echo NM_encode_input($fwidth) . "\">" . $fwidth . ""; ?>
<?php } else { ?>
<span id="id_read_on_fwidth" class="sc-ui-readonly-fwidth" style=";<?php echo $sStyleReadLab_fwidth; ?>"><?php echo NM_encode_input($this->fwidth); ?></span><span id="id_read_off_fwidth" style="white-space: nowrap;<?php echo $sStyleReadInp_fwidth; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_fwidth" type=text name="fwidth" value="<?php echo NM_encode_input($fwidth) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['fwidth']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['fwidth']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', 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_fwidth_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fwidth_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_panels" style="<?php echo $sStyleHidden_panels; ?>;"><span id="id_label_panels"><?php echo $this->nm_new_label['panels']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_panels" style="<?php echo $sStyleHidden_panels; ?>;"><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["panels"]) &&  $this->nmgp_cmp_readonly["panels"] == "on") { 

 ?>
<input type=hidden name="panels" value="<?php echo NM_encode_input($panels) . "\">" . $panels . ""; ?>
<?php } else { ?>
<span id="id_read_on_panels" class="sc-ui-readonly-panels" style=";<?php echo $sStyleReadLab_panels; ?>"><?php echo NM_encode_input($this->panels); ?></span><span id="id_read_off_panels" style="white-space: nowrap;<?php echo $sStyleReadInp_panels; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_panels" type=text name="panels" value="<?php echo NM_encode_input($panels) ?>"
 size=4 alt="{datatype: 'integer', maxLength: 4, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['panels']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['panels']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', 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_panels_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_panels_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 } ?>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_2"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_2"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_2" class="scFormTable" width="100%" style="height: 100%;">   <tr>


    <TD colspan="8" 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\">"; } ?>Physicals<?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['cpi']))
    {
        $this->nm_new_label['cpi'] = "CPI";
    }
?>
<?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);
   $cpi = $this->cpi;
   $sStyleHidden_cpi = '';
   if (isset($this->nmgp_cmp_hidden['cpi']) && $this->nmgp_cmp_hidden['cpi'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['cpi']);
       $sStyleHidden_cpi = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_cpi = 'display: none;';
   $sStyleReadInp_cpi = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['cpi']) && $this->nmgp_cmp_readonly['cpi'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['cpi']);
       $sStyleReadLab_cpi = '';
       $sStyleReadInp_cpi = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['cpi']) && $this->nmgp_cmp_hidden['cpi'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="cpi" value="<?php echo NM_encode_input($cpi) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cpi" style="<?php echo $sStyleHidden_cpi; ?>;"><span id="id_label_cpi"><?php echo $this->nm_new_label['cpi']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cpi" style="<?php echo $sStyleHidden_cpi; ?>;"><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["cpi"]) &&  $this->nmgp_cmp_readonly["cpi"] == "on") { 

 ?>
<input type=hidden name="cpi" value="<?php echo NM_encode_input($cpi) . "\">" . $cpi . ""; ?>
<?php } else { ?>
<span id="id_read_on_cpi" class="sc-ui-readonly-cpi" style=";<?php echo $sStyleReadLab_cpi; ?>"><?php echo NM_encode_input($this->cpi); ?></span><span id="id_read_off_cpi" style="white-space: nowrap;<?php echo $sStyleReadInp_cpi; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cpi" type=text name="cpi" value="<?php echo NM_encode_input($cpi) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, 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_cpi_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cpi_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_wpi" style="<?php echo $sStyleHidden_wpi; ?>;"><span id="id_label_wpi"><?php echo $this->nm_new_label['wpi']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_wpi" style="<?php echo $sStyleHidden_wpi; ?>;"><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["wpi"]) &&  $this->nmgp_cmp_readonly["wpi"] == "on") { 

 ?>
<input type=hidden name="wpi" value="<?php echo NM_encode_input($wpi) . "\">" . $wpi . ""; ?>
<?php } else { ?>
<span id="id_read_on_wpi" class="sc-ui-readonly-wpi" style=";<?php echo $sStyleReadLab_wpi; ?>"><?php echo NM_encode_input($this->wpi); ?></span><span id="id_read_off_wpi" style="white-space: nowrap;<?php echo $sStyleReadInp_wpi; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_wpi" type=text name="wpi" value="<?php echo NM_encode_input($wpi) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, 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_wpi_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_wpi_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gryield" style="<?php echo $sStyleHidden_gryield; ?>;"><span id="id_label_gryield"><?php echo $this->nm_new_label['gryield']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gryield" style="<?php echo $sStyleHidden_gryield; ?>;"><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["gryield"]) &&  $this->nmgp_cmp_readonly["gryield"] == "on") { 

 ?>
<input type=hidden name="gryield" value="<?php echo NM_encode_input($gryield) . "\">" . $gryield . ""; ?>
<?php } else { ?>
<span id="id_read_on_gryield" class="sc-ui-readonly-gryield" style=";<?php echo $sStyleReadLab_gryield; ?>"><?php echo NM_encode_input($this->gryield); ?></span><span id="id_read_off_gryield" style="white-space: nowrap;<?php echo $sStyleReadInp_gryield; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gryield" type=text name="gryield" value="<?php echo NM_encode_input($gryield) ?>"
 size=16 maxlength=16 alt="{datatype: 'text', maxLength: 16, 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_gryield_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gryield_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fyield" style="<?php echo $sStyleHidden_fyield; ?>;"><span id="id_label_fyield"><?php echo $this->nm_new_label['fyield']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fyield" style="<?php echo $sStyleHidden_fyield; ?>;"><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["fyield"]) &&  $this->nmgp_cmp_readonly["fyield"] == "on") { 

 ?>
<input type=hidden name="fyield" value="<?php echo NM_encode_input($fyield) . "\">" . $fyield . ""; ?>
<?php } else { ?>
<span id="id_read_on_fyield" class="sc-ui-readonly-fyield" style=";<?php echo $sStyleReadLab_fyield; ?>"><?php echo NM_encode_input($this->fyield); ?></span><span id="id_read_off_fyield" style="white-space: nowrap;<?php echo $sStyleReadInp_fyield; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fyield" type=text name="fyield" value="<?php echo NM_encode_input($fyield) ?>"
 size=16 maxlength=16 alt="{datatype: 'text', maxLength: 16, 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_fyield_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fyield_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 } 
?> 


   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_3"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_3"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_3" class="scFormTable" width="100%" style="height: 100%;">   <tr>


    <TD colspan="8" 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\">"; } ?>Finish<?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['finno2']))
   {
       $this->nm_new_label['finno2'] = "";
   }
   $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);
   $finno2 = $this->finno2;
   $sStyleHidden_finno2 = '';
   if (isset($this->nmgp_cmp_hidden['finno2']) && $this->nmgp_cmp_hidden['finno2'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['finno2']);
       $sStyleHidden_finno2 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_finno2 = 'display: none;';
   $sStyleReadInp_finno2 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['finno2']) && $this->nmgp_cmp_readonly['finno2'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['finno2']);
       $sStyleReadLab_finno2 = '';
       $sStyleReadInp_finno2 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['finno2']) && $this->nmgp_cmp_hidden['finno2'] == 'off') { $sc_hidden_yes++; ?>
<input type=hidden name="finno2" value="<?php echo NM_encode_input($this->finno2) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_finno2" style="<?php echo $sStyleHidden_finno2; ?>;"><span id="id_label_finno2"><?php echo $this->nm_new_label['finno2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_finno2" style="<?php echo $sStyleHidden_finno2; ?>background-color:#00CC66;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style="background-color:#00CC66;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["finno2"]) &&  $this->nmgp_cmp_readonly["finno2"] == "on") { 
 
$nmgp_def_dados = "" ; 
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2']))
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2']); 
}
else
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'] = array(); 
}
   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_ibase))
   { 
       $GLOBALS["NM_ERRO_IBASE"] = 1;  
   } 
   $nm_nao_carga = false;
   $nmgp_def_dados = "" ; 
   if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2']))
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2']); 
   }
   else
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'] = array(); 
    }

   $old_value_number = $this->number;
   $old_value_date = $this->date;
   $old_value_fwidth = $this->fwidth;
   $old_value_panels = $this->panels;
   $old_value_rollsize = $this->rollsize;
   $old_value_tubesize = $this->tubesize;
   $this->nm_tira_formatacao();
   $this->nm_converte_datas(false);


   $unformatted_value_number = $this->number;
   $unformatted_value_date = $this->date;
   $unformatted_value_fwidth = $this->fwidth;
   $unformatted_value_panels = $this->panels;
   $unformatted_value_rollsize = $this->rollsize;
   $unformatted_value_tubesize = $this->tubesize;

   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_sybase))
   {
       $nm_comando = "SELECT FINISH, FINISH + '-' + DYER + '-' + STYLE + '-' + NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_mysql))
   {
       $nm_comando = "SELECT FINISH, concat(FINISH,'-', DYER, '-', STYLE, '-', NAME)  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_access))
   {
       $nm_comando = "SELECT FINISH, FINISH&'-'&DYER&'-'&STYLE&'-'&NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_postgres))
   {
       $nm_comando = "SELECT FINISH, FINISH||'-'||DYER||'-'||STYLE||'-'||NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_mssql))
   {
       $nm_comando = "SELECT FINISH, convert(char,FINISH) + '-' + DYER + '-' + STYLE + '-' + NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_db2))
   {
       $nm_comando = "SELECT FINISH, char(FINISH)||'-'||DYER||'-'||STYLE||'-'||NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   else
   {
       $nm_comando = "SELECT FINISH, FINISH||'-'||DYER||'-'||STYLE||'-'||NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }

   $this->number = $old_value_number;
   $this->date = $old_value_date;
   $this->fwidth = $old_value_fwidth;
   $this->panels = $old_value_panels;
   $this->rollsize = $old_value_rollsize;
   $this->tubesize = $old_value_tubesize;

   $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_comando; 
   $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; 
   if ($nm_comando != "" && $rs = $this->Db->Execute($nm_comando)) 
   {
       while (!$rs->EOF) 
       { 
              $rs->fields[0] = str_replace(',', '.', $rs->fields[0]);
              $rs->fields[0] = (strpos(strtolower($rs->fields[0]), "e")) ? (float)$rs->fields[0] : $rs->fields[0];
              $rs->fields[0] = (string)$rs->fields[0];
              $nmgp_def_dados .= $rs->fields[1] . "?#?" ; 
              $nmgp_def_dados .= $rs->fields[0] . "?#?N?@?" ; 
              $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'][] = $rs->fields[0];
              $rs->MoveNext() ; 
       } 
       $rs->Close() ; 
   } 
   elseif ($GLOBALS["NM_ERRO_IBASE"] != 1 && $nm_comando != "")  
   {  
       $this->Erro->mensagem(__FILE__, __LINE__, "banco", $this->Ini->Nm_lang['lang_errm_dber'], $this->Db->ErrorMsg()); 
       exit; 
   } 
   $GLOBALS["NM_ERRO_IBASE"] = 0; 
   $x = 0; 
   $finno2_look = ""; 
   $todo = explode("?@?", trim($nmgp_def_dados)) ; 
   while (!empty($todo[$x])) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->finno2_1))
          {
              foreach ($this->finno2_1 as $tmp_finno2)
              {
                  if (trim($tmp_finno2) === trim($cadaselect[1])) { $finno2_look .= $cadaselect[0] . '__SC_BREAK_LINE__'; }
              }
          }
          elseif (trim($this->finno2) === trim($cadaselect[1])) { $finno2_look .= $cadaselect[0]; } 
          $x++; 
   }

?>
<input type=hidden name="finno2" value="<?php echo NM_encode_input($finno2) . "\">" . $finno2_look . ""; ?>
<?php } else { ?>
 
<?php  
$nmgp_def_dados = "" ; 
if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2']))
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2']); 
}
else
{
    $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'] = array(); 
}
   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_ibase))
   { 
       $GLOBALS["NM_ERRO_IBASE"] = 1;  
   } 
   $nm_nao_carga = false;
   $nmgp_def_dados = "" ; 
   if (isset($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2']))
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'] = array_unique($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2']); 
   }
   else
   {
       $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'] = array(); 
    }

   $old_value_number = $this->number;
   $old_value_date = $this->date;
   $old_value_fwidth = $this->fwidth;
   $old_value_panels = $this->panels;
   $old_value_rollsize = $this->rollsize;
   $old_value_tubesize = $this->tubesize;
   $this->nm_tira_formatacao();
   $this->nm_converte_datas(false);


   $unformatted_value_number = $this->number;
   $unformatted_value_date = $this->date;
   $unformatted_value_fwidth = $this->fwidth;
   $unformatted_value_panels = $this->panels;
   $unformatted_value_rollsize = $this->rollsize;
   $unformatted_value_tubesize = $this->tubesize;

   if (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_sybase))
   {
       $nm_comando = "SELECT FINISH, FINISH + '-' + DYER + '-' + STYLE + '-' + NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_mysql))
   {
       $nm_comando = "SELECT FINISH, concat(FINISH,'-', DYER, '-', STYLE, '-', NAME)  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_access))
   {
       $nm_comando = "SELECT FINISH, FINISH&'-'&DYER&'-'&STYLE&'-'&NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_postgres))
   {
       $nm_comando = "SELECT FINISH, FINISH||'-'||DYER||'-'||STYLE||'-'||NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_mssql))
   {
       $nm_comando = "SELECT FINISH, convert(char,FINISH) + '-' + DYER + '-' + STYLE + '-' + NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   elseif (in_array(strtolower($this->Ini->nm_tpbanco), $this->Ini->nm_bases_db2))
   {
       $nm_comando = "SELECT FINISH, char(FINISH)||'-'||DYER||'-'||STYLE||'-'||NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }
   else
   {
       $nm_comando = "SELECT FINISH, FINISH||'-'||DYER||'-'||STYLE||'-'||NAME  FROM finish  ORDER BY FINISH, DYER, STYLE, NAME";
   }

   $this->number = $old_value_number;
   $this->date = $old_value_date;
   $this->fwidth = $old_value_fwidth;
   $this->panels = $old_value_panels;
   $this->rollsize = $old_value_rollsize;
   $this->tubesize = $old_value_tubesize;

   $_SESSION['scriptcase']['sc_sql_ult_comando'] = $nm_comando; 
   $_SESSION['scriptcase']['sc_sql_ult_conexao'] = ''; 
   if ($nm_comando != "" && $rs = $this->Db->Execute($nm_comando)) 
   {
       while (!$rs->EOF) 
       { 
              $rs->fields[0] = str_replace(',', '.', $rs->fields[0]);
              $rs->fields[0] = (strpos(strtolower($rs->fields[0]), "e")) ? (float)$rs->fields[0] : $rs->fields[0];
              $rs->fields[0] = (string)$rs->fields[0];
              $nmgp_def_dados .= $rs->fields[1] . "?#?" ; 
              $nmgp_def_dados .= $rs->fields[0] . "?#?N?@?" ; 
              $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'][] = $rs->fields[0];
              $rs->MoveNext() ; 
       } 
       $rs->Close() ; 
   } 
   elseif ($GLOBALS["NM_ERRO_IBASE"] != 1 && $nm_comando != "")  
   {  
       $this->Erro->mensagem(__FILE__, __LINE__, "banco", $this->Ini->Nm_lang['lang_errm_dber'], $this->Db->ErrorMsg()); 
       exit; 
   } 
   $GLOBALS["NM_ERRO_IBASE"] = 0; 
   $x = 0 ; 
   $todo = explode("?@?", $nmgp_def_dados) ; 
   $x = 0; 
   $finno2_look = ""; 
   $todo = explode("?@?", trim($nmgp_def_dados)) ; 
   while (!empty($todo[$x])) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          if (isset($this->Embutida_ronly) && $this->Embutida_ronly && isset($this->finno2_1))
          {
              foreach ($this->finno2_1 as $tmp_finno2)
              {
                  if (trim($tmp_finno2) === trim($cadaselect[1])) { $finno2_look .= $cadaselect[0] . '__SC_BREAK_LINE__'; }
              }
          }
          elseif (trim($this->finno2) === trim($cadaselect[1])) { $finno2_look .= $cadaselect[0]; } 
          $x++; 
   }
   $x = 0; 
   echo "<span id=\"id_read_on_finno2\" style=\"background-color:#00CC66;" .  $sStyleReadLab_finno2 . "\">" . NM_encode_input($finno2_look) . "</span><span id=\"id_read_off_finno2\" style=\"" . $sStyleReadInp_finno2 . "\">";
   echo " <span id=\"idAjaxSelect_finno2\"><select class=\"sc-js-input scFormObjectOdd\" style=\";\" id=\"id_sc_field_finno2\" name=\"finno2\" size=1>" ; 
   echo "\r" ; 
   $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['Lookup_finno2'][] = ''; 
   echo "  <option value=\"\">---Select Finish---</option>" ; 
   while (!empty($todo[$x]) && !$nm_nao_carga) 
   {
          $cadaselect = explode("?#?", $todo[$x]) ; 
          echo "  <option value=\"$cadaselect[1]\"" ; 
          if (trim($this->finno2) === trim($cadaselect[1])) 
          {
              echo " selected" ; 
          }
          if (strtoupper($cadaselect[2]) == "S") 
          {
              if (empty($this->finno2)) 
              {
                  echo " selected" ;
              } 
           } 
          echo ">$cadaselect[0] </option>" ; 
          echo "\r" ; 
          $x++ ; 
   }  ; 
   echo " </select></span>" ; 
   echo "\r" ; 
 ?>&nbsp;<?php echo nmButtonOutput($this->arr_buttons, "bform_lookuplink", "window.open('" . $this->Ini->link_dye_finish_edit_grid_edit. "?nmgp_url_saida=&nmgp_parms=sc_redir_atualiz*scinok*scout&nmgp_outra_jan=true&nm_evt_ret_edit=do_ajax_dye_standdf_form_lkpedt_refresh_finno2', '', 'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no')", "window.open('" . $this->Ini->link_dye_finish_edit_grid_edit. "?nmgp_url_saida=&nmgp_parms=sc_redir_atualiz*scinok*scout&nmgp_outra_jan=true&nm_evt_ret_edit=do_ajax_dye_standdf_form_lkpedt_refresh_finno2', '', 'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no')", "fldedt_finno2", "", "", "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
<?php    echo "</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_finno2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_finno2_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_finish" style="<?php echo $sStyleHidden_finish; ?>;"><span id="id_label_finish"><?php echo $this->nm_new_label['finish']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_finish" style="<?php echo $sStyleHidden_finish; ?>background-color:#00CC66;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style="background-color:#00CC66;;vertical-align: top;padding: 0px">
<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["finish"]) &&  $this->nmgp_cmp_readonly["finish"] == "on") { 

 ?>
<input type=hidden name="finish" value="<?php echo NM_encode_input($finish) . "\">" . $finish . ""; ?>
<?php } else { ?>
<span id="id_read_on_finish" class="sc-ui-readonly-finish" style="background-color:#00CC66;<?php echo $sStyleReadLab_finish; ?>"><?php echo NM_encode_input($this->finish); ?></span><span id="id_read_off_finish" style="white-space: nowrap;<?php echo $sStyleReadInp_finish; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_finish" type=text name="finish" value="<?php echo NM_encode_input($finish) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, 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_finish_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_finish_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fin_no" style="<?php echo $sStyleHidden_fin_no; ?>;"><span id="id_label_fin_no"><?php echo $this->nm_new_label['fin_no']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fin_no" style="<?php echo $sStyleHidden_fin_no; ?>;"><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["fin_no"]) &&  $this->nmgp_cmp_readonly["fin_no"] == "on") { 

 ?>
<input type=hidden name="fin_no" value="<?php echo NM_encode_input($fin_no) . "\">" . $fin_no . ""; ?>
<?php } else { ?>
<span id="id_read_on_fin_no" class="sc-ui-readonly-fin_no" style=";<?php echo $sStyleReadLab_fin_no; ?>"><?php echo NM_encode_input($this->fin_no); ?></span><span id="id_read_off_fin_no" style="white-space: nowrap;<?php echo $sStyleReadInp_fin_no; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fin_no" type=text name="fin_no" value="<?php echo NM_encode_input($fin_no) ?>"
 size=5 maxlength=5 alt="{datatype: 'text', maxLength: 5, 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_fin_no_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fin_no_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 } ?>
   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_4"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_4"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_4" class="scFormTable" width="100%" style="height: 100%;">   <tr>


    <TD colspan="10" 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\">"; } ?>Putup<?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['put_up']))
    {
        $this->nm_new_label['put_up'] = "PUT UP";
    }
?>
<?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);
   $put_up = $this->put_up;
   $sStyleHidden_put_up = '';
   if (isset($this->nmgp_cmp_hidden['put_up']) && $this->nmgp_cmp_hidden['put_up'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['put_up']);
       $sStyleHidden_put_up = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_put_up = 'display: none;';
   $sStyleReadInp_put_up = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['put_up']) && $this->nmgp_cmp_readonly['put_up'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['put_up']);
       $sStyleReadLab_put_up = '';
       $sStyleReadInp_put_up = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['put_up']) && $this->nmgp_cmp_hidden['put_up'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="put_up" value="<?php echo NM_encode_input($put_up) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_put_up" style="<?php echo $sStyleHidden_put_up; ?>;"><span id="id_label_put_up"><?php echo $this->nm_new_label['put_up']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_put_up" style="<?php echo $sStyleHidden_put_up; ?>;"><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["put_up"]) &&  $this->nmgp_cmp_readonly["put_up"] == "on") { 

 ?>
<input type=hidden name="put_up" value="<?php echo NM_encode_input($put_up) . "\">" . $put_up . ""; ?>
<?php } else { ?>
<span id="id_read_on_put_up" class="sc-ui-readonly-put_up" style=";<?php echo $sStyleReadLab_put_up; ?>"><?php echo NM_encode_input($this->put_up); ?></span><span id="id_read_off_put_up" style="white-space: nowrap;<?php echo $sStyleReadInp_put_up; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_put_up" type=text name="put_up" value="<?php echo NM_encode_input($put_up) ?>"
 size=30 maxlength=30 alt="{datatype: 'text', maxLength: 30, 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_put_up_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_put_up_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_rollsize" style="<?php echo $sStyleHidden_rollsize; ?>;"><span id="id_label_rollsize"><?php echo $this->nm_new_label['rollsize']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_rollsize" style="<?php echo $sStyleHidden_rollsize; ?>;"><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["rollsize"]) &&  $this->nmgp_cmp_readonly["rollsize"] == "on") { 

 ?>
<input type=hidden name="rollsize" value="<?php echo NM_encode_input($rollsize) . "\">" . $rollsize . ""; ?>
<?php } else { ?>
<span id="id_read_on_rollsize" class="sc-ui-readonly-rollsize" style=";<?php echo $sStyleReadLab_rollsize; ?>"><?php echo NM_encode_input($this->rollsize); ?></span><span id="id_read_off_rollsize" style="white-space: nowrap;<?php echo $sStyleReadInp_rollsize; ?>">
 <input class="sc-js-input scFormObjectOdd" style="text-align:left;" id="id_sc_field_rollsize" type=text name="rollsize" value="<?php echo NM_encode_input($rollsize) ?>"
 size=6 alt="{datatype: 'integer', maxLength: 6, thousandsSep: '<?php echo str_replace("'", "\'", $this->field_config['rollsize']['symbol_grp']); ?>', thousandsFormat: <?php echo $this->field_config['rollsize']['symbol_fmt']; ?>, allowNegative: false, onlyNegative: false, alignment: 'left', 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_rollsize_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_rollsize_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_tubesize" style="<?php echo $sStyleHidden_tubesize; ?>;"><span id="id_label_tubesize"><?php echo $this->nm_new_label['tubesize']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_tubesize" style="<?php echo $sStyleHidden_tubesize; ?>;"><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["tubesize"]) &&  $this->nmgp_cmp_readonly["tubesize"] == "on") { 

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


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fold" style="<?php echo $sStyleHidden_fold; ?>;"><span id="id_label_fold"><?php echo $this->nm_new_label['fold']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fold" style="<?php echo $sStyleHidden_fold; ?>;"><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["fold"]) &&  $this->nmgp_cmp_readonly["fold"] == "on") { 

 ?>
<input type=hidden name="fold" value="<?php echo NM_encode_input($fold) . "\">" . $fold . ""; ?>
<?php } else { ?>
<span id="id_read_on_fold" class="sc-ui-readonly-fold" style=";<?php echo $sStyleReadLab_fold; ?>"><?php echo NM_encode_input($this->fold); ?></span><span id="id_read_off_fold" style="white-space: nowrap;<?php echo $sStyleReadInp_fold; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fold" type=text name="fold" value="<?php echo NM_encode_input($fold) ?>"
 size=11 maxlength=11 alt="{datatype: 'text', maxLength: 11, 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_fold_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fold_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_cases" style="<?php echo $sStyleHidden_cases; ?>;"><span id="id_label_cases"><?php echo $this->nm_new_label['cases']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_cases" style="<?php echo $sStyleHidden_cases; ?>;"><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["cases"]) &&  $this->nmgp_cmp_readonly["cases"] == "on") { 

 ?>
<input type=hidden name="cases" value="<?php echo NM_encode_input($cases) . "\">" . $cases . ""; ?>
<?php } else { ?>
<span id="id_read_on_cases" class="sc-ui-readonly-cases" style=";<?php echo $sStyleReadLab_cases; ?>"><?php echo NM_encode_input($this->cases); ?></span><span id="id_read_off_cases" style="white-space: nowrap;<?php echo $sStyleReadInp_cases; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_cases" type=text name="cases" value="<?php echo NM_encode_input($cases) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_cases_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_cases_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 } 
?> 


   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_5"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_5"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_5" class="scFormTable" width="100%" style="height: 100%;">   <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\">"; } ?>Special Instructions<?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['spec1']))
    {
        $this->nm_new_label['spec1'] = "SPEC1";
    }
?>
<?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);
   $spec1 = $this->spec1;
   $sStyleHidden_spec1 = '';
   if (isset($this->nmgp_cmp_hidden['spec1']) && $this->nmgp_cmp_hidden['spec1'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['spec1']);
       $sStyleHidden_spec1 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_spec1 = 'display: none;';
   $sStyleReadInp_spec1 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['spec1']) && $this->nmgp_cmp_readonly['spec1'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['spec1']);
       $sStyleReadLab_spec1 = '';
       $sStyleReadInp_spec1 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['spec1']) && $this->nmgp_cmp_hidden['spec1'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="spec1" value="<?php echo NM_encode_input($spec1) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spec1" style="<?php echo $sStyleHidden_spec1; ?>;"><span id="id_label_spec1"><?php echo $this->nm_new_label['spec1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spec1" style="<?php echo $sStyleHidden_spec1; ?>;"><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["spec1"]) &&  $this->nmgp_cmp_readonly["spec1"] == "on") { 

 ?>
<input type=hidden name="spec1" value="<?php echo NM_encode_input($spec1) . "\">" . $spec1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_spec1" class="sc-ui-readonly-spec1" style=";<?php echo $sStyleReadLab_spec1; ?>"><?php echo NM_encode_input($this->spec1); ?></span><span id="id_read_off_spec1" style="white-space: nowrap;<?php echo $sStyleReadInp_spec1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spec1" type=text name="spec1" value="<?php echo NM_encode_input($spec1) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, 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_spec1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spec1_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['spec2']))
    {
        $this->nm_new_label['spec2'] = "SPEC2";
    }
?>
<?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);
   $spec2 = $this->spec2;
   $sStyleHidden_spec2 = '';
   if (isset($this->nmgp_cmp_hidden['spec2']) && $this->nmgp_cmp_hidden['spec2'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['spec2']);
       $sStyleHidden_spec2 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_spec2 = 'display: none;';
   $sStyleReadInp_spec2 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['spec2']) && $this->nmgp_cmp_readonly['spec2'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['spec2']);
       $sStyleReadLab_spec2 = '';
       $sStyleReadInp_spec2 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['spec2']) && $this->nmgp_cmp_hidden['spec2'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="spec2" value="<?php echo NM_encode_input($spec2) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spec2" style="<?php echo $sStyleHidden_spec2; ?>;"><span id="id_label_spec2"><?php echo $this->nm_new_label['spec2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spec2" style="<?php echo $sStyleHidden_spec2; ?>;"><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["spec2"]) &&  $this->nmgp_cmp_readonly["spec2"] == "on") { 

 ?>
<input type=hidden name="spec2" value="<?php echo NM_encode_input($spec2) . "\">" . $spec2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_spec2" class="sc-ui-readonly-spec2" style=";<?php echo $sStyleReadLab_spec2; ?>"><?php echo NM_encode_input($this->spec2); ?></span><span id="id_read_off_spec2" style="white-space: nowrap;<?php echo $sStyleReadInp_spec2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spec2" type=text name="spec2" value="<?php echo NM_encode_input($spec2) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, 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_spec2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spec2_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['spec3']))
    {
        $this->nm_new_label['spec3'] = "SPEC3";
    }
?>
<?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);
   $spec3 = $this->spec3;
   $sStyleHidden_spec3 = '';
   if (isset($this->nmgp_cmp_hidden['spec3']) && $this->nmgp_cmp_hidden['spec3'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['spec3']);
       $sStyleHidden_spec3 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_spec3 = 'display: none;';
   $sStyleReadInp_spec3 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['spec3']) && $this->nmgp_cmp_readonly['spec3'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['spec3']);
       $sStyleReadLab_spec3 = '';
       $sStyleReadInp_spec3 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['spec3']) && $this->nmgp_cmp_hidden['spec3'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="spec3" value="<?php echo NM_encode_input($spec3) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spec3" style="<?php echo $sStyleHidden_spec3; ?>;"><span id="id_label_spec3"><?php echo $this->nm_new_label['spec3']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spec3" style="<?php echo $sStyleHidden_spec3; ?>;"><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["spec3"]) &&  $this->nmgp_cmp_readonly["spec3"] == "on") { 

 ?>
<input type=hidden name="spec3" value="<?php echo NM_encode_input($spec3) . "\">" . $spec3 . ""; ?>
<?php } else { ?>
<span id="id_read_on_spec3" class="sc-ui-readonly-spec3" style=";<?php echo $sStyleReadLab_spec3; ?>"><?php echo NM_encode_input($this->spec3); ?></span><span id="id_read_off_spec3" style="white-space: nowrap;<?php echo $sStyleReadInp_spec3; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spec3" type=text name="spec3" value="<?php echo NM_encode_input($spec3) ?>"
 size=25 maxlength=25 alt="{datatype: 'text', maxLength: 25, 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_spec3_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spec3_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 } 
?> 


   </tr>
<?php $sc_hidden_no = 1; ?>
</TABLE></div><!-- bloco_f -->
   </td>
   </tr></table>
   <a name="bloco_6"></a>
   <table width="100%" height="100%" cellpadding="0"><tr valign="top"><td width="100%" height="">
<div id="div_hidden_bloco_6"><!-- bloco_c -->
<TABLE align="center" id="hidden_bloco_6" class="scFormTable" width="100%" style="height: 100%;">   <tr>


    <TD colspan="8" 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_exp . "\" style=\"border: 0px; float: left\" class=\"sc-ui-block-control\"></td><td style=\"border-width: 0px; padding: 0px; width: 100%\" class=\"scFormBlockAlign\">"; } ?>Unk<?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 style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fab1" style="<?php echo $sStyleHidden_fab1; ?>;"><span id="id_label_fab1"><?php echo $this->nm_new_label['fab1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fab1" style="<?php echo $sStyleHidden_fab1; ?>;"><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["fab1"]) &&  $this->nmgp_cmp_readonly["fab1"] == "on") { 

 ?>
<input type=hidden name="fab1" value="<?php echo NM_encode_input($fab1) . "\">" . $fab1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_fab1" class="sc-ui-readonly-fab1" style=";<?php echo $sStyleReadLab_fab1; ?>"><?php echo NM_encode_input($this->fab1); ?></span><span id="id_read_off_fab1" style="white-space: nowrap;<?php echo $sStyleReadInp_fab1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fab1" type=text name="fab1" value="<?php echo NM_encode_input($fab1) ?>"
 size=30 maxlength=30 alt="{datatype: 'text', maxLength: 30, 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_fab1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fab1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_fab2" style="<?php echo $sStyleHidden_fab2; ?>;"><span id="id_label_fab2"><?php echo $this->nm_new_label['fab2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_fab2" style="<?php echo $sStyleHidden_fab2; ?>;"><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["fab2"]) &&  $this->nmgp_cmp_readonly["fab2"] == "on") { 

 ?>
<input type=hidden name="fab2" value="<?php echo NM_encode_input($fab2) . "\">" . $fab2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_fab2" class="sc-ui-readonly-fab2" style=";<?php echo $sStyleReadLab_fab2; ?>"><?php echo NM_encode_input($this->fab2); ?></span><span id="id_read_off_fab2" style="white-space: nowrap;<?php echo $sStyleReadInp_fab2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_fab2" type=text name="fab2" value="<?php echo NM_encode_input($fab2) ?>"
 size=30 maxlength=30 alt="{datatype: 'text', maxLength: 30, 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_fab2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_fab2_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_as" style="<?php echo $sStyleHidden_as; ?>;"><span id="id_label_as"><?php echo $this->nm_new_label['as']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_as" style="<?php echo $sStyleHidden_as; ?>;"><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["as"]) &&  $this->nmgp_cmp_readonly["as"] == "on") { 

 ?>
<input type=hidden name="as" value="<?php echo NM_encode_input($as) . "\">" . $as . ""; ?>
<?php } else { ?>
<span id="id_read_on_as" class="sc-ui-readonly-as" style=";<?php echo $sStyleReadLab_as; ?>"><?php echo NM_encode_input($this->as); ?></span><span id="id_read_off_as" style="white-space: nowrap;<?php echo $sStyleReadInp_as; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_as" type=text name="as" value="<?php echo NM_encode_input($as) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_as_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_as_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ae" style="<?php echo $sStyleHidden_ae; ?>;"><span id="id_label_ae"><?php echo $this->nm_new_label['ae']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ae" style="<?php echo $sStyleHidden_ae; ?>;"><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["ae"]) &&  $this->nmgp_cmp_readonly["ae"] == "on") { 

 ?>
<input type=hidden name="ae" value="<?php echo NM_encode_input($ae) . "\">" . $ae . ""; ?>
<?php } else { ?>
<span id="id_read_on_ae" class="sc-ui-readonly-ae" style=";<?php echo $sStyleReadLab_ae; ?>"><?php echo NM_encode_input($this->ae); ?></span><span id="id_read_off_ae" style="white-space: nowrap;<?php echo $sStyleReadInp_ae; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ae" type=text name="ae" value="<?php echo NM_encode_input($ae) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_ae_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ae_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 style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gs1" style="<?php echo $sStyleHidden_gs1; ?>;"><span id="id_label_gs1"><?php echo $this->nm_new_label['gs1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gs1" style="<?php echo $sStyleHidden_gs1; ?>;"><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["gs1"]) &&  $this->nmgp_cmp_readonly["gs1"] == "on") { 

 ?>
<input type=hidden name="gs1" value="<?php echo NM_encode_input($gs1) . "\">" . $gs1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_gs1" class="sc-ui-readonly-gs1" style=";<?php echo $sStyleReadLab_gs1; ?>"><?php echo NM_encode_input($this->gs1); ?></span><span id="id_read_off_gs1" style="white-space: nowrap;<?php echo $sStyleReadInp_gs1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gs1" type=text name="gs1" value="<?php echo NM_encode_input($gs1) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, 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_gs1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gs1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_as1" style="<?php echo $sStyleHidden_as1; ?>;"><span id="id_label_as1"><?php echo $this->nm_new_label['as1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_as1" style="<?php echo $sStyleHidden_as1; ?>;"><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["as1"]) &&  $this->nmgp_cmp_readonly["as1"] == "on") { 

 ?>
<input type=hidden name="as1" value="<?php echo NM_encode_input($as1) . "\">" . $as1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_as1" class="sc-ui-readonly-as1" style=";<?php echo $sStyleReadLab_as1; ?>"><?php echo NM_encode_input($this->as1); ?></span><span id="id_read_off_as1" style="white-space: nowrap;<?php echo $sStyleReadInp_as1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_as1" type=text name="as1" value="<?php echo NM_encode_input($as1) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_as1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_as1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ae1" style="<?php echo $sStyleHidden_ae1; ?>;"><span id="id_label_ae1"><?php echo $this->nm_new_label['ae1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ae1" style="<?php echo $sStyleHidden_ae1; ?>;"><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["ae1"]) &&  $this->nmgp_cmp_readonly["ae1"] == "on") { 

 ?>
<input type=hidden name="ae1" value="<?php echo NM_encode_input($ae1) . "\">" . $ae1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_ae1" class="sc-ui-readonly-ae1" style=";<?php echo $sStyleReadLab_ae1; ?>"><?php echo NM_encode_input($this->ae1); ?></span><span id="id_read_off_ae1" style="white-space: nowrap;<?php echo $sStyleReadInp_ae1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ae1" type=text name="ae1" value="<?php echo NM_encode_input($ae1) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_ae1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ae1_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gs2" style="<?php echo $sStyleHidden_gs2; ?>;"><span id="id_label_gs2"><?php echo $this->nm_new_label['gs2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gs2" style="<?php echo $sStyleHidden_gs2; ?>;"><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["gs2"]) &&  $this->nmgp_cmp_readonly["gs2"] == "on") { 

 ?>
<input type=hidden name="gs2" value="<?php echo NM_encode_input($gs2) . "\">" . $gs2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_gs2" class="sc-ui-readonly-gs2" style=";<?php echo $sStyleReadLab_gs2; ?>"><?php echo NM_encode_input($this->gs2); ?></span><span id="id_read_off_gs2" style="white-space: nowrap;<?php echo $sStyleReadInp_gs2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gs2" type=text name="gs2" value="<?php echo NM_encode_input($gs2) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, 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_gs2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gs2_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 style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_as2" style="<?php echo $sStyleHidden_as2; ?>;"><span id="id_label_as2"><?php echo $this->nm_new_label['as2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_as2" style="<?php echo $sStyleHidden_as2; ?>;"><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["as2"]) &&  $this->nmgp_cmp_readonly["as2"] == "on") { 

 ?>
<input type=hidden name="as2" value="<?php echo NM_encode_input($as2) . "\">" . $as2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_as2" class="sc-ui-readonly-as2" style=";<?php echo $sStyleReadLab_as2; ?>"><?php echo NM_encode_input($this->as2); ?></span><span id="id_read_off_as2" style="white-space: nowrap;<?php echo $sStyleReadInp_as2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_as2" type=text name="as2" value="<?php echo NM_encode_input($as2) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_as2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_as2_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ae2" style="<?php echo $sStyleHidden_ae2; ?>;"><span id="id_label_ae2"><?php echo $this->nm_new_label['ae2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ae2" style="<?php echo $sStyleHidden_ae2; ?>;"><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["ae2"]) &&  $this->nmgp_cmp_readonly["ae2"] == "on") { 

 ?>
<input type=hidden name="ae2" value="<?php echo NM_encode_input($ae2) . "\">" . $ae2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_ae2" class="sc-ui-readonly-ae2" style=";<?php echo $sStyleReadLab_ae2; ?>"><?php echo NM_encode_input($this->ae2); ?></span><span id="id_read_off_ae2" style="white-space: nowrap;<?php echo $sStyleReadInp_ae2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ae2" type=text name="ae2" value="<?php echo NM_encode_input($ae2) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_ae2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ae2_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gs3" style="<?php echo $sStyleHidden_gs3; ?>;"><span id="id_label_gs3"><?php echo $this->nm_new_label['gs3']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gs3" style="<?php echo $sStyleHidden_gs3; ?>;"><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["gs3"]) &&  $this->nmgp_cmp_readonly["gs3"] == "on") { 

 ?>
<input type=hidden name="gs3" value="<?php echo NM_encode_input($gs3) . "\">" . $gs3 . ""; ?>
<?php } else { ?>
<span id="id_read_on_gs3" class="sc-ui-readonly-gs3" style=";<?php echo $sStyleReadLab_gs3; ?>"><?php echo NM_encode_input($this->gs3); ?></span><span id="id_read_off_gs3" style="white-space: nowrap;<?php echo $sStyleReadInp_gs3; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gs3" type=text name="gs3" value="<?php echo NM_encode_input($gs3) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, 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_gs3_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gs3_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_as3" style="<?php echo $sStyleHidden_as3; ?>;"><span id="id_label_as3"><?php echo $this->nm_new_label['as3']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_as3" style="<?php echo $sStyleHidden_as3; ?>;"><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["as3"]) &&  $this->nmgp_cmp_readonly["as3"] == "on") { 

 ?>
<input type=hidden name="as3" value="<?php echo NM_encode_input($as3) . "\">" . $as3 . ""; ?>
<?php } else { ?>
<span id="id_read_on_as3" class="sc-ui-readonly-as3" style=";<?php echo $sStyleReadLab_as3; ?>"><?php echo NM_encode_input($this->as3); ?></span><span id="id_read_off_as3" style="white-space: nowrap;<?php echo $sStyleReadInp_as3; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_as3" type=text name="as3" value="<?php echo NM_encode_input($as3) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_as3_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_as3_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 style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ae3" style="<?php echo $sStyleHidden_ae3; ?>;"><span id="id_label_ae3"><?php echo $this->nm_new_label['ae3']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ae3" style="<?php echo $sStyleHidden_ae3; ?>;"><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["ae3"]) &&  $this->nmgp_cmp_readonly["ae3"] == "on") { 

 ?>
<input type=hidden name="ae3" value="<?php echo NM_encode_input($ae3) . "\">" . $ae3 . ""; ?>
<?php } else { ?>
<span id="id_read_on_ae3" class="sc-ui-readonly-ae3" style=";<?php echo $sStyleReadLab_ae3; ?>"><?php echo NM_encode_input($this->ae3); ?></span><span id="id_read_off_ae3" style="white-space: nowrap;<?php echo $sStyleReadInp_ae3; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ae3" type=text name="ae3" value="<?php echo NM_encode_input($ae3) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_ae3_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ae3_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gs4" style="<?php echo $sStyleHidden_gs4; ?>;"><span id="id_label_gs4"><?php echo $this->nm_new_label['gs4']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gs4" style="<?php echo $sStyleHidden_gs4; ?>;"><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["gs4"]) &&  $this->nmgp_cmp_readonly["gs4"] == "on") { 

 ?>
<input type=hidden name="gs4" value="<?php echo NM_encode_input($gs4) . "\">" . $gs4 . ""; ?>
<?php } else { ?>
<span id="id_read_on_gs4" class="sc-ui-readonly-gs4" style=";<?php echo $sStyleReadLab_gs4; ?>"><?php echo NM_encode_input($this->gs4); ?></span><span id="id_read_off_gs4" style="white-space: nowrap;<?php echo $sStyleReadInp_gs4; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gs4" type=text name="gs4" value="<?php echo NM_encode_input($gs4) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, 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_gs4_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gs4_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_as4" style="<?php echo $sStyleHidden_as4; ?>;"><span id="id_label_as4"><?php echo $this->nm_new_label['as4']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_as4" style="<?php echo $sStyleHidden_as4; ?>;"><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["as4"]) &&  $this->nmgp_cmp_readonly["as4"] == "on") { 

 ?>
<input type=hidden name="as4" value="<?php echo NM_encode_input($as4) . "\">" . $as4 . ""; ?>
<?php } else { ?>
<span id="id_read_on_as4" class="sc-ui-readonly-as4" style=";<?php echo $sStyleReadLab_as4; ?>"><?php echo NM_encode_input($this->as4); ?></span><span id="id_read_off_as4" style="white-space: nowrap;<?php echo $sStyleReadInp_as4; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_as4" type=text name="as4" value="<?php echo NM_encode_input($as4) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_as4_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_as4_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ae4" style="<?php echo $sStyleHidden_ae4; ?>;"><span id="id_label_ae4"><?php echo $this->nm_new_label['ae4']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ae4" style="<?php echo $sStyleHidden_ae4; ?>;"><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["ae4"]) &&  $this->nmgp_cmp_readonly["ae4"] == "on") { 

 ?>
<input type=hidden name="ae4" value="<?php echo NM_encode_input($ae4) . "\">" . $ae4 . ""; ?>
<?php } else { ?>
<span id="id_read_on_ae4" class="sc-ui-readonly-ae4" style=";<?php echo $sStyleReadLab_ae4; ?>"><?php echo NM_encode_input($this->ae4); ?></span><span id="id_read_off_ae4" style="white-space: nowrap;<?php echo $sStyleReadInp_ae4; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ae4" type=text name="ae4" value="<?php echo NM_encode_input($ae4) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_ae4_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ae4_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 style=\"display: none;\">"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_gs5" style="<?php echo $sStyleHidden_gs5; ?>;"><span id="id_label_gs5"><?php echo $this->nm_new_label['gs5']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_gs5" style="<?php echo $sStyleHidden_gs5; ?>;"><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["gs5"]) &&  $this->nmgp_cmp_readonly["gs5"] == "on") { 

 ?>
<input type=hidden name="gs5" value="<?php echo NM_encode_input($gs5) . "\">" . $gs5 . ""; ?>
<?php } else { ?>
<span id="id_read_on_gs5" class="sc-ui-readonly-gs5" style=";<?php echo $sStyleReadLab_gs5; ?>"><?php echo NM_encode_input($this->gs5); ?></span><span id="id_read_off_gs5" style="white-space: nowrap;<?php echo $sStyleReadInp_gs5; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_gs5" type=text name="gs5" value="<?php echo NM_encode_input($gs5) ?>"
 size=8 maxlength=8 alt="{datatype: 'text', maxLength: 8, 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_gs5_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_gs5_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_as5" style="<?php echo $sStyleHidden_as5; ?>;"><span id="id_label_as5"><?php echo $this->nm_new_label['as5']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_as5" style="<?php echo $sStyleHidden_as5; ?>;"><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["as5"]) &&  $this->nmgp_cmp_readonly["as5"] == "on") { 

 ?>
<input type=hidden name="as5" value="<?php echo NM_encode_input($as5) . "\">" . $as5 . ""; ?>
<?php } else { ?>
<span id="id_read_on_as5" class="sc-ui-readonly-as5" style=";<?php echo $sStyleReadLab_as5; ?>"><?php echo NM_encode_input($this->as5); ?></span><span id="id_read_off_as5" style="white-space: nowrap;<?php echo $sStyleReadInp_as5; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_as5" type=text name="as5" value="<?php echo NM_encode_input($as5) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_as5_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_as5_text"></span></td></tr></table></td></tr></table></TD>
   <?php }?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_ae5" style="<?php echo $sStyleHidden_ae5; ?>;"><span id="id_label_ae5"><?php echo $this->nm_new_label['ae5']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_ae5" style="<?php echo $sStyleHidden_ae5; ?>;"><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["ae5"]) &&  $this->nmgp_cmp_readonly["ae5"] == "on") { 

 ?>
<input type=hidden name="ae5" value="<?php echo NM_encode_input($ae5) . "\">" . $ae5 . ""; ?>
<?php } else { ?>
<span id="id_read_on_ae5" class="sc-ui-readonly-ae5" style=";<?php echo $sStyleReadLab_ae5; ?>"><?php echo NM_encode_input($this->ae5); ?></span><span id="id_read_off_ae5" style="white-space: nowrap;<?php echo $sStyleReadInp_ae5; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_ae5" type=text name="ae5" value="<?php echo NM_encode_input($ae5) ?>"
 size=1 maxlength=1 alt="{datatype: 'text', maxLength: 1, 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_ae5_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_ae5_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 -->
</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]['dye_standdf_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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]['dye_standdf_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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 
      }
    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" && $this->nmgp_botoes['navpage'] == "on")
{
?> 
     <span nowrap id="sc_b_navpage_b" class="scFormToolbarPadding"></span> 
<?php 
}
    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;
    }
if ($opcao_botoes != "novo" && $this->nmgp_botoes['summary'] == "on")
{
?> 
     <span nowrap id="sc_b_summary_b" class="scFormToolbarPadding"></span> 
<?php 
}
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
?> 
     </td> 
     <td nowrap align="right" 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]['dye_standdf_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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]['dye_standdf_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['run_iframe'] != "F") { ?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_form']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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]['dye_standdf_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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]['dye_standdf_form']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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"></span>
        </td>
        <td>
            <span class="scFormFooterFont" id="rod_col2"><?php echo "application=dye_standdf_form" ?></span>
        </td>
    </tr>
</table><?php
  }
?>
<?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_sc_blocos_da_pag = array(0,1,2,3,4,5,6);

  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"];
  }
}
</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("dye_standdf_form");
 parent.scAjaxDetailHeight("dye_standdf_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("dye_standdf_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]['dye_standdf_form']['sc_modal']) && $_SESSION['sc_session'][$this->Ini->sc_page]['dye_standdf_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> 
