
function scJQGeneralAdd() {
  $('input:text.sc-js-input').listen();
  $('input:password.sc-js-input').listen();
  $('textarea.sc-js-input').listen();

} // scJQGeneralAdd

function scFocusField(sField) {
  var $oField = $('#id_sc_field_' + sField);

  if (0 == $oField.length) {
    $oField = $('input[name=' + sField + ']');
  }

  if (0 == $oField.length && document.F1.elements[sField]) {
    $oField = $(document.F1.elements[sField]);
  }

  if (0 < $oField.length) {
    switch ($oField[0].name) {
      case 'order':
      case 'date':
      case 'ordered_by':
      case 'adate':
      case 'status':
      case 'edate':
      case 'acknow':
      case 'dup':
      case 'dupwho':
      case 'message':
      case 'spec':
        sc_exib_ocult_pag('orders_orders_form_form0');
        break;
      case 'she':
      case 'whoshe':
      case 'hvia':
      case 'sld':
      case 'whosld':
      case 'lvia':
        sc_exib_ocult_pag('orders_orders_form_form1');
        break;
      case 'style':
      case 'bill_descr':
      case 'width':
      case 'finish':
      case 'finish_no':
      case 'bp':
      case 'lin_sq':
      case 'put_up':
      case 'rolls':
      case 'tubes':
      case 'quantity':
      case 'amount':
        sc_exib_ocult_pag('orders_orders_form_form2');
        break;
      case 'detail':
        sc_exib_ocult_pag('orders_orders_form_form3');
        break;
      case 'shipped':
      case 'open':
      case 'dye':
      case 'released':
      case 'value':
      case 'fgi':
        sc_exib_ocult_pag('orders_orders_form_form4');
        break;
      case 'bcode':
      case 'dday':
      case 'terms':
      case 'terms2':
      case 'natwest':
      case 'salesman':
      case 'comyd':
      case 'comdol':
      case 'addfor':
      case 'addcharge':
        sc_exib_ocult_pag('orders_orders_form_form5');
        break;
      case 'scode':
      case 'ship_via':
      case 'how':
      case 'howwho':
        sc_exib_ocult_pag('orders_orders_form_form6');
        break;
    }
  }

  if (0 < $oField.length && 0 < $oField[0].offsetHeight && 0 < $oField[0].offsetWidth && !$oField[0].disabled) {
    $oField[0].focus();
  }
} // scFocusField

