<?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("" . $this->Ini->Nm_lang['lang_othr_frmi_titl'] . " - samp"); } else { echo strip_tags("" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - samp"); } ?></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("sell_samp_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('sell_samp_form_jquery.php');

?>

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

  scJQElementsAdd('');

  scJQGeneralAdd();

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

  $(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 = {
  
 };

 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]['sell_samp_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['opc_ant'] = "novo";
    $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['recarga'] = "novo";
}
if (empty($_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['recarga']))
{
    $opcao_botoes = $this->nmgp_opcao;
}
else
{
    $opcao_botoes = $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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("sell_samp_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]['sell_samp_form']['run_iframe'] || 'R' == $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe']) ? 0 : "0px";
?>
<?php
$_SESSION['scriptcase']['error_span_title']['sell_samp_form'] = $this->Ini->Error_icon_span;
$_SESSION['scriptcase']['error_icon_title']['sell_samp_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]['sell_samp_form']['mostra_cab']) || $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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 "" . $this->Ini->Nm_lang['lang_othr_frmi_titl'] . " - samp"; } else { echo "" . $this->Ini->Nm_lang['lang_othr_frmu_titl'] . " - samp"; } ?></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]['sell_samp_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['fast_search'][0] : "";
          $OPC_arg = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['fast_search'][1] : "";
          $OPC_dat = (isset($_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['fast_search'])) ? $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['fast_search'][2] : "";
?> 
           <script type="text/javascript">var change_fast_t = "";</script>
          <input type="hidden" name="nmgp_fast_search_t" value="SC_all_Cmp">
          <input type="hidden" name="nmgp_cond_fast_search_t" value="qp">
          <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 
    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;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    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]['sell_samp_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['run_iframe'] == "F" || $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] == "R" || $this->aba_iframe || $this->nmgp_botoes['exit'] != "on") && ($_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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 ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sm" style="<?php echo $sStyleHidden_sm; ?>;"><span id="id_label_sm"><?php echo $this->nm_new_label['sm']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sm" style="<?php echo $sStyleHidden_sm; ?>;"><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["sm"]) &&  $this->nmgp_cmp_readonly["sm"] == "on") { 

 ?>
<input type=hidden name="sm" value="<?php echo NM_encode_input($sm) . "\">" . $sm . ""; ?>
<?php } else { ?>
<span id="id_read_on_sm" class="sc-ui-readonly-sm" style=";<?php echo $sStyleReadLab_sm; ?>"><?php echo NM_encode_input($this->sm); ?></span><span id="id_read_off_sm" style="white-space: nowrap;<?php echo $sStyleReadInp_sm; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_sm" type=text name="sm" value="<?php echo NM_encode_input($sm) ?>"
 size=7 maxlength=7 alt="{datatype: 'text', maxLength: 7, 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_sm_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sm_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['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" && */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></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" && isset($this->nmgp_cmp_readonly["date"]) &&  $this->nmgp_cmp_readonly["date"] == "on") { 

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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_p_o_number" style="<?php echo $sStyleHidden_p_o_number; ?>;"><span id="id_label_p_o_number"><?php echo $this->nm_new_label['p_o_number']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_p_o_number" style="<?php echo $sStyleHidden_p_o_number; ?>;"><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["p_o_number"]) &&  $this->nmgp_cmp_readonly["p_o_number"] == "on") { 

 ?>
<input type=hidden name="p_o_number" value="<?php echo NM_encode_input($p_o_number) . "\">" . $p_o_number . ""; ?>
<?php } else { ?>
<span id="id_read_on_p_o_number" class="sc-ui-readonly-p_o_number" style=";<?php echo $sStyleReadLab_p_o_number; ?>"><?php echo NM_encode_input($this->p_o_number); ?></span><span id="id_read_off_p_o_number" style="white-space: nowrap;<?php echo $sStyleReadInp_p_o_number; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_p_o_number" type=text name="p_o_number" value="<?php echo NM_encode_input($p_o_number) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_p_o_number_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_p_o_number_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['q1']))
    {
        $this->nm_new_label['q1'] = "Q1";
    }
?>
<?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);
   $q1 = $this->q1;
   $sStyleHidden_q1 = '';
   if (isset($this->nmgp_cmp_hidden['q1']) && $this->nmgp_cmp_hidden['q1'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['q1']);
       $sStyleHidden_q1 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_q1 = 'display: none;';
   $sStyleReadInp_q1 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['q1']) && $this->nmgp_cmp_readonly['q1'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['q1']);
       $sStyleReadLab_q1 = '';
       $sStyleReadInp_q1 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['q1']) && $this->nmgp_cmp_hidden['q1'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="q1" value="<?php echo NM_encode_input($q1) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_q1" style="<?php echo $sStyleHidden_q1; ?>;"><span id="id_label_q1"><?php echo $this->nm_new_label['q1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_q1" style="<?php echo $sStyleHidden_q1; ?>;"><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["q1"]) &&  $this->nmgp_cmp_readonly["q1"] == "on") { 

 ?>
<input type=hidden name="q1" value="<?php echo NM_encode_input($q1) . "\">" . $q1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_q1" class="sc-ui-readonly-q1" style=";<?php echo $sStyleReadLab_q1; ?>"><?php echo NM_encode_input($this->q1); ?></span><span id="id_read_off_q1" style="white-space: nowrap;<?php echo $sStyleReadInp_q1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_q1" type=text name="q1" value="<?php echo NM_encode_input($q1) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, 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_q1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_q1_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['scode']))
    {
        $this->nm_new_label['scode'] = "SCODE";
    }
?>
<?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);
   $scode = $this->scode;
   $sStyleHidden_scode = '';
   if (isset($this->nmgp_cmp_hidden['scode']) && $this->nmgp_cmp_hidden['scode'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['scode']);
       $sStyleHidden_scode = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_scode = 'display: none;';
   $sStyleReadInp_scode = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['scode']) && $this->nmgp_cmp_readonly['scode'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['scode']);
       $sStyleReadLab_scode = '';
       $sStyleReadInp_scode = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['scode']) && $this->nmgp_cmp_hidden['scode'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="scode" value="<?php echo NM_encode_input($scode) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_scode" style="<?php echo $sStyleHidden_scode; ?>;"><span id="id_label_scode"><?php echo $this->nm_new_label['scode']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_scode" style="<?php echo $sStyleHidden_scode; ?>;"><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["scode"]) &&  $this->nmgp_cmp_readonly["scode"] == "on") { 

 ?>
<input type=hidden name="scode" value="<?php echo NM_encode_input($scode) . "\">" . $scode . ""; ?>
<?php } else { ?>
<span id="id_read_on_scode" class="sc-ui-readonly-scode" style=";<?php echo $sStyleReadLab_scode; ?>"><?php echo NM_encode_input($this->scode); ?></span><span id="id_read_off_scode" style="white-space: nowrap;<?php echo $sStyleReadInp_scode; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_scode" type=text name="scode" value="<?php echo NM_encode_input($scode) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_scode_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_scode_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['po1']))
    {
        $this->nm_new_label['po1'] = "PO1";
    }
?>
<?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);
   $po1 = $this->po1;
   $sStyleHidden_po1 = '';
   if (isset($this->nmgp_cmp_hidden['po1']) && $this->nmgp_cmp_hidden['po1'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['po1']);
       $sStyleHidden_po1 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_po1 = 'display: none;';
   $sStyleReadInp_po1 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['po1']) && $this->nmgp_cmp_readonly['po1'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['po1']);
       $sStyleReadLab_po1 = '';
       $sStyleReadInp_po1 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['po1']) && $this->nmgp_cmp_hidden['po1'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="po1" value="<?php echo NM_encode_input($po1) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_po1" style="<?php echo $sStyleHidden_po1; ?>;"><span id="id_label_po1"><?php echo $this->nm_new_label['po1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_po1" style="<?php echo $sStyleHidden_po1; ?>;"><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["po1"]) &&  $this->nmgp_cmp_readonly["po1"] == "on") { 

 ?>
<input type=hidden name="po1" value="<?php echo NM_encode_input($po1) . "\">" . $po1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_po1" class="sc-ui-readonly-po1" style=";<?php echo $sStyleReadLab_po1; ?>"><?php echo NM_encode_input($this->po1); ?></span><span id="id_read_off_po1" style="white-space: nowrap;<?php echo $sStyleReadInp_po1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_po1" type=text name="po1" value="<?php echo NM_encode_input($po1) ?>"
 size=12 maxlength=12 alt="{datatype: 'text', maxLength: 12, 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_po1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_po1_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['via1']))
    {
        $this->nm_new_label['via1'] = "VIA1";
    }
?>
<?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);
   $via1 = $this->via1;
   $sStyleHidden_via1 = '';
   if (isset($this->nmgp_cmp_hidden['via1']) && $this->nmgp_cmp_hidden['via1'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['via1']);
       $sStyleHidden_via1 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_via1 = 'display: none;';
   $sStyleReadInp_via1 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['via1']) && $this->nmgp_cmp_readonly['via1'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['via1']);
       $sStyleReadLab_via1 = '';
       $sStyleReadInp_via1 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['via1']) && $this->nmgp_cmp_hidden['via1'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="via1" value="<?php echo NM_encode_input($via1) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_via1" style="<?php echo $sStyleHidden_via1; ?>;"><span id="id_label_via1"><?php echo $this->nm_new_label['via1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_via1" style="<?php echo $sStyleHidden_via1; ?>;"><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["via1"]) &&  $this->nmgp_cmp_readonly["via1"] == "on") { 

 ?>
<input type=hidden name="via1" value="<?php echo NM_encode_input($via1) . "\">" . $via1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_via1" class="sc-ui-readonly-via1" style=";<?php echo $sStyleReadLab_via1; ?>"><?php echo NM_encode_input($this->via1); ?></span><span id="id_read_off_via1" style="white-space: nowrap;<?php echo $sStyleReadInp_via1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_via1" type=text name="via1" value="<?php echo NM_encode_input($via1) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, 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_via1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_via1_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['odate']))
    {
        $this->nm_new_label['odate'] = "ODATE";
    }
