<form name="F2" method=post 
               action="./" 
               target="_self"> 
<input type=hidden name="style" value="<?php echo NM_encode_input($this->nmgp_dados_form['style']); ?>">
<input type=hidden name="id2" value="<?php echo NM_encode_input($this->nmgp_dados_form['id2']); ?>">
<input type=hidden name="nm_form_submit" value="1">
<input type=hidden name="nmgp_opcao" value="">
<input type=hidden name="master_nav" value="off">
<input type=hidden name="sc_ifr_height" value="">
<input type="hidden" name="nmgp_parms" value=""/>
<input type="hidden" name="nmgp_ordem" value=""/>
<input type="hidden" name="nmgp_clone" value=""/>
<input type="hidden" name="nmgp_fast_search" value=""/>
<input type="hidden" name="nmgp_cond_fast_search" value=""/>
<input type="hidden" name="nmgp_arg_fast_search" 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()); ?>"> 
</form> 
<form name="F3" method="post" 
                  target="_self"> 
  <input type="hidden" name="nmgp_chave" value=""/>
  <input type="hidden" name="nmgp_opcao" value=""/>
  <input type="hidden" name="nmgp_ordem" value=""/>
  <input type="hidden" name="nmgp_chave_det" value=""/>
  <input type="hidden" name="nmgp_quant_linhas" value=""/>
  <input type="hidden" name="nmgp_url_saida" value=""/>
  <input type="hidden" name="nmgp_parms" value=""/>
  <input type="hidden" name="nmgp_outra_jan" 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()); ?>"> 
</form> 
<form name="F5" method="post" 
                  action="./" 
                  target="_self"> 
  <input type="hidden" name="nmgp_opcao" value="<?php if ($this->nm_Start_new) {echo "ini";} elseif ($this->sc_insert_on) {echo "final";} else {echo "igual";}?>"/>
  <input type="hidden" name="nmgp_parms" value="<?php echo NM_encode_input($_SESSION['sc_session'][$this->Ini->sc_page]['line_form']['parms']); ?>"/>
  <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()); ?>"> 
</form> 
<form name="F6" method="post" 
                  action="./" 
                  target="_self"> 
  <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()); ?>"> 
</form> 
<div id="id_div_process" style="display: none; margin: 10px; whitespace: nowrap" class="scFormProcessFixed"><span class="scFormProcess"><img border="0" src="<?php echo $this->Ini->path_icones; ?>/scriptcase__NM__ajax_load.gif" align="absmiddle" />&nbsp;<?php echo $this->Ini->Nm_lang['lang_othr_prcs']; ?>...</span></div>
<div id="id_div_process_block" style="display: none; margin: 10px; whitespace: nowrap"><span class="scFormProcess"><img border="0" src="<?php echo $this->Ini->path_icones; ?>/scriptcase__NM__ajax_load.gif" align="absmiddle" />&nbsp;<?php echo $this->Ini->Nm_lang['lang_othr_prcs']; ?>...</span></div>
<div id="id_fatal_error" class="scFormLabelOdd" style="display: none; position: absolute"></div>
<script type="text/javascript"> 
var var_btn_FGI_var_style = "<?php echo $this->nmgp_dados_form['style']; ?>";
function sc_btn_FGI()
{
  nm_gp_submit('<?php echo $this->Ini->link_line_fgi_grid_cons; ?>', '<?php echo $this->nm_location; ?>', '<?php echo "var_style?#?' + var_btn_FGI_var_style + '?@?NMSC_inicial?#?inicio?@?"; ?>', 'inicio', '_blank');
}
var var_btn_sc_btn_0_var_style = "<?php echo $this->nmgp_dados_form['style']; ?>";
function sc_btn_sc_btn_0()
{
  nm_gp_submit('<?php echo $this->Ini->link_line_item_grid_cons; ?>', '<?php echo $this->nm_location; ?>', '<?php echo "var_style?#?' + var_btn_sc_btn_0_var_style + '?@?NMSC_inicial?#?inicio?@?"; ?>', 'inicio', '_blank');
}
var var_btn_sc_btn_1_var_style = "<?php echo $this->nmgp_dados_form['style']; ?>";
function sc_btn_sc_btn_1()
{
  nm_gp_submit('<?php echo $this->Ini->link_line_orders_grid_cons; ?>', '<?php echo $this->nm_location; ?>', '<?php echo "var_style?#?' + var_btn_sc_btn_1_var_style + '?@?NMSC_inicial?#?inicio?@?"; ?>', 'inicio', '_blank');
}
var var_btn_sc_btn_2_var_style = "<?php echo $this->nmgp_dados_form['style']; ?>";
function sc_btn_sc_btn_2()
{
  nm_gp_submit('<?php echo $this->Ini->link_line_sample_grid_cons; ?>', '<?php echo $this->nm_location; ?>', '<?php echo "var_style?#?' + var_btn_sc_btn_2_var_style + '?@?NMSC_inicial?#?inicio?@?"; ?>', 'inicio', '_blank');
}
var var_btn_Greige_var_fs = "<?php echo $this->nmgp_dados_form['style']; ?>";
function sc_btn_Greige()
{
  nm_gp_submit('<?php echo $this->Ini->link_line_fingreige_grid_cons; ?>', '<?php echo $this->nm_location; ?>', '<?php echo "var_fs?#?' + var_btn_Greige_var_fs + '?@?NMSC_inicial?#?inicio?@?"; ?>', 'inicio', '_blank');
}
 NM_tp_critica(1);