function scJQEventsAdd(iSeqRow) {
  $('#id_sc_field_order' + iSeqRow).bind('blur', function() { sc_orders_orders_form_order_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_order_onfocus(this, iSeqRow) });
  $('#id_sc_field_date' + iSeqRow).bind('blur', function() { sc_orders_orders_form_date_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_orders_orders_form_date_onfocus(this, iSeqRow) });
  $('#id_sc_field_bcode' + iSeqRow).bind('blur', function() { sc_orders_orders_form_bcode_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_bcode_onfocus(this, iSeqRow) });
  $('#id_sc_field_scode' + iSeqRow).bind('blur', function() { sc_orders_orders_form_scode_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_scode_onfocus(this, iSeqRow) });
  $('#id_sc_field_terms' + iSeqRow).bind('blur', function() { sc_orders_orders_form_terms_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_terms_onfocus(this, iSeqRow) });
  $('#id_sc_field_terms2' + iSeqRow).bind('blur', function() { sc_orders_orders_form_terms2_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_terms2_onfocus(this, iSeqRow) });
  $('#id_sc_field_ship_via' + iSeqRow).bind('blur', function() { sc_orders_orders_form_ship_via_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_orders_orders_form_ship_via_onfocus(this, iSeqRow) });
  $('#id_sc_field_how' + iSeqRow).bind('blur', function() { sc_orders_orders_form_how_onblur(this, iSeqRow) })
                                 .bind('focus', function() { sc_orders_orders_form_how_onfocus(this, iSeqRow) });
  $('#id_sc_field_howwho' + iSeqRow).bind('blur', function() { sc_orders_orders_form_howwho_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_howwho_onfocus(this, iSeqRow) });
  $('#id_sc_field_salesman' + iSeqRow).bind('blur', function() { sc_orders_orders_form_salesman_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_orders_orders_form_salesman_onfocus(this, iSeqRow) });
  $('#id_sc_field_comdol' + iSeqRow).bind('blur', function() { sc_orders_orders_form_comdol_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_comdol_onfocus(this, iSeqRow) });
  $('#id_sc_field_comyd' + iSeqRow).bind('blur', function() { sc_orders_orders_form_comyd_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_comyd_onfocus(this, iSeqRow) });
  $('#id_sc_field_bill_descr' + iSeqRow).bind('blur', function() { sc_orders_orders_form_bill_descr_onblur(this, iSeqRow) })
                                        .bind('focus', function() { sc_orders_orders_form_bill_descr_onfocus(this, iSeqRow) });
  $('#id_sc_field_ordered_by' + iSeqRow).bind('blur', function() { sc_orders_orders_form_ordered_by_onblur(this, iSeqRow) })
                                        .bind('focus', function() { sc_orders_orders_form_ordered_by_onfocus(this, iSeqRow) });
  $('#id_sc_field_put_up' + iSeqRow).bind('blur', function() { sc_orders_orders_form_put_up_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_put_up_onfocus(this, iSeqRow) });
  $('#id_sc_field_rolls' + iSeqRow).bind('blur', function() { sc_orders_orders_form_rolls_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_rolls_onfocus(this, iSeqRow) });
  $('#id_sc_field_tubes' + iSeqRow).bind('blur', function() { sc_orders_orders_form_tubes_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_tubes_onfocus(this, iSeqRow) });
  $('#id_sc_field_finish' + iSeqRow).bind('blur', function() { sc_orders_orders_form_finish_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_finish_onfocus(this, iSeqRow) });
  $('#id_sc_field_finish_no' + iSeqRow).bind('blur', function() { sc_orders_orders_form_finish_no_onblur(this, iSeqRow) })
                                       .bind('focus', function() { sc_orders_orders_form_finish_no_onfocus(this, iSeqRow) });
  $('#id_sc_field_style' + iSeqRow).bind('blur', function() { sc_orders_orders_form_style_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_style_onfocus(this, iSeqRow) });
  $('#id_sc_field_width' + iSeqRow).bind('blur', function() { sc_orders_orders_form_width_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_width_onfocus(this, iSeqRow) });
  $('#id_sc_field_quantity' + iSeqRow).bind('blur', function() { sc_orders_orders_form_quantity_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_orders_orders_form_quantity_onfocus(this, iSeqRow) });
  $('#id_sc_field_lin_sq' + iSeqRow).bind('blur', function() { sc_orders_orders_form_lin_sq_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_lin_sq_onfocus(this, iSeqRow) });
  $('#id_sc_field_amount' + iSeqRow).bind('blur', function() { sc_orders_orders_form_amount_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_amount_onfocus(this, iSeqRow) });
  $('#id_sc_field_bp' + iSeqRow).bind('blur', function() { sc_orders_orders_form_bp_onblur(this, iSeqRow) })
                                .bind('focus', function() { sc_orders_orders_form_bp_onfocus(this, iSeqRow) });
  $('#id_sc_field_spec' + iSeqRow).bind('blur', function() { sc_orders_orders_form_spec_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_orders_orders_form_spec_onfocus(this, iSeqRow) });
  $('#id_sc_field_status' + iSeqRow).bind('blur', function() { sc_orders_orders_form_status_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_status_onfocus(this, iSeqRow) });
  $('#id_sc_field_adate' + iSeqRow).bind('blur', function() { sc_orders_orders_form_adate_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_adate_onfocus(this, iSeqRow) });
  $('#id_sc_field_edate' + iSeqRow).bind('blur', function() { sc_orders_orders_form_edate_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_edate_onfocus(this, iSeqRow) });
  $('#id_sc_field_natwest' + iSeqRow).bind('blur', function() { sc_orders_orders_form_natwest_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_orders_orders_form_natwest_onfocus(this, iSeqRow) });
  $('#id_sc_field_shipped' + iSeqRow).bind('blur', function() { sc_orders_orders_form_shipped_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_orders_orders_form_shipped_onfocus(this, iSeqRow) });
  $('#id_sc_field_open' + iSeqRow).bind('blur', function() { sc_orders_orders_form_open_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_orders_orders_form_open_onfocus(this, iSeqRow) });
  $('#id_sc_field_value' + iSeqRow).bind('blur', function() { sc_orders_orders_form_value_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_orders_orders_form_value_onfocus(this, iSeqRow) });
  $('#id_sc_field_dye' + iSeqRow).bind('blur', function() { sc_orders_orders_form_dye_onblur(this, iSeqRow) })
                                 .bind('focus', function() { sc_orders_orders_form_dye_onfocus(this, iSeqRow) });
  $('#id_sc_field_released' + iSeqRow).bind('blur', function() { sc_orders_orders_form_released_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_orders_orders_form_released_onfocus(this, iSeqRow) });
  $('#id_sc_field_dday' + iSeqRow).bind('blur', function() { sc_orders_orders_form_dday_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_orders_orders_form_dday_onfocus(this, iSeqRow) });
  $('#id_sc_field_fgi' + iSeqRow).bind('blur', function() { sc_orders_orders_form_fgi_onblur(this, iSeqRow) })
                                 .bind('focus', function() { sc_orders_orders_form_fgi_onfocus(this, iSeqRow) });
  $('#id_sc_field_message' + iSeqRow).bind('blur', function() { sc_orders_orders_form_message_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_orders_orders_form_message_onfocus(this, iSeqRow) });
  $('#id_sc_field_addcharge' + iSeqRow).bind('blur', function() { sc_orders_orders_form_addcharge_onblur(this, iSeqRow) })
                                       .bind('focus', function() { sc_orders_orders_form_addcharge_onfocus(this, iSeqRow) });
  $('#id_sc_field_addfor' + iSeqRow).bind('blur', function() { sc_orders_orders_form_addfor_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_addfor_onfocus(this, iSeqRow) });
  $('#id_sc_field_acknow' + iSeqRow).bind('blur', function() { sc_orders_orders_form_acknow_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_acknow_onfocus(this, iSeqRow) });
  $('#id_sc_field_dup' + iSeqRow).bind('blur', function() { sc_orders_orders_form_dup_onblur(this, iSeqRow) })
                                 .bind('focus', function() { sc_orders_orders_form_dup_onfocus(this, iSeqRow) });
  $('#id_sc_field_dupwho' + iSeqRow).bind('blur', function() { sc_orders_orders_form_dupwho_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_dupwho_onfocus(this, iSeqRow) });
  $('#id_sc_field_sld' + iSeqRow).bind('blur', function() { sc_orders_orders_form_sld_onblur(this, iSeqRow) })
                                 .bind('focus', function() { sc_orders_orders_form_sld_onfocus(this, iSeqRow) });
  $('#id_sc_field_she' + iSeqRow).bind('blur', function() { sc_orders_orders_form_she_onblur(this, iSeqRow) })
                                 .bind('focus', function() { sc_orders_orders_form_she_onfocus(this, iSeqRow) });
  $('#id_sc_field_whosld' + iSeqRow).bind('blur', function() { sc_orders_orders_form_whosld_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_whosld_onfocus(this, iSeqRow) });
  $('#id_sc_field_whoshe' + iSeqRow).bind('blur', function() { sc_orders_orders_form_whoshe_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_whoshe_onfocus(this, iSeqRow) });
  $('#id_sc_field_lvia' + iSeqRow).bind('blur', function() { sc_orders_orders_form_lvia_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_orders_orders_form_lvia_onfocus(this, iSeqRow) });
  $('#id_sc_field_hvia' + iSeqRow).bind('blur', function() { sc_orders_orders_form_hvia_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_orders_orders_form_hvia_onfocus(this, iSeqRow) });
  $('#id_sc_field_detail' + iSeqRow).bind('blur', function() { sc_orders_orders_form_detail_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_orders_orders_form_detail_onfocus(this, iSeqRow) });
} // scJQEventsAdd

