
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 && 0 < $oField[0].offsetHeight && 0 < $oField[0].offsetWidth && !$oField[0].disabled) {
    $oField[0].focus();
  }
} // scFocusField

function scJQEventsAdd(iSeqRow) {
  $('#id_sc_field_p_o_number' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_p_o_number_onblur(this, iSeqRow) })
                                        .bind('focus', function() { sc_greige_greigepo_greige_form_p_o_number_onfocus(this, iSeqRow) });
  $('#id_sc_field_old_po' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_old_po_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_greige_greigepo_greige_form_old_po_onfocus(this, iSeqRow) });
  $('#id_sc_field_date' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_date_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_greige_greigepo_greige_form_date_onfocus(this, iSeqRow) });
  $('#id_sc_field_mill' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_mill_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_greige_greigepo_greige_form_mill_onfocus(this, iSeqRow) });
  $('#id_sc_field_ship_to' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_ship_to_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_greige_greigepo_greige_form_ship_to_onfocus(this, iSeqRow) });
  $('#id_sc_field_style' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_style_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_greige_greigepo_greige_form_style_onfocus(this, iSeqRow) });
  $('#id_sc_field_new_style' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_new_style_onblur(this, iSeqRow) })
                                       .bind('focus', function() { sc_greige_greigepo_greige_form_new_style_onfocus(this, iSeqRow) });
  $('#id_sc_field_desc1' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_desc1_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_greige_greigepo_greige_form_desc1_onfocus(this, iSeqRow) });
  $('#id_sc_field_desc2' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_desc2_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_greige_greigepo_greige_form_desc2_onfocus(this, iSeqRow) });
  $('#id_sc_field_top_p_o_' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_top_p_o__onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_top_p_o__onfocus(this, iSeqRow) });
  $('#id_sc_field_top_lbs' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_top_lbs_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_greige_greigepo_greige_form_top_lbs_onfocus(this, iSeqRow) });
  $('#id_sc_field_top_ship' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_top_ship_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_top_ship_onfocus(this, iSeqRow) });
  $('#id_sc_field_top_cost' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_top_cost_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_top_cost_onfocus(this, iSeqRow) });
  $('#id_sc_field_bot_p_o_' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_bot_p_o__onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_bot_p_o__onfocus(this, iSeqRow) });
  $('#id_sc_field_bot_lbs' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_bot_lbs_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_greige_greigepo_greige_form_bot_lbs_onfocus(this, iSeqRow) });
  $('#id_sc_field_bot_ship' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_bot_ship_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_bot_ship_onfocus(this, iSeqRow) });
  $('#id_sc_field_bot_cost' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_bot_cost_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_bot_cost_onfocus(this, iSeqRow) });
  $('#id_sc_field_terms' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_terms_onblur(this, iSeqRow) })
                                   .bind('focus', function() { sc_greige_greigepo_greige_form_terms_onfocus(this, iSeqRow) });
  $('#id_sc_field_delivery' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_delivery_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_delivery_onfocus(this, iSeqRow) });
  $('#id_sc_field_order_amt' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_order_amt_onblur(this, iSeqRow) })
                                       .bind('focus', function() { sc_greige_greigepo_greige_form_order_amt_onfocus(this, iSeqRow) });
  $('#id_sc_field_lbs_ordere' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_lbs_ordere_onblur(this, iSeqRow) })
                                        .bind('focus', function() { sc_greige_greigepo_greige_form_lbs_ordere_onfocus(this, iSeqRow) });
  $('#id_sc_field_lbs' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_lbs_onblur(this, iSeqRow) })
                                 .bind('focus', function() { sc_greige_greigepo_greige_form_lbs_onfocus(this, iSeqRow) });
  $('#id_sc_field_lbs_open' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_lbs_open_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_lbs_open_onfocus(this, iSeqRow) });
  $('#id_sc_field_lbs_dyed' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_lbs_dyed_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_lbs_dyed_onfocus(this, iSeqRow) });
  $('#id_sc_field_adjustment' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_adjustment_onblur(this, iSeqRow) })
                                        .bind('focus', function() { sc_greige_greigepo_greige_form_adjustment_onfocus(this, iSeqRow) });
  $('#id_sc_field_inventory' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_inventory_onblur(this, iSeqRow) })
                                       .bind('focus', function() { sc_greige_greigepo_greige_form_inventory_onfocus(this, iSeqRow) });
  $('#id_sc_field_pinv' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_pinv_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_greige_greigepo_greige_form_pinv_onfocus(this, iSeqRow) });
  $('#id_sc_field_knit_price' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_knit_price_onblur(this, iSeqRow) })
                                        .bind('focus', function() { sc_greige_greigepo_greige_form_knit_price_onfocus(this, iSeqRow) });
  $('#id_sc_field_cost_lb_k' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_cost_lb_k_onblur(this, iSeqRow) })
                                       .bind('focus', function() { sc_greige_greigepo_greige_form_cost_lb_k_onfocus(this, iSeqRow) });
  $('#id_sc_field_totalkc' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_totalkc_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_greige_greigepo_greige_form_totalkc_onfocus(this, iSeqRow) });
  $('#id_sc_field_cost_lb_y' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_cost_lb_y_onblur(this, iSeqRow) })
                                       .bind('focus', function() { sc_greige_greigepo_greige_form_cost_lb_y_onfocus(this, iSeqRow) });
  $('#id_sc_field_cost_lb' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_cost_lb_onblur(this, iSeqRow) })
                                     .bind('focus', function() { sc_greige_greigepo_greige_form_cost_lb_onfocus(this, iSeqRow) });
  $('#id_sc_field_status' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_status_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_greige_greigepo_greige_form_status_onfocus(this, iSeqRow) });
  $('#id_sc_field_amount' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_amount_onblur(this, iSeqRow) })
                                    .bind('focus', function() { sc_greige_greigepo_greige_form_amount_onfocus(this, iSeqRow) });
  $('#id_sc_field_roll_size' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_roll_size_onblur(this, iSeqRow) })
                                       .bind('focus', function() { sc_greige_greigepo_greige_form_roll_size_onfocus(this, iSeqRow) });
  $('#id_sc_field_spec' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_spec_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_greige_greigepo_greige_form_spec_onfocus(this, iSeqRow) });
  $('#id_sc_field_mach' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_mach_onblur(this, iSeqRow) })
                                  .bind('focus', function() { sc_greige_greigepo_greige_form_mach_onfocus(this, iSeqRow) });
  $('#id_sc_field_production' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_production_onblur(this, iSeqRow) })
                                        .bind('focus', function() { sc_greige_greigepo_greige_form_production_onfocus(this, iSeqRow) });
  $('#id_sc_field_ac' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_ac_onblur(this, iSeqRow) })
                                .bind('focus', function() { sc_greige_greigepo_greige_form_ac_onfocus(this, iSeqRow) });
  $('#id_sc_field_lbs_rack' + iSeqRow).bind('blur', function() { sc_greige_greigepo_greige_form_lbs_rack_onblur(this, iSeqRow) })
                                      .bind('focus', function() { sc_greige_greigepo_greige_form_lbs_rack_onfocus(this, iSeqRow) });
} // scJQEventsAdd