function nm_gp_submit(apl_lig, apl_saida, parms, opc, target, modal_h, modal_w) 
{ 
   if (target == 'modal') 
   {
       par_modal = '?script_case_init=<?php echo $this->Ini->sc_page ?>&script_case_session=<?php echo session_id() ?>&nmgp_outra_jan=true&nmgp_url_saida=modal';
       if (opc != null && opc != '') 
       {
           par_modal += '&nmgp_opcao=grid';
       }
       if (parms != null && parms != '') 
       {
           par_modal += '&nmgp_parms=' + parms;
       }
       tb_show('', apl_lig + par_modal + '&TB_iframe=true&modal=true&height=' + modal_h + '&width=' + modal_w, '');
       return;
   }
   document.F3.target               = "_self"; 
   document.F3.action               = apl_lig  ;
   if (opc != null && opc != "") 
   {
       document.F3.nmgp_opcao.value = "grid" ;
   }
   else
   {
       document.F3.nmgp_opcao.value = "" ;
   }
   if (target != null && target == '_blank') 
   {
       document.F3.nmgp_outra_jan.value = "true" ;
       document.F3.target           = target; 
   }
   document.F3.nmgp_url_saida.value = apl_saida ;
   document.F3.nmgp_parms.value     = parms ;
   document.F3.submit() ;
} 

function scInlineFormSend()
{
  return false;
}