?>
<?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);
   $odate = $this->odate;
   $sStyleHidden_odate = '';
   if (isset($this->nmgp_cmp_hidden['odate']) && $this->nmgp_cmp_hidden['odate'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['odate']);
       $sStyleHidden_odate = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_odate = 'display: none;';
   $sStyleReadInp_odate = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['odate']) && $this->nmgp_cmp_readonly['odate'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['odate']);
       $sStyleReadLab_odate = '';
       $sStyleReadInp_odate = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['odate']) && $this->nmgp_cmp_hidden['odate'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="odate" value="<?php echo NM_encode_input($odate) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_odate" style="<?php echo $sStyleHidden_odate; ?>;"><span id="id_label_odate"><?php echo $this->nm_new_label['odate']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_odate" style="<?php echo $sStyleHidden_odate; ?>;"><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["odate"]) &&  $this->nmgp_cmp_readonly["odate"] == "on") { 

 ?>
<input type=hidden name="odate" value="<?php echo NM_encode_input($odate) . "\">" . $odate . ""; ?>
<?php } else { ?>
<span id="id_read_on_odate" class="sc-ui-readonly-odate" style=";<?php echo $sStyleReadLab_odate; ?>"><?php echo NM_encode_input($this->odate); ?></span><span id="id_read_off_odate" style="white-space: nowrap;<?php echo $sStyleReadInp_odate; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_odate" type=text name="odate" value="<?php echo NM_encode_input($odate) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['odate']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['odate']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['odate']['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_odate_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_odate_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['bcode']))
    {
        $this->nm_new_label['bcode'] = "BCODE";
    }
?>
<?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);
   $bcode = $this->bcode;
   $sStyleHidden_bcode = '';
   if (isset($this->nmgp_cmp_hidden['bcode']) && $this->nmgp_cmp_hidden['bcode'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['bcode']);
       $sStyleHidden_bcode = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_bcode = 'display: none;';
   $sStyleReadInp_bcode = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['bcode']) && $this->nmgp_cmp_readonly['bcode'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['bcode']);
       $sStyleReadLab_bcode = '';
       $sStyleReadInp_bcode = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['bcode']) && $this->nmgp_cmp_hidden['bcode'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bcode" value="<?php echo NM_encode_input($bcode) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_bcode" style="<?php echo $sStyleHidden_bcode; ?>;"><span id="id_label_bcode"><?php echo $this->nm_new_label['bcode']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_bcode" style="<?php echo $sStyleHidden_bcode; ?>;"><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["bcode"]) &&  $this->nmgp_cmp_readonly["bcode"] == "on") { 

 ?>
<input type=hidden name="bcode" value="<?php echo NM_encode_input($bcode) . "\">" . $bcode . ""; ?>
<?php } else { ?>
<span id="id_read_on_bcode" class="sc-ui-readonly-bcode" style=";<?php echo $sStyleReadLab_bcode; ?>"><?php echo NM_encode_input($this->bcode); ?></span><span id="id_read_off_bcode" style="white-space: nowrap;<?php echo $sStyleReadInp_bcode; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_bcode" type=text name="bcode" value="<?php echo NM_encode_input($bcode) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_bcode_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bcode_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['rdate']))
    {
        $this->nm_new_label['rdate'] = "RDATE";
    }
?>
<?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);
   $rdate = $this->rdate;
   $sStyleHidden_rdate = '';
   if (isset($this->nmgp_cmp_hidden['rdate']) && $this->nmgp_cmp_hidden['rdate'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['rdate']);
       $sStyleHidden_rdate = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_rdate = 'display: none;';
   $sStyleReadInp_rdate = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['rdate']) && $this->nmgp_cmp_readonly['rdate'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['rdate']);
       $sStyleReadLab_rdate = '';
       $sStyleReadInp_rdate = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['rdate']) && $this->nmgp_cmp_hidden['rdate'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="rdate" value="<?php echo NM_encode_input($rdate) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_rdate" style="<?php echo $sStyleHidden_rdate; ?>;"><span id="id_label_rdate"><?php echo $this->nm_new_label['rdate']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_rdate" style="<?php echo $sStyleHidden_rdate; ?>;"><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["rdate"]) &&  $this->nmgp_cmp_readonly["rdate"] == "on") { 

 ?>
<input type=hidden name="rdate" value="<?php echo NM_encode_input($rdate) . "\">" . $rdate . ""; ?>
<?php } else { ?>
<span id="id_read_on_rdate" class="sc-ui-readonly-rdate" style=";<?php echo $sStyleReadLab_rdate; ?>"><?php echo NM_encode_input($this->rdate); ?></span><span id="id_read_off_rdate" style="white-space: nowrap;<?php echo $sStyleReadInp_rdate; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_rdate" type=text name="rdate" value="<?php echo NM_encode_input($rdate) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['rdate']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['rdate']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['rdate']['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_rdate_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_rdate_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['rtime']))
    {
        $this->nm_new_label['rtime'] = "RTIME";
    }
?>
<?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);
   $rtime = $this->rtime;
   $sStyleHidden_rtime = '';
   if (isset($this->nmgp_cmp_hidden['rtime']) && $this->nmgp_cmp_hidden['rtime'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['rtime']);
       $sStyleHidden_rtime = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_rtime = 'display: none;';
   $sStyleReadInp_rtime = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['rtime']) && $this->nmgp_cmp_readonly['rtime'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['rtime']);
       $sStyleReadLab_rtime = '';
       $sStyleReadInp_rtime = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['rtime']) && $this->nmgp_cmp_hidden['rtime'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="rtime" value="<?php echo NM_encode_input($rtime) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_rtime" style="<?php echo $sStyleHidden_rtime; ?>;"><span id="id_label_rtime"><?php echo $this->nm_new_label['rtime']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_rtime" style="<?php echo $sStyleHidden_rtime; ?>;"><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["rtime"]) &&  $this->nmgp_cmp_readonly["rtime"] == "on") { 

 ?>
<input type=hidden name="rtime" value="<?php echo NM_encode_input($rtime) . "\">" . $rtime . ""; ?>
<?php } else { ?>
<span id="id_read_on_rtime" class="sc-ui-readonly-rtime" style=";<?php echo $sStyleReadLab_rtime; ?>"><?php echo NM_encode_input($this->rtime); ?></span><span id="id_read_off_rtime" style="white-space: nowrap;<?php echo $sStyleReadInp_rtime; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_rtime" type=text name="rtime" value="<?php echo NM_encode_input($rtime) ?>"
 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_rtime_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_rtime_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['bl']))
    {
        $this->nm_new_label['bl'] = "BL";
    }