function sc_orders_orders_form_order_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_order();
  scCssBlur(oThis);
}

function sc_orders_orders_form_order_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_date_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_date();
  scCssBlur(oThis);
}

function sc_orders_orders_form_date_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_bcode_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_bcode();
  scCssBlur(oThis);
}

function sc_orders_orders_form_bcode_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_scode_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_scode();
  scCssBlur(oThis);
}

function sc_orders_orders_form_scode_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_terms_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_terms();
  scCssBlur(oThis);
}

function sc_orders_orders_form_terms_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_terms2_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_terms2();
  scCssBlur(oThis);
}

function sc_orders_orders_form_terms2_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_ship_via_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_ship_via();
  scCssBlur(oThis);
}

function sc_orders_orders_form_ship_via_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_how_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_how();
  scCssBlur(oThis);
}

function sc_orders_orders_form_how_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_howwho_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_howwho();
  scCssBlur(oThis);
}

function sc_orders_orders_form_howwho_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_salesman_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_salesman();
  scCssBlur(oThis);
}

function sc_orders_orders_form_salesman_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_comdol_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_comdol();
  scCssBlur(oThis);
}

function sc_orders_orders_form_comdol_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_comyd_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_comyd();
  scCssBlur(oThis);
}

function sc_orders_orders_form_comyd_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_bill_descr_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_bill_descr();
  scCssBlur(oThis);
}