function sc_greige_greigepo_greige_form_p_o_number_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_p_o_number();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_old_po_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_old_po();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_date_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_date();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_mill_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_mill();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_ship_to_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_ship_to();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_style_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_style();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_new_style_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_new_style();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_desc1_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_desc1();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_desc2_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_desc2();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_top_p_o__onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_top_p_o_();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_top_lbs_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_top_lbs();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_top_ship_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_top_ship();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_top_cost_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_top_cost();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_bot_p_o__onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_bot_p_o_();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_bot_lbs_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_bot_lbs();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_bot_ship_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_bot_ship();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_bot_cost_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_bot_cost();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_terms_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_terms();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_delivery_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_delivery();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_order_amt_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_order_amt();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_lbs_ordere_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_lbs_ordere();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_lbs_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_lbs();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_lbs_open_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_lbs_open();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_lbs_dyed_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_lbs_dyed();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_adjustment_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_adjustment();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_inventory_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_inventory();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_pinv_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_pinv();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_knit_price_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_knit_price();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_cost_lb_k_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_cost_lb_k();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_totalkc_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_totalkc();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_cost_lb_y_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_cost_lb_y();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_cost_lb_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_cost_lb();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_status_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_status();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_amount_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_amount();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_roll_size_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_roll_size();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_spec_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_spec();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_mach_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_mach();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_production_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_production();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_ac_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_ac();
  scCssBlur(oThis);
}

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

function sc_greige_greigepo_greige_form_lbs_rack_onblur(oThis, iSeqRow) {
  do_ajax_greige_greigepo_greige_form_validate_lbs_rack();
  scCssBlur(oThis);
}

function sc_greige_greigepo_greige_form_lbs_rack_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
  });

} // scJQCalendarAdd

function scJQUploadAdd(iSeqRow) {
} // scJQUploadAdd


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