?>
<?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);
   $bl = $this->bl;
   $sStyleHidden_bl = '';
   if (isset($this->nmgp_cmp_hidden['bl']) && $this->nmgp_cmp_hidden['bl'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['bl']);
       $sStyleHidden_bl = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_bl = 'display: none;';
   $sStyleReadInp_bl = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['bl']) && $this->nmgp_cmp_readonly['bl'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['bl']);
       $sStyleReadLab_bl = '';
       $sStyleReadInp_bl = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['bl']) && $this->nmgp_cmp_hidden['bl'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="bl" value="<?php echo NM_encode_input($bl) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_bl" style="<?php echo $sStyleHidden_bl; ?>;"><span id="id_label_bl"><?php echo $this->nm_new_label['bl']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_bl" style="<?php echo $sStyleHidden_bl; ?>;"><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["bl"]) &&  $this->nmgp_cmp_readonly["bl"] == "on") { 

 ?>
<input type=hidden name="bl" value="<?php echo NM_encode_input($bl) . "\">" . $bl . ""; ?>
<?php } else { ?>
<span id="id_read_on_bl" class="sc-ui-readonly-bl" style=";<?php echo $sStyleReadLab_bl; ?>"><?php echo NM_encode_input($this->bl); ?></span><span id="id_read_off_bl" style="white-space: nowrap;<?php echo $sStyleReadInp_bl; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_bl" type=text name="bl" value="<?php echo NM_encode_input($bl) ?>"
 size=10 maxlength=10 alt="{datatype: 'text', maxLength: 10, 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_bl_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_bl_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['status']))
    {
        $this->nm_new_label['status'] = "STATUS";
    }
?>
<?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);
   $status = $this->status;
   $sStyleHidden_status = '';
   if (isset($this->nmgp_cmp_hidden['status']) && $this->nmgp_cmp_hidden['status'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['status']);
       $sStyleHidden_status = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_status = 'display: none;';
   $sStyleReadInp_status = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['status']) && $this->nmgp_cmp_readonly['status'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['status']);
       $sStyleReadLab_status = '';
       $sStyleReadInp_status = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['status']) && $this->nmgp_cmp_hidden['status'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="status" value="<?php echo NM_encode_input($status) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_status" style="<?php echo $sStyleHidden_status; ?>;"><span id="id_label_status"><?php echo $this->nm_new_label['status']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_status" style="<?php echo $sStyleHidden_status; ?>;"><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["status"]) &&  $this->nmgp_cmp_readonly["status"] == "on") { 

 ?>
<input type=hidden name="status" value="<?php echo NM_encode_input($status) . "\">" . $status . ""; ?>
<?php } else { ?>
<span id="id_read_on_status" class="sc-ui-readonly-status" style=";<?php echo $sStyleReadLab_status; ?>"><?php echo NM_encode_input($this->status); ?></span><span id="id_read_off_status" style="white-space: nowrap;<?php echo $sStyleReadInp_status; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_status" type=text name="status" value="<?php echo NM_encode_input($status) ?>"
 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_status_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_status_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['sdate']))
    {
        $this->nm_new_label['sdate'] = "SDATE";
    }