function sc_orders_orders_form_bill_descr_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_ordered_by_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_ordered_by();
  scCssBlur(oThis);
}

function sc_orders_orders_form_ordered_by_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_put_up_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_put_up();
  scCssBlur(oThis);
}

function sc_orders_orders_form_put_up_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_rolls_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_rolls();
  scCssBlur(oThis);
}

function sc_orders_orders_form_rolls_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_tubes_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_tubes();
  scCssBlur(oThis);
}

function sc_orders_orders_form_tubes_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_finish_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_finish();
  scCssBlur(oThis);
}

function sc_orders_orders_form_finish_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_finish_no_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_finish_no();
  scCssBlur(oThis);
}

function sc_orders_orders_form_finish_no_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_style_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_style();
  scCssBlur(oThis);
}

function sc_orders_orders_form_style_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_width_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_width();
  scCssBlur(oThis);
}

function sc_orders_orders_form_width_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_quantity_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_quantity();
  scCssBlur(oThis);
}

function sc_orders_orders_form_quantity_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_lin_sq_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_lin_sq();
  scCssBlur(oThis);
}

function sc_orders_orders_form_lin_sq_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_amount_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_amount();
  scCssBlur(oThis);
}

function sc_orders_orders_form_amount_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_bp_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_bp();
  scCssBlur(oThis);
}

function sc_orders_orders_form_bp_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_spec_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_spec();
  scCssBlur(oThis);
}

function sc_orders_orders_form_spec_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_status_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_status();
  scCssBlur(oThis);
}

function sc_orders_orders_form_status_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_adate_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_adate();
  scCssBlur(oThis);
}

function sc_orders_orders_form_adate_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_edate_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_edate();
  scCssBlur(oThis);
}

function sc_orders_orders_form_edate_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_natwest_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_natwest();
  scCssBlur(oThis);
}

function sc_orders_orders_form_natwest_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_shipped_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_shipped();
  scCssBlur(oThis);
}

function sc_orders_orders_form_shipped_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_open_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_open();
  scCssBlur(oThis);
}

function sc_orders_orders_form_open_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_value_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_value();
  scCssBlur(oThis);
}

function sc_orders_orders_form_value_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_dye_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_dye();
  scCssBlur(oThis);
}