function NM_critica (form, campo, label, mask, tipo, intr, dec, min, max)
{
    this.form = form;
    this.campo = campo;
    this.label = label;
    this.mask = mask;
    this.tipo = tipo;
    this.intr = intr;
    this.dec = dec;
    this.min = min;
    this.max = max;
}
 NM_tab_crit = new NM_critica(123);
 NM_tab_crit[1] = new NM_critica('F1', 'id2', 'ID2', 'naomask', 'numeroedtvg', 11, -0, 99999999999, '<?php echo str_replace("'", "\'", $this->field_config['id2']['symbol_grp']); ?>');
 NM_tab_crit[2] = new NM_critica('F1', 'style', 'STYLE', 'naomask', 'lista', 'cxab', 11, 'TUDO');
 NM_tab_crit[3] = new NM_critica('F1', 'name', 'NAME', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[4] = new NM_critica('F1', 'width', 'WIDTH', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[5] = new NM_critica('F1', 'comment', 'COMMENT', 'naomask', 'lista', 'cxab', 35, 'TUDO');
 NM_tab_crit[6] = new NM_critica('F1', 'fiber', 'FIBER', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[7] = new NM_critica('F1', 'desc', 'DESC', 'naomask', 'lista', 'cxab', 45, 'TUDO');
 NM_tab_crit[8] = new NM_critica('F1', 'line', 'LINE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[9] = new NM_critica('F1', 'dept', 'DEPT', 'naomask', 'lista', 'cxab', 2, 'TUDO');
 NM_tab_crit[10] = new NM_critica('F1', 'odesc', 'INTERNAL DESC', 'naomask', 'lista', 'cxab', 45, 'TUDO');
 NM_tab_crit[11] = new NM_critica('F1', 'hand', 'HAND', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[12] = new NM_critica('F1', 'date', 'DATE', 'naomask', 'data', '<?php echo $this->field_config['date']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date']['date_sep']; ?>');
 NM_tab_crit[13] = new NM_critica('F1', 'mindye', 'MINDYE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[14] = new NM_critica('F1', 'minord', 'MINORD', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[15] = new NM_critica('F1', 'yarn1', 'YARN1', 'naomask', 'lista', 'cxab', 30, 'TUDO');
 NM_tab_crit[16] = new NM_critica('F1', 'per1', 'PER1', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['per1']['symbol_grp']); ?>');
 NM_tab_crit[17] = new NM_critica('F1', 'yarn2', 'YARN2', 'naomask', 'lista', 'cxab', 30, 'TUDO');
 NM_tab_crit[18] = new NM_critica('F1', 'per2', 'PER2', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['per2']['symbol_grp']); ?>');
 NM_tab_crit[19] = new NM_critica('F1', 'yarn3', 'YARN3', 'naomask', 'lista', 'cxab', 30, 'TUDO');
 NM_tab_crit[20] = new NM_critica('F1', 'per3', 'PER3', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['per3']['symbol_grp']); ?>');
 NM_tab_crit[21] = new NM_critica('F1', 'yarn4', 'YARN4', 'naomask', 'lista', 'cxab', 30, 'TUDO');
 NM_tab_crit[22] = new NM_critica('F1', 'per4', 'PER4', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['per4']['symbol_grp']); ?>');
 NM_tab_crit[23] = new NM_critica('F1', 'del1', 'DEL1', 'naomask', 'lista', 'cxab', 40, 'TUDO');
 NM_tab_crit[24] = new NM_critica('F1', 'del2', 'DEL2', 'naomask', 'lista', 'cxab', 40, 'TUDO');
 NM_tab_crit[25] = new NM_critica('F1', 'del3', 'DEL3', 'naomask', 'lista', 'cxab', 40, 'TUDO');
 NM_tab_crit[26] = new NM_critica('F1', 'price', 'PRICE', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[27] = new NM_critica('F1', 'med', 'MED', 'naomask', 'lista', 'cxab', 6, 'TUDO');
 NM_tab_crit[28] = new NM_critica('F1', 'dark', 'DARK', 'naomask', 'lista', 'cxab', 6, 'TUDO');
 NM_tab_crit[29] = new NM_critica('F1', 'sprice', 'SPRICE', 'naomask', 'valorvg', 5, 2, -0, 9999999, '<?php echo str_replace("'", "\'", $this->field_config['sprice']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['sprice']['symbol_dec']); ?>');
 NM_tab_crit[30] = new NM_critica('F1', 'nprice', 'NPRICE', 'naomask', 'valorvg', 5, 2, -0, 9999999, '<?php echo str_replace("'", "\'", $this->field_config['nprice']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['nprice']['symbol_dec']); ?>');
 NM_tab_crit[31] = new NM_critica('F1', 'npdate', 'NPDATE', 'naomask', 'data', '<?php echo $this->field_config['npdate']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['npdate']['date_sep']; ?>');
 NM_tab_crit[32] = new NM_critica('F1', 'memo', 'MEMO', 'naomask', 'lista', 'cxab', 32767, 'TUDO');
 NM_tab_crit[33] = new NM_critica('F1', 'smemo', 'SMEMO', 'naomask', 'lista', 'cxab', 32767, 'TUDO');
 NM_tab_crit[34] = new NM_critica('F1', 'yds', 'FGI YARDS', 'naomask', 'numeroedtvg', 11, -0, 99999999999, '<?php echo str_replace("'", "\'", $this->field_config['yds']['symbol_grp']); ?>');
 NM_tab_crit[35] = new NM_critica('F1', 'lbs', 'GREIGE LBS INVENTORY', 'naomask', 'numeroedtvg', 11, -0, 99999999999, '<?php echo str_replace("'", "\'", $this->field_config['lbs']['symbol_grp']); ?>');
 NM_tab_crit[36] = new NM_critica('F1', 'dye', 'DYE', 'naomask', 'numeroedtvg', 11, -0, 99999999999, '<?php echo str_replace("'", "\'", $this->field_config['dye']['symbol_grp']); ?>');
 NM_tab_crit[37] = new NM_critica('F1', 'gc', 'GC', 'naomask', 'valorvg', 6, 2, -0, 99999999, '<?php echo str_replace("'", "\'", $this->field_config['gc']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['gc']['symbol_dec']); ?>');
 NM_tab_crit[38] = new NM_critica('F1', 'fc', 'FC', 'naomask', 'valorvg', 6, 2, -0, 99999999, '<?php echo str_replace("'", "\'", $this->field_config['fc']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['fc']['symbol_dec']); ?>');
 NM_tab_crit[39] = new NM_critica('F1', 'spec', 'SPEC', 'naomask', 'lista', 'cxab', 1, 'TUDO');
 NM_tab_crit[40] = new NM_critica('F1', 'gshort', 'GSHORT', 'naomask', 'numeroedtvg', 11, -0, 99999999999, '<?php echo str_replace("'", "\'", $this->field_config['gshort']['symbol_grp']); ?>');
 NM_tab_crit[41] = new NM_critica('F1', 'ytdd', 'YTDD', 'naomask', 'valorvg', 11, 2, -0, 9999999999999, '<?php echo str_replace("'", "\'", $this->field_config['ytdd']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['ytdd']['symbol_dec']); ?>');
 NM_tab_crit[42] = new NM_critica('F1', 'ytdy', 'YTDY', 'naomask', 'valorvg', 11, 2, -0, 9999999999999, '<?php echo str_replace("'", "\'", $this->field_config['ytdy']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['ytdy']['symbol_dec']); ?>');
 NM_tab_crit[43] = new NM_critica('F1', 'mtdd', 'MTDD', 'naomask', 'valorvg', 11, 2, -0, 9999999999999, '<?php echo str_replace("'", "\'", $this->field_config['mtdd']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['mtdd']['symbol_dec']); ?>');
 NM_tab_crit[44] = new NM_critica('F1', 'mtdy', 'MTDY', 'naomask', 'valorvg', 11, 2, -0, 9999999999999, '<?php echo str_replace("'", "\'", $this->field_config['mtdy']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['mtdy']['symbol_dec']); ?>');
 NM_tab_crit[45] = new NM_critica('F1', 'histy', 'HISTY', 'naomask', 'valorvg', 11, 2, -0, 9999999999999, '<?php echo str_replace("'", "\'", $this->field_config['histy']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['histy']['symbol_dec']); ?>');
 NM_tab_crit[46] = new NM_critica('F1', 'histd', 'HISTD', 'naomask', 'valorvg', 11, 2, -0, 9999999999999, '<?php echo str_replace("'", "\'", $this->field_config['histd']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['histd']['symbol_dec']); ?>');
 NM_tab_crit[47] = new NM_critica('F1', 'update', 'UPDATE', 'naomask', 'data', '<?php echo $this->field_config['update']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['update']['date_sep']; ?>');
 NM_tab_crit[48] = new NM_critica('F1', 'avprice', 'AVPRICE', 'naomask', 'valorvg', 5, 2, -0, 9999999, '<?php echo str_replace("'", "\'", $this->field_config['avprice']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['avprice']['symbol_dec']); ?>');
 NM_tab_crit[49] = new NM_critica('F1', 'lastyry', 'LASTYRY', 'naomask', 'valorvg', 11, 2, -0, 9999999999999, '<?php echo str_replace("'", "\'", $this->field_config['lastyry']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['lastyry']['symbol_dec']); ?>');
 NM_tab_crit[50] = new NM_critica('F1', 'lastyrd', 'LASTYRD', 'naomask', 'valorvg', 11, 2, -0, 9999999999999, '<?php echo str_replace("'", "\'", $this->field_config['lastyrd']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['lastyrd']['symbol_dec']); ?>');
 NM_tab_crit[51] = new NM_critica('F1', 'dyeleft', 'DYELEFT', 'naomask', 'numeroedtvg', 11, -0, 99999999999, '<?php echo str_replace("'", "\'", $this->field_config['dyeleft']['symbol_grp']); ?>');
 NM_tab_crit[52] = new NM_critica('F1', 'ozsquare', 'OZ PER SQUARE', 'naomask', 'valorvg', 4, 1, -0, 99999, '<?php echo str_replace("'", "\'", $this->field_config['ozsquare']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['ozsquare']['symbol_dec']); ?>');
 NM_tab_crit[53] = new NM_critica('F1', 'ozlin', 'OZ PER LIN YARD', 'naomask', 'valorvg', 4, 1, -0, 99999, '<?php echo str_replace("'", "\'", $this->field_config['ozlin']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['ozlin']['symbol_dec']); ?>');
 NM_tab_crit[54] = new NM_critica('F1', 'sqlb', 'SQ YARDS PER LB', 'naomask', 'valorvg', 4, 1, -0, 99999, '<?php echo str_replace("'", "\'", $this->field_config['sqlb']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['sqlb']['symbol_dec']); ?>');
 NM_tab_crit[55] = new NM_critica('F1', 'cpi', 'CPI', 'naomask', 'lista', 'cxab', 8, 'TUDO');
 NM_tab_crit[56] = new NM_critica('F1', 'wpi', 'WPI', 'naomask', 'lista', 'cxab', 8, 'TUDO');
 NM_tab_crit[57] = new NM_critica('F1', 'finwt', 'LIN YARDS PER LB', 'naomask', 'lista', 'cxab', 9, 'TUDO');
 NM_tab_crit[58] = new NM_critica('F1', 'meterkilo', 'METERS PER KILO', 'naomask', 'valorvg', 4, 1, -0, 99999, '<?php echo str_replace("'", "\'", $this->field_config['meterkilo']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['meterkilo']['symbol_dec']); ?>');
 NM_tab_crit[59] = new NM_critica('F1', 'meter2kilo', 'SQ METERS PER KILO', 'naomask', 'valorvg', 4, 1, -0, 99999, '<?php echo str_replace("'", "\'", $this->field_config['meter2kilo']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['meter2kilo']['symbol_dec']); ?>');
 NM_tab_crit[60] = new NM_critica('F1', 'grammeter', 'GRAMS PER METER', 'naomask', 'valorvg', 6, 1, -0, 9999999, '<?php echo str_replace("'", "\'", $this->field_config['grammeter']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['grammeter']['symbol_dec']); ?>');
 NM_tab_crit[61] = new NM_critica('F1', 'grammeter2', 'GRAMS PER SQ METER', 'naomask', 'valorvg', 6, 1, -0, 9999999, '<?php echo str_replace("'", "\'", $this->field_config['grammeter2']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['grammeter2']['symbol_dec']); ?>');
 NM_tab_crit[62] = new NM_critica('F1', 'stdputup', 'STDPUTUP', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[63] = new NM_critica('F1', 'stdtube', 'STDTUBE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[64] = new NM_critica('F1', 'date1', 'DATE1', 'naomask', 'data', '<?php echo $this->field_config['date1']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date1']['date_sep']; ?>');
 NM_tab_crit[65] = new NM_critica('F1', 'date2', 'DATE2', 'naomask', 'data', '<?php echo $this->field_config['date2']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date2']['date_sep']; ?>');
 NM_tab_crit[66] = new NM_critica('F1', 'date3', 'DATE3', 'naomask', 'data', '<?php echo $this->field_config['date3']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date3']['date_sep']; ?>');
 NM_tab_crit[67] = new NM_critica('F1', 'date4', 'DATE4', 'naomask', 'data', '<?php echo $this->field_config['date4']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date4']['date_sep']; ?>');
 NM_tab_crit[68] = new NM_critica('F1', 'date5', 'DATE5', 'naomask', 'data', '<?php echo $this->field_config['date5']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date5']['date_sep']; ?>');
 NM_tab_crit[69] = new NM_critica('F1', 'date6', 'DATE6', 'naomask', 'data', '<?php echo $this->field_config['date6']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date6']['date_sep']; ?>');
 NM_tab_crit[70] = new NM_critica('F1', 'name1', 'NAME1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[71] = new NM_critica('F1', 'name2', 'NAME2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[72] = new NM_critica('F1', 'name3', 'NAME3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[73] = new NM_critica('F1', 'name4', 'NAME4', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[74] = new NM_critica('F1', 'name5', 'NAME5', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[75] = new NM_critica('F1', 'name6', 'NAME6', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[76] = new NM_critica('F1', 'method1', 'METHOD1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[77] = new NM_critica('F1', 'method2', 'METHOD2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[78] = new NM_critica('F1', 'method3', 'METHOD3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[79] = new NM_critica('F1', 'method4', 'METHOD4', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[80] = new NM_critica('F1', 'method5', 'METHOD5', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[81] = new NM_critica('F1', 'method6', 'METHOD6', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[82] = new NM_critica('F1', 'test1', 'TEST1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[83] = new NM_critica('F1', 'test2', 'TEST2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[84] = new NM_critica('F1', 'test3', 'TEST3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[85] = new NM_critica('F1', 'test4', 'TEST4', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[86] = new NM_critica('F1', 'lot1', 'LOT1', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[87] = new NM_critica('F1', 'lot2', 'LOT2', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[88] = new NM_critica('F1', 'lot3', 'LOT3', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[89] = new NM_critica('F1', 'lot4', 'LOT4', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[90] = new NM_critica('F1', 'lot5', 'LOT5', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[91] = new NM_critica('F1', 'lot6', 'LOT6', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[92] = new NM_critica('F1', 'result1', 'RESULT1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[93] = new NM_critica('F1', 'result2', 'RESULT2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[94] = new NM_critica('F1', 'result3', 'RESULT3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[95] = new NM_critica('F1', 'result4', 'RESULT4', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[96] = new NM_critica('F1', 'result5', 'RESULT5', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[97] = new NM_critica('F1', 'result6', 'RESULT6', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[98] = new NM_critica('F1', 'sname1', 'SNAME1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[99] = new NM_critica('F1', 'sname2', 'SNAME2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[100] = new NM_critica('F1', 'sname3', 'SNAME3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[101] = new NM_critica('F1', 'smethod1', 'SMETHOD1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[102] = new NM_critica('F1', 'smethod2', 'SMETHOD2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[103] = new NM_critica('F1', 'smethod3', 'SMETHOD3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[104] = new NM_critica('F1', 'sstd1', 'SSTD1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[105] = new NM_critica('F1', 'sstd2', 'SSTD2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[106] = new NM_critica('F1', 'sstd3', 'SSTD3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit[107] = new NM_critica('F1', 'stol1', 'STOL1', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[108] = new NM_critica('F1', 'stol2', 'STOL2', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[109] = new NM_critica('F1', 'stol3', 'STOL3', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit[110] = new NM_critica('F1', 'conv2', 'CONV2', 'naomask', 'valorvg', 6, 2, -0, 99999999, '<?php echo str_replace("'", "\'", $this->field_config['conv2']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['conv2']['symbol_dec']); ?>');
 NM_tab_crit[111] = new NM_critica('F1', 'conv3', 'CONV3', 'naomask', 'valorvg', 6, 2, -0, 99999999, '<?php echo str_replace("'", "\'", $this->field_config['conv3']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['conv3']['symbol_dec']); ?>');
 NM_tab_crit[112] = new NM_critica('F1', 'conv', 'CONV', 'naomask', 'valorvg', 6, 2, -0, 99999999, '<?php echo str_replace("'", "\'", $this->field_config['conv']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['conv']['symbol_dec']); ?>');
 NM_tab_crit[113] = new NM_critica('F1', 'stdcost', 'STDCOST', 'naomask', 'valorvg', 5, 2, -0, 9999999, '<?php echo str_replace("'", "\'", $this->field_config['stdcost']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['stdcost']['symbol_dec']); ?>');
 NM_tab_crit[114] = new NM_critica('F1', 'stdgp', 'STDGP', 'naomask', 'valorvg', 4, 2, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['stdgp']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['stdgp']['symbol_dec']); ?>');
 NM_tab_crit[115] = new NM_critica('F1', 'avcost', 'AVCOST', 'naomask', 'valorvg', 4, 2, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['avcost']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['avcost']['symbol_dec']); ?>');
 NM_tab_crit[116] = new NM_critica('F1', 'machine', 'MACHINE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[117] = new NM_critica('F1', 'cgs', 'CGS', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[118] = new NM_critica('F1', 'gs', 'ORIGINAL GREIGE STYLE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[119] = new NM_critica('F1', 'k', 'ORIGINAL KNITTER', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit[120] = new NM_critica('F1', 'lbbo', 'LBBO', 'naomask', 'numeroedtvg', 11, -0, 99999999999, '<?php echo str_replace("'", "\'", $this->field_config['lbbo']['symbol_grp']); ?>');
 NM_tab_crit[121] = new NM_critica('F1', 'bo', 'BO', 'naomask', 'numeroedtvg', 11, -0, 99999999999, '<?php echo str_replace("'", "\'", $this->field_config['bo']['symbol_grp']); ?>');
 NM_tab_crit[122] = new NM_critica('F1', 'samples', 'SAMPLES', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['samples']['symbol_grp']); ?>');
 NM_tab_crit[123] = new NM_critica('NM_final');
 NM_tab_crit_1 = new NM_critica(91);
 NM_tab_crit_1[1] = new NM_critica('F1', 'style', 'STYLE', 'naomask', 'lista', 'cxab', 11, 'TUDO');
 NM_tab_crit_1[2] = new NM_critica('F1', 'name', 'NAME', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[3] = new NM_critica('F1', 'width', 'WIDTH', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[4] = new NM_critica('F1', 'comment', 'COMMENT', 'naomask', 'lista', 'cxab', 35, 'TUDO');
 NM_tab_crit_1[5] = new NM_critica('F1', 'fiber', 'FIBER', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[6] = new NM_critica('F1', 'desc', 'DESC', 'naomask', 'lista', 'cxab', 45, 'TUDO');
 NM_tab_crit_1[7] = new NM_critica('F1', 'line', 'LINE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[8] = new NM_critica('F1', 'dept', 'DEPT', 'naomask', 'lista', 'cxab', 2, 'TUDO');
 NM_tab_crit_1[9] = new NM_critica('F1', 'odesc', 'INTERNAL DESC', 'naomask', 'lista', 'cxab', 45, 'TUDO');
 NM_tab_crit_1[10] = new NM_critica('F1', 'hand', 'HAND', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[11] = new NM_critica('F1', 'mindye', 'MINDYE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[12] = new NM_critica('F1', 'minord', 'MINORD', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[13] = new NM_critica('F1', 'yarn1', 'YARN1', 'naomask', 'lista', 'cxab', 30, 'TUDO');
 NM_tab_crit_1[14] = new NM_critica('F1', 'per1', 'PER1', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['per1']['symbol_grp']); ?>');
 NM_tab_crit_1[15] = new NM_critica('F1', 'yarn2', 'YARN2', 'naomask', 'lista', 'cxab', 30, 'TUDO');
 NM_tab_crit_1[16] = new NM_critica('F1', 'per2', 'PER2', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['per2']['symbol_grp']); ?>');
 NM_tab_crit_1[17] = new NM_critica('F1', 'yarn3', 'YARN3', 'naomask', 'lista', 'cxab', 30, 'TUDO');
 NM_tab_crit_1[18] = new NM_critica('F1', 'per3', 'PER3', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['per3']['symbol_grp']); ?>');
 NM_tab_crit_1[19] = new NM_critica('F1', 'yarn4', 'YARN4', 'naomask', 'lista', 'cxab', 30, 'TUDO');
 NM_tab_crit_1[20] = new NM_critica('F1', 'per4', 'PER4', 'naomask', 'numeroedtvg', 6, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['per4']['symbol_grp']); ?>');
 NM_tab_crit_1[21] = new NM_critica('F1', 'del1', 'DEL1', 'naomask', 'lista', 'cxab', 40, 'TUDO');
 NM_tab_crit_1[22] = new NM_critica('F1', 'del2', 'DEL2', 'naomask', 'lista', 'cxab', 40, 'TUDO');
 NM_tab_crit_1[23] = new NM_critica('F1', 'del3', 'DEL3', 'naomask', 'lista', 'cxab', 40, 'TUDO');
 NM_tab_crit_1[24] = new NM_critica('F1', 'price', 'PRICE', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[25] = new NM_critica('F1', 'med', 'MED', 'naomask', 'lista', 'cxab', 6, 'TUDO');
 NM_tab_crit_1[26] = new NM_critica('F1', 'dark', 'DARK', 'naomask', 'lista', 'cxab', 6, 'TUDO');
 NM_tab_crit_1[27] = new NM_critica('F1', 'nprice', 'NPRICE', 'naomask', 'valorvg', 5, 2, -0, 9999999, '<?php echo str_replace("'", "\'", $this->field_config['nprice']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['nprice']['symbol_dec']); ?>');
 NM_tab_crit_1[28] = new NM_critica('F1', 'npdate', 'NPDATE', 'naomask', 'data', '<?php echo $this->field_config['npdate']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['npdate']['date_sep']; ?>');
 NM_tab_crit_1[29] = new NM_critica('F1', 'memo', 'MEMO', 'naomask', 'lista', 'cxab', 32767, 'TUDO');
 NM_tab_crit_1[30] = new NM_critica('F1', 'smemo', 'SMEMO', 'naomask', 'lista', 'cxab', 32767, 'TUDO');
 NM_tab_crit_1[31] = new NM_critica('F1', 'spec', 'SPEC', 'naomask', 'lista', 'cxab', 1, 'TUDO');
 NM_tab_crit_1[32] = new NM_critica('F1', 'ozsquare', 'OZ PER SQUARE', 'naomask', 'valorvg', 4, 1, -0, 99999, '<?php echo str_replace("'", "\'", $this->field_config['ozsquare']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['ozsquare']['symbol_dec']); ?>');
 NM_tab_crit_1[33] = new NM_critica('F1', 'sqlb', 'SQ YARDS PER LB', 'naomask', 'valorvg', 4, 1, -0, 99999, '<?php echo str_replace("'", "\'", $this->field_config['sqlb']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['sqlb']['symbol_dec']); ?>');
 NM_tab_crit_1[34] = new NM_critica('F1', 'cpi', 'CPI', 'naomask', 'lista', 'cxab', 8, 'TUDO');
 NM_tab_crit_1[35] = new NM_critica('F1', 'wpi', 'WPI', 'naomask', 'lista', 'cxab', 8, 'TUDO');
 NM_tab_crit_1[36] = new NM_critica('F1', 'finwt', 'LIN YARDS PER LB', 'naomask', 'lista', 'cxab', 9, 'TUDO');
 NM_tab_crit_1[37] = new NM_critica('F1', 'stdputup', 'STDPUTUP', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[38] = new NM_critica('F1', 'stdtube', 'STDTUBE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[39] = new NM_critica('F1', 'date1', 'DATE1', 'naomask', 'data', '<?php echo $this->field_config['date1']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date1']['date_sep']; ?>');
 NM_tab_crit_1[40] = new NM_critica('F1', 'date2', 'DATE2', 'naomask', 'data', '<?php echo $this->field_config['date2']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date2']['date_sep']; ?>');
 NM_tab_crit_1[41] = new NM_critica('F1', 'date3', 'DATE3', 'naomask', 'data', '<?php echo $this->field_config['date3']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date3']['date_sep']; ?>');
 NM_tab_crit_1[42] = new NM_critica('F1', 'date4', 'DATE4', 'naomask', 'data', '<?php echo $this->field_config['date4']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date4']['date_sep']; ?>');
 NM_tab_crit_1[43] = new NM_critica('F1', 'date5', 'DATE5', 'naomask', 'data', '<?php echo $this->field_config['date5']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date5']['date_sep']; ?>');
 NM_tab_crit_1[44] = new NM_critica('F1', 'date6', 'DATE6', 'naomask', 'data', '<?php echo $this->field_config['date6']['date_format']; ?>'<?php echo ", '', ''"; ?>, '<?php echo $this->field_config['date6']['date_sep']; ?>');
 NM_tab_crit_1[45] = new NM_critica('F1', 'name1', 'NAME1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[46] = new NM_critica('F1', 'name2', 'NAME2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[47] = new NM_critica('F1', 'name3', 'NAME3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[48] = new NM_critica('F1', 'name4', 'NAME4', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[49] = new NM_critica('F1', 'name5', 'NAME5', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[50] = new NM_critica('F1', 'name6', 'NAME6', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[51] = new NM_critica('F1', 'method1', 'METHOD1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[52] = new NM_critica('F1', 'method2', 'METHOD2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[53] = new NM_critica('F1', 'method3', 'METHOD3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[54] = new NM_critica('F1', 'method4', 'METHOD4', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[55] = new NM_critica('F1', 'method5', 'METHOD5', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[56] = new NM_critica('F1', 'method6', 'METHOD6', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[57] = new NM_critica('F1', 'test1', 'TEST1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[58] = new NM_critica('F1', 'test2', 'TEST2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[59] = new NM_critica('F1', 'test3', 'TEST3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[60] = new NM_critica('F1', 'test4', 'TEST4', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[61] = new NM_critica('F1', 'lot1', 'LOT1', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[62] = new NM_critica('F1', 'lot2', 'LOT2', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[63] = new NM_critica('F1', 'lot3', 'LOT3', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[64] = new NM_critica('F1', 'lot4', 'LOT4', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[65] = new NM_critica('F1', 'lot5', 'LOT5', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[66] = new NM_critica('F1', 'lot6', 'LOT6', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[67] = new NM_critica('F1', 'result1', 'RESULT1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[68] = new NM_critica('F1', 'result2', 'RESULT2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[69] = new NM_critica('F1', 'result3', 'RESULT3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[70] = new NM_critica('F1', 'result4', 'RESULT4', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[71] = new NM_critica('F1', 'result5', 'RESULT5', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[72] = new NM_critica('F1', 'result6', 'RESULT6', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[73] = new NM_critica('F1', 'sname1', 'SNAME1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[74] = new NM_critica('F1', 'sname2', 'SNAME2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[75] = new NM_critica('F1', 'sname3', 'SNAME3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[76] = new NM_critica('F1', 'smethod1', 'SMETHOD1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[77] = new NM_critica('F1', 'smethod2', 'SMETHOD2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[78] = new NM_critica('F1', 'smethod3', 'SMETHOD3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[79] = new NM_critica('F1', 'sstd1', 'SSTD1', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[80] = new NM_critica('F1', 'sstd2', 'SSTD2', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[81] = new NM_critica('F1', 'sstd3', 'SSTD3', 'naomask', 'lista', 'cxab', 20, 'TUDO');
 NM_tab_crit_1[82] = new NM_critica('F1', 'stol1', 'STOL1', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[83] = new NM_critica('F1', 'stol2', 'STOL2', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[84] = new NM_critica('F1', 'stol3', 'STOL3', 'naomask', 'lista', 'cxab', 15, 'TUDO');
 NM_tab_crit_1[85] = new NM_critica('F1', 'conv', 'CONV', 'naomask', 'valorvg', 6, 2, -0, 99999999, '<?php echo str_replace("'", "\'", $this->field_config['conv']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['conv']['symbol_dec']); ?>');
 NM_tab_crit_1[86] = new NM_critica('F1', 'stdgp', 'STDGP', 'naomask', 'valorvg', 4, 2, -0, 999999, '<?php echo str_replace("'", "\'", $this->field_config['stdgp']['symbol_grp']); ?>', '<?php echo str_replace("'", "\'", $this->field_config['stdgp']['symbol_dec']); ?>');
 NM_tab_crit_1[87] = new NM_critica('F1', 'machine', 'MACHINE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[88] = new NM_critica('F1', 'cgs', 'CGS', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[89] = new NM_critica('F1', 'gs', 'ORIGINAL GREIGE STYLE', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[90] = new NM_critica('F1', 'k', 'ORIGINAL KNITTER', 'naomask', 'lista', 'cxab', 10, 'TUDO');
 NM_tab_crit_1[91] = new NM_critica('NM_final');

function nm_navpage(x, op) 
{ 
    nm_move('navpage', x);
} 
function nm_move(x, y, z) 
{ 
    if (Nm_Proc_Atualiz)
    {
        return;
    }
    if (("inicio" == x || "retorna" == x) && "S" != Nav_permite_ret)
    {
        return;
    }
    if (("avanca" == x || "final" == x) && "S" != Nav_permite_ava)
    {
        return;
    }
    document.F2.nmgp_opcao.value = x; 
    document.F2.nmgp_ordem.value = y; 
    document.F2.nmgp_clone.value = "";
    if ("apl_detalhe" == x)
    {
        document.F2.nmgp_opcao.value = 'igual'; 
        document.F2.master_nav.value = 'on'; 
        if (z)
        {
            document.F2.sc_ifr_height.value = z;
        }
        document.F2.submit();
        return;
    }
    if ("clone" == x)
    {
        x = "novo";
        document.F2.nmgp_clone.value = "S";
        document.F2.nmgp_opcao.value = x; 
    }
    if ("fast_search" == x)
    {
        document.F2.nmgp_ordem.value = ''; 
        document.F2.nmgp_fast_search.value = scAjaxGetFieldSelect("nmgp_fast_search_" + y); 
        document.F2.nmgp_cond_fast_search.value = scAjaxGetFieldSelect("nmgp_cond_fast_search_" + y); 
        document.F2.nmgp_arg_fast_search.value = scAjaxGetFieldText("nmgp_arg_fast_search_" + y); 
    }
    if ("novo" == x || "edit_novo" == x)
    {
<?php
       $NM_parm_ifr = ($NM_run_iframe == 1) ? "NM_run_iframe?#?1?@?" : "";
?>
        document.F2.nmgp_parms.value = "<?php echo $NM_parm_ifr ?>";
        document.F2.submit();
    }
    else
    {
        do_ajax_line_form_navigate_form();
    }
} 
var sc_mupload_ok = true;
function nm_atualiza(x, y) 
{ 
    if (!sc_mupload_ok)
    {
        if (!confirm("<?php echo $this->Ini->Nm_lang['lang_errm_muok'] ?>"))
        {
            return;
        }
        sc_mupload_ok = true;
    }
    var Nm_submit_ok = true; 
    if (Nm_Proc_Atualiz)
    {
        return;
    }
    if (!scAjaxDetailProc())
    {
        return;
    }
<?php
    $NM_parm_ifr = ($NM_run_iframe == 1) ? "NM_run_iframe?#?1?@?" : "";
?>
    document.F1.nmgp_parms.value = "<?php echo $NM_parm_ifr ?>";
    document.F1.target = "_self";
    if (x == "muda_form") 
    { 
       document.F1.nmgp_num_form.value = y; 
    } 
    if (x == "excluir") 
    { 
       if (confirm ("<?php echo html_entity_decode($this->Ini->Nm_lang['lang_errm_remv']); ?>"))  
       { 
           document.F1.nmgp_opcao.value = x; 
           document.F1.submit(); 
       } 
       else 
       { 
          return; 
       } 
    } 
    else 
    { 
       document.F1.nmgp_opcao.value = x; 
       if ("incluir" == x || "muda_form" == x)
       {
           Nm_Proc_Atualiz = true;
           document.F1.submit();
       }
       else
       {
           Nm_Proc_Atualiz = true;
           do_ajax_line_form_submit_form();
       }
    } 
    if (Nm_submit_ok)
    { 
        Nm_Proc_Atualiz = true;
    } 
} 
function nm_mostra_img(imagem, altura, largura)
{
    tb_show('', imagem, '');
}
function nm_recarga_form(nm_ult_ancora, nm_ult_page) 
{ 
    document.F1.target = "_self";
    document.F1.nmgp_parms.value = "";
    document.F1.nmgp_ancora.value= nm_ult_page; 
    document.F1.nmgp_ancora.value= nm_ult_page; 
    document.F1.nmgp_opcao.value= "recarga"; 
    document.F1.action += "#" +  nm_ult_ancora;
    document.F1.submit(); 
} 
function nm_link_url(Sc_url)
{
    if (Sc_url.substr(0, 7) != 'http://' && Sc_url.substr(0, 8) != 'https://')
    {
        Sc_url = 'http://' + Sc_url;
    }
    return Sc_url;
}
function sc_trim(str, chars) {
        return sc_ltrim(sc_rtrim(str, chars), chars);
}
function sc_ltrim(str, chars) {
        chars = chars || "\\s";
        return str.replace(new RegExp("^[" + chars + "]+", "g"), "");
}
function sc_rtrim(str, chars) {
        chars = chars || "\\s";
        return str.replace(new RegExp("[" + chars + "]+$", "g"), "");
}
var hasJsFormOnload = false;
function sc_exib_ocult_pag(N_pagina)
{
    document.getElementById('line_form_form0').style.width='1px';
    document.getElementById('line_form_form0').style.height='0px';
    document.getElementById('line_form_form0').style.display='none';
    document.getElementById('line_form_form0').style.overflow='scroll';
    document.getElementById('line_form_form1').style.width='1px';
    document.getElementById('line_form_form1').style.height='0px';
    document.getElementById('line_form_form1').style.display='none';
    document.getElementById('line_form_form1').style.overflow='scroll';
    document.getElementById('line_form_form2').style.width='1px';
    document.getElementById('line_form_form2').style.height='0px';
    document.getElementById('line_form_form2').style.display='none';
    document.getElementById('line_form_form2').style.overflow='scroll';
    document.getElementById('line_form_form3').style.width='1px';
    document.getElementById('line_form_form3').style.height='0px';
    document.getElementById('line_form_form3').style.display='none';
    document.getElementById('line_form_form3').style.overflow='scroll';
    document.getElementById('line_form_form4').style.width='1px';
    document.getElementById('line_form_form4').style.height='0px';
    document.getElementById('line_form_form4').style.display='none';
    document.getElementById('line_form_form4').style.overflow='scroll';
    document.getElementById('line_form_form5').style.width='1px';
    document.getElementById('line_form_form5').style.height='0px';
    document.getElementById('line_form_form5').style.display='none';
    document.getElementById('line_form_form5').style.overflow='scroll';
    document.getElementById('line_form_form6').style.width='1px';
    document.getElementById('line_form_form6').style.height='0px';
    document.getElementById('line_form_form6').style.display='none';
    document.getElementById('line_form_form6').style.overflow='scroll';
    document.getElementById('line_form_form7').style.width='1px';
    document.getElementById('line_form_form7').style.height='0px';
    document.getElementById('line_form_form7').style.display='none';
    document.getElementById('line_form_form7').style.overflow='scroll';
    document.getElementById('line_form_form8').style.width='1px';
    document.getElementById('line_form_form8').style.height='0px';
    document.getElementById('line_form_form8').style.display='none';
    document.getElementById('line_form_form8').style.overflow='scroll';
    document.getElementById('line_form_form9').style.width='1px';
    document.getElementById('line_form_form9').style.height='0px';
    document.getElementById('line_form_form9').style.display='none';
    document.getElementById('line_form_form9').style.overflow='scroll';
    document.getElementById('line_form_form10').style.width='1px';
    document.getElementById('line_form_form10').style.height='0px';
    document.getElementById('line_form_form10').style.display='none';
    document.getElementById('line_form_form10').style.overflow='scroll';
    document.getElementById(N_pagina).style.width='';
    document.getElementById(N_pagina).style.height='';
    document.getElementById(N_pagina).style.display='';
    document.getElementById(N_pagina).style.overflow='visible';
    sc_tab_pag(pag_ativa, 'scTabInactive');
    pag_ativa = N_pagina;
    sc_tab_pag(pag_ativa, 'scTabActive');
   if ("line_form_form7" == N_pagina) {
     scAjaxDetailHeight("line_cmatch_edit_grid", $($("#nmsc_iframe_liga_line_cmatch_edit_grid")[0].contentWindow.document).innerHeight());
    }
   if ("line_form_form8" == N_pagina) {
     scAjaxDetailHeight("greige_grstyle_ro2_form", $($("#nmsc_iframe_liga_greige_grstyle_ro2_form")[0].contentWindow.document).innerHeight());
    }
}
function sc_tab_pag(N_pagina, C_class)
{
    document.getElementById('id_' + N_pagina + '_font').className = C_class + 'Font ' + C_class + 'FontCustom';
    document.getElementById('id_' + N_pagina + '_4').className = C_class;
    document.getElementById('id_' + N_pagina + '_5').className = C_class + ' ' + C_class + 'Bg';
    document.getElementById('id_' + N_pagina + '_6').className = C_class;
    if ('scTabActive' == C_class)
    {
        document.getElementById('id_' + N_pagina + '_tl').src = '<?php echo $this->Ini->path_img_global . '/' . $str_active_top_esq; ?>';
        document.getElementById('id_' + N_pagina + '_tr').src = '<?php echo $this->Ini->path_img_global . '/' . $str_active_top_dir; ?>';
        document.getElementById('id_' + N_pagina + '_t').style.backgroundImage = 'url(<?php echo $this->Ini->path_img_global . '/' . $str_active_lin_top; ?>)';
        document.getElementById('id_' + N_pagina + '_4').style.backgroundImage = 'url(<?php echo $this->Ini->path_img_global . '/' . $str_active_col_esq; ?>)';
        document.getElementById('id_' + N_pagina + '_6').style.backgroundImage = 'url(<?php echo $this->Ini->path_img_global . '/' . $str_active_col_dir; ?>)';
    }
    else
    {
        document.getElementById('id_' + N_pagina + '_tl').src = '<?php echo $this->Ini->path_img_global . '/' . $str_inactive_top_esq; ?>';
        document.getElementById('id_' + N_pagina + '_tr').src = '<?php echo $this->Ini->path_img_global . '/' . $str_inactive_top_dir; ?>';
        document.getElementById('id_' + N_pagina + '_t').style.backgroundImage = 'url(<?php echo $this->Ini->path_img_global . '/' . $str_inactive_lin_top; ?>)';
        document.getElementById('id_' + N_pagina + '_4').style.backgroundImage = 'url(<?php echo $this->Ini->path_img_global . '/' . $str_inactive_col_esq; ?>)';
        document.getElementById('id_' + N_pagina + '_6').style.backgroundImage = 'url(<?php echo $this->Ini->path_img_global . '/' . $str_inactive_col_dir; ?>)';
    }
}

function scCssFocus(oHtmlObj)
{
  if (navigator.userAgent && 0 < navigator.userAgent.indexOf("MSIE") && "select" == oHtmlObj.type.substr(0, 6))
    return;
  $(oHtmlObj).addClass('scFormObjectFocusOdd')
             .removeClass('scFormObjectOdd');
}

function scCssBlur(oHtmlObj)
{
  if (navigator.userAgent && 0 < navigator.userAgent.indexOf("MSIE") && "select" == oHtmlObj.type.substr(0, 6))
    return;
  $(oHtmlObj).addClass('scFormObjectOdd')
             .removeClass('scFormObjectFocusOdd');
}

</script> 