?>
<?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);
   $sdate = $this->sdate;
   $sStyleHidden_sdate = '';
   if (isset($this->nmgp_cmp_hidden['sdate']) && $this->nmgp_cmp_hidden['sdate'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['sdate']);
       $sStyleHidden_sdate = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_sdate = 'display: none;';
   $sStyleReadInp_sdate = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['sdate']) && $this->nmgp_cmp_readonly['sdate'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['sdate']);
       $sStyleReadLab_sdate = '';
       $sStyleReadInp_sdate = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['sdate']) && $this->nmgp_cmp_hidden['sdate'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="sdate" value="<?php echo NM_encode_input($sdate) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sdate" style="<?php echo $sStyleHidden_sdate; ?>;"><span id="id_label_sdate"><?php echo $this->nm_new_label['sdate']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sdate" style="<?php echo $sStyleHidden_sdate; ?>;"><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["sdate"]) &&  $this->nmgp_cmp_readonly["sdate"] == "on") { 

 ?>
<input type=hidden name="sdate" value="<?php echo NM_encode_input($sdate) . "\">" . $sdate . ""; ?>
<?php } else { ?>
<span id="id_read_on_sdate" class="sc-ui-readonly-sdate" style=";<?php echo $sStyleReadLab_sdate; ?>"><?php echo NM_encode_input($this->sdate); ?></span><span id="id_read_off_sdate" style="white-space: nowrap;<?php echo $sStyleReadInp_sdate; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_sdate" type=text name="sdate" value="<?php echo NM_encode_input($sdate) ?>"
 size=10 alt="{datatype: 'date', dateSep: '<?php echo $this->field_config['sdate']['date_sep']; ?>', dateFormat: '<?php echo $this->field_config['sdate']['date_format']; ?>', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"><?php
$tmp_form_data = $this->field_config['sdate']['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_sdate_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sdate_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['stime']))
    {
        $this->nm_new_label['stime'] = "STIME";
    }
?>
<?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);
   $stime = $this->stime;
   $sStyleHidden_stime = '';
   if (isset($this->nmgp_cmp_hidden['stime']) && $this->nmgp_cmp_hidden['stime'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['stime']);
       $sStyleHidden_stime = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_stime = 'display: none;';
   $sStyleReadInp_stime = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['stime']) && $this->nmgp_cmp_readonly['stime'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['stime']);
       $sStyleReadLab_stime = '';
       $sStyleReadInp_stime = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['stime']) && $this->nmgp_cmp_hidden['stime'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="stime" value="<?php echo NM_encode_input($stime) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_stime" style="<?php echo $sStyleHidden_stime; ?>;"><span id="id_label_stime"><?php echo $this->nm_new_label['stime']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_stime" style="<?php echo $sStyleHidden_stime; ?>;"><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["stime"]) &&  $this->nmgp_cmp_readonly["stime"] == "on") { 

 ?>
<input type=hidden name="stime" value="<?php echo NM_encode_input($stime) . "\">" . $stime . ""; ?>
<?php } else { ?>
<span id="id_read_on_stime" class="sc-ui-readonly-stime" style=";<?php echo $sStyleReadLab_stime; ?>"><?php echo NM_encode_input($this->stime); ?></span><span id="id_read_off_stime" style="white-space: nowrap;<?php echo $sStyleReadInp_stime; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_stime" type=text name="stime" value="<?php echo NM_encode_input($stime) ?>"
 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_stime_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_stime_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['spoke']))
    {
        $this->nm_new_label['spoke'] = "SPOKE";
    }
?>
<?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);
   $spoke = $this->spoke;
   $sStyleHidden_spoke = '';
   if (isset($this->nmgp_cmp_hidden['spoke']) && $this->nmgp_cmp_hidden['spoke'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['spoke']);
       $sStyleHidden_spoke = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_spoke = 'display: none;';
   $sStyleReadInp_spoke = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['spoke']) && $this->nmgp_cmp_readonly['spoke'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['spoke']);
       $sStyleReadLab_spoke = '';
       $sStyleReadInp_spoke = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['spoke']) && $this->nmgp_cmp_hidden['spoke'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="spoke" value="<?php echo NM_encode_input($spoke) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_spoke" style="<?php echo $sStyleHidden_spoke; ?>;"><span id="id_label_spoke"><?php echo $this->nm_new_label['spoke']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_spoke" style="<?php echo $sStyleHidden_spoke; ?>;"><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["spoke"]) &&  $this->nmgp_cmp_readonly["spoke"] == "on") { 

 ?>
<input type=hidden name="spoke" value="<?php echo NM_encode_input($spoke) . "\">" . $spoke . ""; ?>
<?php } else { ?>
<span id="id_read_on_spoke" class="sc-ui-readonly-spoke" style=";<?php echo $sStyleReadLab_spoke; ?>"><?php echo NM_encode_input($this->spoke); ?></span><span id="id_read_off_spoke" style="white-space: nowrap;<?php echo $sStyleReadInp_spoke; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_spoke" type=text name="spoke" value="<?php echo NM_encode_input($spoke) ?>"
 size=15 maxlength=15 alt="{datatype: 'text', maxLength: 15, 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_spoke_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_spoke_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['pro']))
    {
        $this->nm_new_label['pro'] = "PRO";
    }
?>
<?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);
   $pro = $this->pro;
   $sStyleHidden_pro = '';
   if (isset($this->nmgp_cmp_hidden['pro']) && $this->nmgp_cmp_hidden['pro'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['pro']);
       $sStyleHidden_pro = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_pro = 'display: none;';
   $sStyleReadInp_pro = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['pro']) && $this->nmgp_cmp_readonly['pro'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['pro']);
       $sStyleReadLab_pro = '';
       $sStyleReadInp_pro = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['pro']) && $this->nmgp_cmp_hidden['pro'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="pro" value="<?php echo NM_encode_input($pro) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_pro" style="<?php echo $sStyleHidden_pro; ?>;"><span id="id_label_pro"><?php echo $this->nm_new_label['pro']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_pro" style="<?php echo $sStyleHidden_pro; ?>;"><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["pro"]) &&  $this->nmgp_cmp_readonly["pro"] == "on") { 

 ?>
<input type=hidden name="pro" value="<?php echo NM_encode_input($pro) . "\">" . $pro . ""; ?>
<?php } else { ?>
<span id="id_read_on_pro" class="sc-ui-readonly-pro" style=";<?php echo $sStyleReadLab_pro; ?>"><?php echo NM_encode_input($this->pro); ?></span><span id="id_read_off_pro" style="white-space: nowrap;<?php echo $sStyleReadInp_pro; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_pro" type=text name="pro" value="<?php echo NM_encode_input($pro) ?>"
 size=18 maxlength=18 alt="{datatype: 'text', maxLength: 18, 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_pro_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_pro_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['from']))
    {
        $this->nm_new_label['from'] = "FROM";
    }
?>
<?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);
   $from = $this->from;
   $sStyleHidden_from = '';
   if (isset($this->nmgp_cmp_hidden['from']) && $this->nmgp_cmp_hidden['from'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['from']);
       $sStyleHidden_from = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_from = 'display: none;';
   $sStyleReadInp_from = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['from']) && $this->nmgp_cmp_readonly['from'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['from']);
       $sStyleReadLab_from = '';
       $sStyleReadInp_from = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['from']) && $this->nmgp_cmp_hidden['from'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="from" value="<?php echo NM_encode_input($from) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_from" style="<?php echo $sStyleHidden_from; ?>;"><span id="id_label_from"><?php echo $this->nm_new_label['from']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_from" style="<?php echo $sStyleHidden_from; ?>;"><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["from"]) &&  $this->nmgp_cmp_readonly["from"] == "on") { 

 ?>
<input type=hidden name="from" value="<?php echo NM_encode_input($from) . "\">" . $from . ""; ?>
<?php } else { ?>
<span id="id_read_on_from" class="sc-ui-readonly-from" style=";<?php echo $sStyleReadLab_from; ?>"><?php echo NM_encode_input($this->from); ?></span><span id="id_read_off_from" style="white-space: nowrap;<?php echo $sStyleReadInp_from; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_from" type=text name="from" value="<?php echo NM_encode_input($from) ?>"
 size=4 maxlength=4 alt="{datatype: 'text', maxLength: 4, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}"></span><?php } ?>