function sc_orders_orders_form_dye_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_released_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_released();
  scCssBlur(oThis);
}

function sc_orders_orders_form_released_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_dday_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_dday();
  scCssBlur(oThis);
}

function sc_orders_orders_form_dday_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_fgi_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_fgi();
  scCssBlur(oThis);
}

function sc_orders_orders_form_fgi_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_message_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_message();
  scCssBlur(oThis);
}

function sc_orders_orders_form_message_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_addcharge_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_addcharge();
  scCssBlur(oThis);
}

function sc_orders_orders_form_addcharge_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_addfor_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_addfor();
  scCssBlur(oThis);
}

function sc_orders_orders_form_addfor_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_acknow_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_acknow();
  scCssBlur(oThis);
}

function sc_orders_orders_form_acknow_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_dup_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_dup();
  scCssBlur(oThis);
}

function sc_orders_orders_form_dup_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_dupwho_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_dupwho();
  scCssBlur(oThis);
}

function sc_orders_orders_form_dupwho_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_sld_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_sld();
  scCssBlur(oThis);
}

function sc_orders_orders_form_sld_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_she_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_she();
  scCssBlur(oThis);
}

function sc_orders_orders_form_she_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_whosld_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_whosld();
  scCssBlur(oThis);
}

function sc_orders_orders_form_whosld_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_whoshe_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_whoshe();
  scCssBlur(oThis);
}

function sc_orders_orders_form_whoshe_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_lvia_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_lvia();
  scCssBlur(oThis);
}

function sc_orders_orders_form_lvia_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_hvia_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_hvia();
  scCssBlur(oThis);
}

function sc_orders_orders_form_hvia_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

function sc_orders_orders_form_detail_onblur(oThis, iSeqRow) {
  do_ajax_orders_orders_form_validate_detail();
  scCssBlur(oThis);
}

function sc_orders_orders_form_detail_onfocus(oThis, iSeqRow) {
  scCssFocus(oThis);
}

var sc_jq_calendar_value = {};