</td></tr><tr><td style="vertical-align: top; padding: 1px 0px 0px 0px"><table class="scFormFieldErrorTable" style="display: none" id="id_error_display_from_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_from_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['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=3 maxlength=3 alt="{datatype: 'text', maxLength: 3, 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 } 
?> 
<?php if ($sc_hidden_no > 0) { echo "<tr>"; }; 
      $sc_hidden_yes = 0; $sc_hidden_no = 0; ?>


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

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_comment" style="<?php echo $sStyleHidden_comment; ?>;"><span id="id_label_comment"><?php echo $this->nm_new_label['comment']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_comment" style="<?php echo $sStyleHidden_comment; ?>;"><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["comment"]) &&  $this->nmgp_cmp_readonly["comment"] == "on") { 

 ?>
<input type=hidden name="comment" value="<?php echo NM_encode_input($comment) . "\">" . $comment . ""; ?>
<?php } else { ?>
<span id="id_read_on_comment" class="sc-ui-readonly-comment" style=";<?php echo $sStyleReadLab_comment; ?>"><?php echo NM_encode_input($this->comment); ?></span><span id="id_read_off_comment" style="white-space: nowrap;<?php echo $sStyleReadInp_comment; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_comment" type=text name="comment" value="<?php echo NM_encode_input($comment) ?>"
 size=35 maxlength=35 alt="{datatype: 'text', maxLength: 35, 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_comment_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_comment_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['st1']))
    {
        $this->nm_new_label['st1'] = "ST1";
    }
?>
<?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);
   $st1 = $this->st1;
   $sStyleHidden_st1 = '';
   if (isset($this->nmgp_cmp_hidden['st1']) && $this->nmgp_cmp_hidden['st1'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['st1']);
       $sStyleHidden_st1 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_st1 = 'display: none;';
   $sStyleReadInp_st1 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['st1']) && $this->nmgp_cmp_readonly['st1'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['st1']);
       $sStyleReadLab_st1 = '';
       $sStyleReadInp_st1 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['st1']) && $this->nmgp_cmp_hidden['st1'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="st1" value="<?php echo NM_encode_input($st1) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_st1" style="<?php echo $sStyleHidden_st1; ?>;"><span id="id_label_st1"><?php echo $this->nm_new_label['st1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_st1" style="<?php echo $sStyleHidden_st1; ?>;"><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["st1"]) &&  $this->nmgp_cmp_readonly["st1"] == "on") { 

 ?>
<input type=hidden name="st1" value="<?php echo NM_encode_input($st1) . "\">" . $st1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_st1" class="sc-ui-readonly-st1" style=";<?php echo $sStyleReadLab_st1; ?>"><?php echo NM_encode_input($this->st1); ?></span><span id="id_read_off_st1" style="white-space: nowrap;<?php echo $sStyleReadInp_st1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_st1" type=text name="st1" value="<?php echo NM_encode_input($st1) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_st1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_st1_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['st2']))
    {
        $this->nm_new_label['st2'] = "ST2";
    }
?>
<?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);
   $st2 = $this->st2;
   $sStyleHidden_st2 = '';
   if (isset($this->nmgp_cmp_hidden['st2']) && $this->nmgp_cmp_hidden['st2'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['st2']);
       $sStyleHidden_st2 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_st2 = 'display: none;';
   $sStyleReadInp_st2 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['st2']) && $this->nmgp_cmp_readonly['st2'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['st2']);
       $sStyleReadLab_st2 = '';
       $sStyleReadInp_st2 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['st2']) && $this->nmgp_cmp_hidden['st2'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="st2" value="<?php echo NM_encode_input($st2) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_st2" style="<?php echo $sStyleHidden_st2; ?>;"><span id="id_label_st2"><?php echo $this->nm_new_label['st2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_st2" style="<?php echo $sStyleHidden_st2; ?>;"><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["st2"]) &&  $this->nmgp_cmp_readonly["st2"] == "on") { 

 ?>
<input type=hidden name="st2" value="<?php echo NM_encode_input($st2) . "\">" . $st2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_st2" class="sc-ui-readonly-st2" style=";<?php echo $sStyleReadLab_st2; ?>"><?php echo NM_encode_input($this->st2); ?></span><span id="id_read_off_st2" style="white-space: nowrap;<?php echo $sStyleReadInp_st2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_st2" type=text name="st2" value="<?php echo NM_encode_input($st2) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_st2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_st2_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['st3']))
    {
        $this->nm_new_label['st3'] = "ST3";
    }
?>
<?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);
   $st3 = $this->st3;
   $sStyleHidden_st3 = '';
   if (isset($this->nmgp_cmp_hidden['st3']) && $this->nmgp_cmp_hidden['st3'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['st3']);
       $sStyleHidden_st3 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_st3 = 'display: none;';
   $sStyleReadInp_st3 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['st3']) && $this->nmgp_cmp_readonly['st3'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['st3']);
       $sStyleReadLab_st3 = '';
       $sStyleReadInp_st3 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['st3']) && $this->nmgp_cmp_hidden['st3'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="st3" value="<?php echo NM_encode_input($st3) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_st3" style="<?php echo $sStyleHidden_st3; ?>;"><span id="id_label_st3"><?php echo $this->nm_new_label['st3']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_st3" style="<?php echo $sStyleHidden_st3; ?>;"><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["st3"]) &&  $this->nmgp_cmp_readonly["st3"] == "on") { 

 ?>
<input type=hidden name="st3" value="<?php echo NM_encode_input($st3) . "\">" . $st3 . ""; ?>
<?php } else { ?>
<span id="id_read_on_st3" class="sc-ui-readonly-st3" style=";<?php echo $sStyleReadLab_st3; ?>"><?php echo NM_encode_input($this->st3); ?></span><span id="id_read_off_st3" style="white-space: nowrap;<?php echo $sStyleReadInp_st3; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_st3" type=text name="st3" value="<?php echo NM_encode_input($st3) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_st3_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_st3_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['st4']))
    {
        $this->nm_new_label['st4'] = "ST4";
    }
?>
<?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);
   $st4 = $this->st4;
   $sStyleHidden_st4 = '';
   if (isset($this->nmgp_cmp_hidden['st4']) && $this->nmgp_cmp_hidden['st4'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['st4']);
       $sStyleHidden_st4 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_st4 = 'display: none;';
   $sStyleReadInp_st4 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['st4']) && $this->nmgp_cmp_readonly['st4'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['st4']);
       $sStyleReadLab_st4 = '';
       $sStyleReadInp_st4 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['st4']) && $this->nmgp_cmp_hidden['st4'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="st4" value="<?php echo NM_encode_input($st4) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_st4" style="<?php echo $sStyleHidden_st4; ?>;"><span id="id_label_st4"><?php echo $this->nm_new_label['st4']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_st4" style="<?php echo $sStyleHidden_st4; ?>;"><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["st4"]) &&  $this->nmgp_cmp_readonly["st4"] == "on") { 

 ?>
<input type=hidden name="st4" value="<?php echo NM_encode_input($st4) . "\">" . $st4 . ""; ?>
<?php } else { ?>
<span id="id_read_on_st4" class="sc-ui-readonly-st4" style=";<?php echo $sStyleReadLab_st4; ?>"><?php echo NM_encode_input($this->st4); ?></span><span id="id_read_off_st4" style="white-space: nowrap;<?php echo $sStyleReadInp_st4; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_st4" type=text name="st4" value="<?php echo NM_encode_input($st4) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_st4_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_st4_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['st5']))
    {
        $this->nm_new_label['st5'] = "ST5";
    }
?>
<?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);
   $st5 = $this->st5;
   $sStyleHidden_st5 = '';
   if (isset($this->nmgp_cmp_hidden['st5']) && $this->nmgp_cmp_hidden['st5'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['st5']);
       $sStyleHidden_st5 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_st5 = 'display: none;';
   $sStyleReadInp_st5 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['st5']) && $this->nmgp_cmp_readonly['st5'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['st5']);
       $sStyleReadLab_st5 = '';
       $sStyleReadInp_st5 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['st5']) && $this->nmgp_cmp_hidden['st5'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="st5" value="<?php echo NM_encode_input($st5) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_st5" style="<?php echo $sStyleHidden_st5; ?>;"><span id="id_label_st5"><?php echo $this->nm_new_label['st5']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_st5" style="<?php echo $sStyleHidden_st5; ?>;"><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["st5"]) &&  $this->nmgp_cmp_readonly["st5"] == "on") { 

 ?>
<input type=hidden name="st5" value="<?php echo NM_encode_input($st5) . "\">" . $st5 . ""; ?>
<?php } else { ?>
<span id="id_read_on_st5" class="sc-ui-readonly-st5" style=";<?php echo $sStyleReadLab_st5; ?>"><?php echo NM_encode_input($this->st5); ?></span><span id="id_read_off_st5" style="white-space: nowrap;<?php echo $sStyleReadInp_st5; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_st5" type=text name="st5" value="<?php echo NM_encode_input($st5) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_st5_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_st5_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['sl1']))
    {
        $this->nm_new_label['sl1'] = "SL1";
    }
?>
<?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);
   $sl1 = $this->sl1;
   $sStyleHidden_sl1 = '';
   if (isset($this->nmgp_cmp_hidden['sl1']) && $this->nmgp_cmp_hidden['sl1'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['sl1']);
       $sStyleHidden_sl1 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_sl1 = 'display: none;';
   $sStyleReadInp_sl1 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['sl1']) && $this->nmgp_cmp_readonly['sl1'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['sl1']);
       $sStyleReadLab_sl1 = '';
       $sStyleReadInp_sl1 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['sl1']) && $this->nmgp_cmp_hidden['sl1'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="sl1" value="<?php echo NM_encode_input($sl1) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sl1" style="<?php echo $sStyleHidden_sl1; ?>;"><span id="id_label_sl1"><?php echo $this->nm_new_label['sl1']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sl1" style="<?php echo $sStyleHidden_sl1; ?>;"><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["sl1"]) &&  $this->nmgp_cmp_readonly["sl1"] == "on") { 

 ?>
<input type=hidden name="sl1" value="<?php echo NM_encode_input($sl1) . "\">" . $sl1 . ""; ?>
<?php } else { ?>
<span id="id_read_on_sl1" class="sc-ui-readonly-sl1" style=";<?php echo $sStyleReadLab_sl1; ?>"><?php echo NM_encode_input($this->sl1); ?></span><span id="id_read_off_sl1" style="white-space: nowrap;<?php echo $sStyleReadInp_sl1; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_sl1" type=text name="sl1" value="<?php echo NM_encode_input($sl1) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_sl1_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sl1_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['sl2']))
    {
        $this->nm_new_label['sl2'] = "SL2";
    }
?>
<?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);
   $sl2 = $this->sl2;
   $sStyleHidden_sl2 = '';
   if (isset($this->nmgp_cmp_hidden['sl2']) && $this->nmgp_cmp_hidden['sl2'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['sl2']);
       $sStyleHidden_sl2 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_sl2 = 'display: none;';
   $sStyleReadInp_sl2 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['sl2']) && $this->nmgp_cmp_readonly['sl2'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['sl2']);
       $sStyleReadLab_sl2 = '';
       $sStyleReadInp_sl2 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['sl2']) && $this->nmgp_cmp_hidden['sl2'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="sl2" value="<?php echo NM_encode_input($sl2) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sl2" style="<?php echo $sStyleHidden_sl2; ?>;"><span id="id_label_sl2"><?php echo $this->nm_new_label['sl2']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sl2" style="<?php echo $sStyleHidden_sl2; ?>;"><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["sl2"]) &&  $this->nmgp_cmp_readonly["sl2"] == "on") { 

 ?>
<input type=hidden name="sl2" value="<?php echo NM_encode_input($sl2) . "\">" . $sl2 . ""; ?>
<?php } else { ?>
<span id="id_read_on_sl2" class="sc-ui-readonly-sl2" style=";<?php echo $sStyleReadLab_sl2; ?>"><?php echo NM_encode_input($this->sl2); ?></span><span id="id_read_off_sl2" style="white-space: nowrap;<?php echo $sStyleReadInp_sl2; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_sl2" type=text name="sl2" value="<?php echo NM_encode_input($sl2) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_sl2_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sl2_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['sl3']))
    {
        $this->nm_new_label['sl3'] = "SL3";
    }
?>
<?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);
   $sl3 = $this->sl3;
   $sStyleHidden_sl3 = '';
   if (isset($this->nmgp_cmp_hidden['sl3']) && $this->nmgp_cmp_hidden['sl3'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['sl3']);
       $sStyleHidden_sl3 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_sl3 = 'display: none;';
   $sStyleReadInp_sl3 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['sl3']) && $this->nmgp_cmp_readonly['sl3'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['sl3']);
       $sStyleReadLab_sl3 = '';
       $sStyleReadInp_sl3 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['sl3']) && $this->nmgp_cmp_hidden['sl3'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="sl3" value="<?php echo NM_encode_input($sl3) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sl3" style="<?php echo $sStyleHidden_sl3; ?>;"><span id="id_label_sl3"><?php echo $this->nm_new_label['sl3']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sl3" style="<?php echo $sStyleHidden_sl3; ?>;"><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["sl3"]) &&  $this->nmgp_cmp_readonly["sl3"] == "on") { 

 ?>
<input type=hidden name="sl3" value="<?php echo NM_encode_input($sl3) . "\">" . $sl3 . ""; ?>
<?php } else { ?>
<span id="id_read_on_sl3" class="sc-ui-readonly-sl3" style=";<?php echo $sStyleReadLab_sl3; ?>"><?php echo NM_encode_input($this->sl3); ?></span><span id="id_read_off_sl3" style="white-space: nowrap;<?php echo $sStyleReadInp_sl3; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_sl3" type=text name="sl3" value="<?php echo NM_encode_input($sl3) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_sl3_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sl3_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['sl4']))
    {
        $this->nm_new_label['sl4'] = "SL4";
    }
?>
<?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);
   $sl4 = $this->sl4;
   $sStyleHidden_sl4 = '';
   if (isset($this->nmgp_cmp_hidden['sl4']) && $this->nmgp_cmp_hidden['sl4'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['sl4']);
       $sStyleHidden_sl4 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_sl4 = 'display: none;';
   $sStyleReadInp_sl4 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['sl4']) && $this->nmgp_cmp_readonly['sl4'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['sl4']);
       $sStyleReadLab_sl4 = '';
       $sStyleReadInp_sl4 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['sl4']) && $this->nmgp_cmp_hidden['sl4'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="sl4" value="<?php echo NM_encode_input($sl4) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sl4" style="<?php echo $sStyleHidden_sl4; ?>;"><span id="id_label_sl4"><?php echo $this->nm_new_label['sl4']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sl4" style="<?php echo $sStyleHidden_sl4; ?>;"><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["sl4"]) &&  $this->nmgp_cmp_readonly["sl4"] == "on") { 

 ?>
<input type=hidden name="sl4" value="<?php echo NM_encode_input($sl4) . "\">" . $sl4 . ""; ?>
<?php } else { ?>
<span id="id_read_on_sl4" class="sc-ui-readonly-sl4" style=";<?php echo $sStyleReadLab_sl4; ?>"><?php echo NM_encode_input($this->sl4); ?></span><span id="id_read_off_sl4" style="white-space: nowrap;<?php echo $sStyleReadInp_sl4; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_sl4" type=text name="sl4" value="<?php echo NM_encode_input($sl4) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_sl4_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sl4_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['sl5']))
    {
        $this->nm_new_label['sl5'] = "SL5";
    }
?>
<?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);
   $sl5 = $this->sl5;
   $sStyleHidden_sl5 = '';
   if (isset($this->nmgp_cmp_hidden['sl5']) && $this->nmgp_cmp_hidden['sl5'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['sl5']);
       $sStyleHidden_sl5 = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_sl5 = 'display: none;';
   $sStyleReadInp_sl5 = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['sl5']) && $this->nmgp_cmp_readonly['sl5'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['sl5']);
       $sStyleReadLab_sl5 = '';
       $sStyleReadInp_sl5 = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['sl5']) && $this->nmgp_cmp_hidden['sl5'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="sl5" value="<?php echo NM_encode_input($sl5) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_sl5" style="<?php echo $sStyleHidden_sl5; ?>;"><span id="id_label_sl5"><?php echo $this->nm_new_label['sl5']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_sl5" style="<?php echo $sStyleHidden_sl5; ?>;"><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["sl5"]) &&  $this->nmgp_cmp_readonly["sl5"] == "on") { 

 ?>
<input type=hidden name="sl5" value="<?php echo NM_encode_input($sl5) . "\">" . $sl5 . ""; ?>
<?php } else { ?>
<span id="id_read_on_sl5" class="sc-ui-readonly-sl5" style=";<?php echo $sStyleReadLab_sl5; ?>"><?php echo NM_encode_input($this->sl5); ?></span><span id="id_read_off_sl5" style="white-space: nowrap;<?php echo $sStyleReadInp_sl5; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_sl5" type=text name="sl5" value="<?php echo NM_encode_input($sl5) ?>"
 size=26 maxlength=26 alt="{datatype: 'text', maxLength: 26, 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_sl5_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_sl5_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['memo']))
    {
        $this->nm_new_label['memo'] = "MEMO";
    }
?>
<?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);
   $memo = $this->memo;
   $sStyleHidden_memo = '';
   if (isset($this->nmgp_cmp_hidden['memo']) && $this->nmgp_cmp_hidden['memo'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['memo']);
       $sStyleHidden_memo = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_memo = 'display: none;';
   $sStyleReadInp_memo = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['memo']) && $this->nmgp_cmp_readonly['memo'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['memo']);
       $sStyleReadLab_memo = '';
       $sStyleReadInp_memo = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['memo']) && $this->nmgp_cmp_hidden['memo'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="memo" value="<?php echo NM_encode_input($memo) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_memo" style="<?php echo $sStyleHidden_memo; ?>;"><span id="id_label_memo"><?php echo $this->nm_new_label['memo']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_memo" style="<?php echo $sStyleHidden_memo; ?>;"><table style="border-width: 0px; border-collapse: collapse; width: 100%"><tr><td  class="scFormDataFontOdd" style=";;vertical-align: top;padding: 0px">
<?php
$memo_val = str_replace('<br />', '__SC_BREAK_LINE__', nl2br($memo));

?>

<?php if ($bTestReadOnly && $this->nmgp_opcao != "novo" && isset($this->nmgp_cmp_readonly["memo"]) &&  $this->nmgp_cmp_readonly["memo"] == "on") { 

 ?>
<input type=hidden name="memo" value="<?php echo NM_encode_input($memo) . "\">" . $memo_val . ""; ?>
<?php } else { ?>
<span id="id_read_on_memo" class="sc-ui-readonly-memo" style=";<?php echo $sStyleReadLab_memo; ?>"><?php echo NM_encode_input($memo_val); ?></span><span id="id_read_off_memo" style="white-space: nowrap;<?php echo $sStyleReadInp_memo; ?>">
 <textarea  class="sc-js-input scFormObjectOdd" style=";" name="memo" id="id_sc_field_memo" rows=2 cols=50
 alt="{datatype: 'text', maxLength: 32767, allowedChars: '', lettersCase: '', enterTab: false, enterSubmit: false, autoTab: false, selectOnFocus: true, watermark: '', watermarkClass: 'scFormObjectOddWm', maskChars: '(){}[].,;:-+/ '}">
<?php echo str_replace(array('\r\n', '\n\r', '\n', '\r'), array("\r\n", "\n\r", "\n", "\r"), $memo); ?>
</textarea>
</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_memo_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_memo_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['raddress']))
    {
        $this->nm_new_label['raddress'] = "RADDRESS";
    }