function scJQCalendarAdd(iSeqRow) {
  $("#id_sc_field_date" + iSeqRow).datepicker({
    beforeShow: function(input, inst) {
      var $oField = $(this),
          aParts  = $oField.val().split(" "),
          sTime   = "";
      sc_jq_calendar_value["#id_sc_field_date" + iSeqRow] = $oField.val();
    },
    onClose: function(dateText, inst) {
    },
    showWeek: true,
    numberOfMonths: 1,
    changeMonth: true,
    changeYear: true,
    yearRange: 'c-5:c+5',
    dayNames: ['<?php        echo html_entity_decode($this->Ini->Nm_lang['lang_days_sund']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_mond']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_tued']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_wend']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_thud']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_frid']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_satd']);        ?>'],
    dayNamesMin: ['<?php     echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_sund']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_mond']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_tued']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_wend']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_thud']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_frid']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_satd']); ?>'],
    monthNamesShort: ['<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_janu']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_febr']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_marc']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_apri']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_mayy']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_june']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_july']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_augu']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_sept']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_octo']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_nove']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_dece']); ?>'],
    weekHeader: "<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_days_sem']); ?>",
    firstDay: <?php echo $this->jqueryCalendarWeekInit("" . $_SESSION['scriptcase']['reg_conf']['date_week_ini'] . ""); ?>,
    dateFormat: "<?php echo $this->jqueryCalendarDtFormat("" . str_replace(array('/', 'aaaa', $_SESSION['scriptcase']['reg_conf']['date_sep']), array('', 'yyyy', ''), $this->field_config['date']['date_format']) . "", "" . $_SESSION['scriptcase']['reg_conf']['date_sep'] . ""); ?>",
    showOtherMonths: true,
    showOn: "button",
    buttonImage: "<?php echo $this->jqueryIconFile('calendar'); ?>",
    buttonImageOnly: true
  });

  $("#id_sc_field_adate" + iSeqRow).datepicker({
    beforeShow: function(input, inst) {
      var $oField = $(this),
          aParts  = $oField.val().split(" "),
          sTime   = "";
      sc_jq_calendar_value["#id_sc_field_adate" + iSeqRow] = $oField.val();
    },
    onClose: function(dateText, inst) {
    },
    showWeek: true,
    numberOfMonths: 1,
    changeMonth: true,
    changeYear: true,
    yearRange: 'c-5:c+5',
    dayNames: ['<?php        echo html_entity_decode($this->Ini->Nm_lang['lang_days_sund']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_mond']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_tued']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_wend']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_thud']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_frid']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_satd']);        ?>'],
    dayNamesMin: ['<?php     echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_sund']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_mond']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_tued']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_wend']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_thud']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_frid']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_satd']); ?>'],
    monthNamesShort: ['<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_janu']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_febr']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_marc']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_apri']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_mayy']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_june']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_july']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_augu']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_sept']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_octo']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_nove']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_dece']); ?>'],
    weekHeader: "<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_days_sem']); ?>",
    firstDay: <?php echo $this->jqueryCalendarWeekInit("" . $_SESSION['scriptcase']['reg_conf']['date_week_ini'] . ""); ?>,
    dateFormat: "<?php echo $this->jqueryCalendarDtFormat("" . str_replace(array('/', 'aaaa', $_SESSION['scriptcase']['reg_conf']['date_sep']), array('', 'yyyy', ''), $this->field_config['adate']['date_format']) . "", "" . $_SESSION['scriptcase']['reg_conf']['date_sep'] . ""); ?>",
    showOtherMonths: true,
    showOn: "button",
    buttonImage: "<?php echo $this->jqueryIconFile('calendar'); ?>",
    buttonImageOnly: true
  });

  $("#id_sc_field_edate" + iSeqRow).datepicker({
    beforeShow: function(input, inst) {
      var $oField = $(this),
          aParts  = $oField.val().split(" "),
          sTime   = "";
      sc_jq_calendar_value["#id_sc_field_edate" + iSeqRow] = $oField.val();
    },
    onClose: function(dateText, inst) {
    },
    showWeek: true,
    numberOfMonths: 1,
    changeMonth: true,
    changeYear: true,
    yearRange: 'c-5:c+5',
    dayNames: ['<?php        echo html_entity_decode($this->Ini->Nm_lang['lang_days_sund']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_mond']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_tued']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_wend']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_thud']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_frid']);        ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_days_satd']);        ?>'],
    dayNamesMin: ['<?php     echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_sund']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_mond']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_tued']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_wend']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_thud']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_frid']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_substr_days_satd']); ?>'],
    monthNamesShort: ['<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_janu']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_febr']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_marc']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_apri']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_mayy']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_june']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_july']);   ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_augu']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_sept']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_octo']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_nove']); ?>','<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_mnth_dece']); ?>'],
    weekHeader: "<?php echo html_entity_decode($this->Ini->Nm_lang['lang_shrt_days_sem']); ?>",
    firstDay: <?php echo $this->jqueryCalendarWeekInit("" . $_SESSION['scriptcase']['reg_conf']['date_week_ini'] . ""); ?>,
    dateFormat: "<?php echo $this->jqueryCalendarDtFormat("" . str_replace(array('/', 'aaaa', $_SESSION['scriptcase']['reg_conf']['date_sep']), array('', 'yyyy', ''), $this->field_config['edate']['date_format']) . "", "" . $_SESSION['scriptcase']['reg_conf']['date_sep'] . ""); ?>",
    showOtherMonths: true,
    showOn: "button",
    buttonImage: "<?php echo $this->jqueryIconFile('calendar'); ?>",
    buttonImageOnly: true
  });

} // scJQCalendarAdd

function scJQUploadAdd(iSeqRow) {
} // scJQUploadAdd


function scJQElementsAdd(iLine) {
  scJQEventsAdd(iLine);
  scJQCalendarAdd(iLine);
  scJQUploadAdd(iLine);
} // scJQElementsAdd