?>
<?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);
   $raddress = $this->raddress;
   $sStyleHidden_raddress = '';
   if (isset($this->nmgp_cmp_hidden['raddress']) && $this->nmgp_cmp_hidden['raddress'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['raddress']);
       $sStyleHidden_raddress = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_raddress = 'display: none;';
   $sStyleReadInp_raddress = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['raddress']) && $this->nmgp_cmp_readonly['raddress'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['raddress']);
       $sStyleReadLab_raddress = '';
       $sStyleReadInp_raddress = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['raddress']) && $this->nmgp_cmp_hidden['raddress'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="raddress" value="<?php echo NM_encode_input($raddress) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_raddress" style="<?php echo $sStyleHidden_raddress; ?>;"><span id="id_label_raddress"><?php echo $this->nm_new_label['raddress']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_raddress" style="<?php echo $sStyleHidden_raddress; ?>;"><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["raddress"]) &&  $this->nmgp_cmp_readonly["raddress"] == "on") { 

 ?>
<input type=hidden name="raddress" value="<?php echo NM_encode_input($raddress) . "\">" . $raddress . ""; ?>
<?php } else { ?>
<span id="id_read_on_raddress" class="sc-ui-readonly-raddress" style=";<?php echo $sStyleReadLab_raddress; ?>"><?php echo NM_encode_input($this->raddress); ?></span><span id="id_read_off_raddress" style="white-space: nowrap;<?php echo $sStyleReadInp_raddress; ?>">
 <input class="sc-js-input scFormObjectOdd" style=";" id="id_sc_field_raddress" type=text name="raddress" value="<?php echo NM_encode_input($raddress) ?>"
 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_raddress_frame"><tr><td class="scFormFieldErrorMessage"><span id="id_error_display_raddress_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['account']))
    {
        $this->nm_new_label['account'] = "ACCOUNT";
    }
?>
<?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);
   $account = $this->account;
   $sStyleHidden_account = '';
   if (isset($this->nmgp_cmp_hidden['account']) && $this->nmgp_cmp_hidden['account'] == 'off')
   {
       unset($this->nmgp_cmp_hidden['account']);
       $sStyleHidden_account = 'display: none;';
   }
   $bTestReadOnly = true;
   $sStyleReadLab_account = 'display: none;';
   $sStyleReadInp_account = '';
   if (/*$this->nmgp_opcao != "novo" && */isset($this->nmgp_cmp_readonly['account']) && $this->nmgp_cmp_readonly['account'] == 'on')
   {
       $bTestReadOnly = false;
       unset($this->nmgp_cmp_readonly['account']);
       $sStyleReadLab_account = '';
       $sStyleReadInp_account = 'display: none;';
   }
?>
<?php if (isset($this->nmgp_cmp_hidden['account']) && $this->nmgp_cmp_hidden['account'] == 'off') { $sc_hidden_yes++;  ?>
<input type=hidden name="account" value="<?php echo NM_encode_input($account) . "\">"; ?>
<?php } else { $sc_hidden_no++; ?>

    <TD class="scFormLabelOdd scUiLabelWidthFix" id="hidden_field_label_account" style="<?php echo $sStyleHidden_account; ?>;"><span id="id_label_account"><?php echo $this->nm_new_label['account']; ?></span></TD>
    <TD class="scFormDataOdd" id="hidden_field_data_account" style="<?php echo $sStyleHidden_account; ?>;"><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["account"]) &&  $this->nmgp_cmp_readonly["account"] == "on") { 

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


<?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>
<?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]['sell_samp_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "R")
{
    $NM_btn = false;
      if ($opcao_botoes != "novo" && $this->nmgp_botoes['goto'] == "on")
      {
        $sCondStyle = '';
?>
       <?php echo nmButtonOutput($this->arr_buttons, "birpara", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", " nm_navpage(document.F1.nmgp_rec_b.value, 'P');document.F1.nmgp_rec_b.value = ''", "brec_b", "", "", "" . $sCondStyle . "", "", "", "", $this->Ini->path_botoes, "", "", "", "");?>
 
<?php
?> 
   <input type="text" class="scFormToolbarInput" name="nmgp_rec_b" value="" style="width:25px;vertical-align: middle;"/> 
<?php 
      }
?> 
     </td> 
     <td nowrap align="center" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
    if ($opcao_botoes != "novo") {
        $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;
    }
?> 
     </td> 
     <td nowrap align="right" valign="middle" width="33%" class="scFormToolbarPadding"> 
<?php 
if ($opcao_botoes != "novo" && $this->nmgp_botoes['summary'] == "on")
{
?> 
     <span nowrap id="sc_b_summary_b" class="scFormToolbarPadding"></span> 
<?php 
}
}
if (($this->Embutida_form || !$this->Embutida_call || $this->Grid_editavel || $this->Embutida_multi || ($this->Embutida_call && 'on' == $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['embutida_liga_form_btn_nav'])) && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "F" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "F") { ?><script>summary_atualiza(<?php echo ($_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['reg_start'] + 1). ", " . $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['reg_qtd'] . ", " . ($_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_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]['sell_samp_form']['run_iframe'] != "R" && $_SESSION['sc_session'][$this->Ini->sc_page]['sell_samp_form']['run_iframe'] != "F") { ?><script>navpage_atualiza('<?php echo $this->SC_nav_page ?>');</script><?php } ?>
</td></tr> 
<?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);

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